This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Jisho Hotkeys | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description Hotkeys for some actions on jisho.org | |
| // @author sheodox | |
| // @match http://jisho.org/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Memrise Editor Enhancements | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Some convenience improvements for editing Memrise courses. | |
| // @author sheodox | |
| // @match https://www.memrise.com/course/*/edit/* | |
| // @grant GM_getValue | |
| // @grant GM_setValue | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Memrise Add Wizard | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Wizard for adding words to a course | |
| // @author sheodox | |
| // @match https://www.memrise.com/course/*/edit/* | |
| // @grant GM_getValue | |
| // @grant GM_setValue | |
| // @grant GM_xmlhttpRequest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import assert from 'assert'; | |
| class Digit { | |
| // a number 0-9 | |
| value: number; | |
| constructor(value: number) { | |
| if (value > 9 || value < 0) { | |
| throw new Error(`Digit value must be between 0 and 9, got ${value}`); | |
| } | |
| if (Math.round(value) !== value) { |
OlderNewer