Skip to content

Instantly share code, notes, and snippets.

@patarapolw
Last active March 14, 2023 01:35
Show Gist options
  • Select an option

  • Save patarapolw/f75e31faff038f8251c9973f6ea591d5 to your computer and use it in GitHub Desktop.

Select an option

Save patarapolw/f75e31faff038f8251c9973f6ea591d5 to your computer and use it in GitHub Desktop.

Revisions

  1. patarapolw revised this gist Mar 14, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions all-info-expander-wrong.user.js
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@
    (function () {
    'use strict';

    // Change to 'questionCount' for no matter right or wrong.
    $.jStorage.listenKeyChange('wrongCount', () => {
    setTimeout(() => {
    const elShowInfo = document.querySelector('#all-info');
  2. patarapolw renamed this gist Mar 14, 2023. 1 changed file with 0 additions and 0 deletions.
  3. patarapolw created this gist Mar 14, 2023.
    23 changes: 23 additions & 0 deletions all-info-expander-wrong-and-right.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    // ==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);
    });
    })();
    23 changes: 23 additions & 0 deletions all-info-expander-wrong.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    // ==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('wrongCount', () => {
    setTimeout(() => {
    const elShowInfo = document.querySelector('#all-info');
    if (elShowInfo) {
    elShowInfo.click();
    }
    }, 1000);
    });
    })();