// ==UserScript== // @name Wanikani Review Count Analysis // @namespace HoovardWKRCA // @description Reports review counts. // @include https://www.wanikani.com/dashboard // @include https://www.wanikani.com/ // @version 0.0.4 // @grant none // @downloadURL https://update.greasyfork.icu/scripts/12020/Wanikani%20Review%20Count%20Analysis.user.js // @updateURL https://update.greasyfork.icu/scripts/12020/Wanikani%20Review%20Count%20Analysis.meta.js // ==/UserScript== $(document).ready(initReviewCount); var strAPIKey = ""; var strUserLevelURL = "https://www.wanikani.com/api/user/"+ strAPIKey +"/level-progression"; var strRadURL = "https://www.wanikani.com/api/user/"+ strAPIKey +"/radicals"; var strKanURL = "https://www.wanikani.com/api/user/"+ strAPIKey +"/kanji/"; var strVocURL = "https://www.wanikani.com/api/user/"+ strAPIKey +"/vocabulary/"; const TYPE_RAD = 0; const TYPE_KAN = 1; const TYPE_VOC = 2; // Display helper list var a_strDataTypeNames = ["Rad", "Kan", "Voc"]; var bDisplayOptionsVisible = false; var a_iLevelTotals = []; // Array to hold level subtotals var iUserLevel = 0; var iCorrectTotal = 0; var iIncorrectTotal = 0; function initReviewCount() { // Insert the div and table elements var ReviewAnalysisStyles = ""; var strInitialDiv = ""; strInitialDiv += "
Level | Rad | Kan | Voc | Level Tot. |