Skip to content

Instantly share code, notes, and snippets.

@patarapolw
Last active March 14, 2023 01:35
Show Gist options
  • Save patarapolw/f75e31faff038f8251c9973f6ea591d5 to your computer and use it in GitHub Desktop.
Save patarapolw/f75e31faff038f8251c9973f6ea591d5 to your computer and use it in GitHub Desktop.
Automatically click "Show All Information"
// ==UserScript==
// @name WaniKani All Info Expander
// @namespace http://www.wanikani.com
// @version 0.1
// @description Automatically click "Show All Information"
// @author polv
// @match *://www.wanikani.com/*/session*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wanikani.com
// @grant none
// ==/UserScript==
(function () {
'use strict';
$.jStorage.listenKeyChange('questionCount', () => {
setTimeout(() => {
const elShowInfo = document.querySelector('#all-info');
if (elShowInfo) {
elShowInfo.click();
}
}, 1000);
});
})();
// ==UserScript==
// @name WaniKani All Info Expander
// @namespace http://www.wanikani.com
// @version 0.1
// @description Automatically click "Show All Information"
// @author polv
// @match *://www.wanikani.com/*/session*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wanikani.com
// @grant none
// ==/UserScript==
(function () {
'use strict';
// Change to 'questionCount' for no matter right or wrong.
$.jStorage.listenKeyChange('wrongCount', () => {
setTimeout(() => {
const elShowInfo = document.querySelector('#all-info');
if (elShowInfo) {
elShowInfo.click();
}
}, 1000);
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment