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) { |
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
// ==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 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 Better Hangouts | |
// @namespace Jake Harrington | |
// @description Makes Hangouts better | |
// @include https://plus.google.com/*/hangouts | |
// @version 1.0 | |
// @run-at document-end | |
// @require https://code.jquery.com/jquery-1.11.2.min.js | |
// @require https://code.jquery.com/ui/1.11.3/jquery-ui.min.js | |
// @downloadURL https://gist.github.com/dbs727/e4def722691762c4c910/raw/2bf1936175459f6b6c0fefbe222f34d298234b82/betterhangouts.user.js |
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 WaniKani Real Numbers | |
// @namespace penx.scripts | |
// @description Replaces 42+ with the real number using WaniKani API v1.0 | |
// @include https://www.wanikani.com/* | |
// @version 2.8 | |
// @run-at document-end | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue | |
// @grant GM_getValue |
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 Wanikani Override | |
// @namespace wkoverride | |
// @description Adds an "Ignore Answer" button during reviews that makes WaniKani ignore the current answer (useful if, for example, you made a stupid typo) | |
// @include http://www.wanikani.com/review/session* | |
// @include https://www.wanikani.com/review/session* | |
// @version 1.1.3 | |
// @author Rui Pinheiro | |
// @grant GM_addStyle | |
// @grant unsafeWindow |
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
(function() { | |
var dialog = document.createElement('div'), | |
shadow = dialog.createShadowRoot(), | |
style = document.createElement('style'), | |
paragraph = document.createElement('p'); | |
dialog.style.width = '500px'; | |
dialog.style.height = '500px'; | |
dialog.style.border = '3px solid gray'; | |
dialog.style.position = 'fixed'; |
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 Auto-Meiryo | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @copyright 2012+, You | |
// ==/UserScript== | |
(function() { | |
var always = 'alwaysHost'; |
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
;(function(){ | |
'use strict'; | |
if (!window.createBatchStyler) { | |
window.createBatchStyler = createBatchStyler; | |
} | |
function createBatchStyler() { | |
var styles = {}; | |
function createStyleText(styles) { |
NewerOlder