This file contains 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 Wiki Latex Fixer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Fix wiki broken latex | |
// @author kaichi | |
// @match https://*.wikipedia.org/** | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikipedia.org | |
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js | |
// @resource KatexCSS https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css |
This file contains 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 《旋元佑进阶文法》大陆术语替换 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 替换《旋元佑进阶文法》中的术语为大陆版本 | |
// @author kaichi | |
// @match https://grammar.codeyu.com/ | |
// @exclude https://grammar.codeyu.com/#docs/terminology | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=codeyu.com | |
// @grant none |
This file contains 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 Disable GitHub Turbolinks | |
// @version 0.1 | |
// @description A userscript to disable GitHub turbolinks to force full page navigations | |
// @license MIT | |
// @author Jamie Kyle | |
// @namespace https://github.com/jamiebuilds | |
// @match https://github.com/* | |
// @match https://gist.github.com/* | |
// @run-at document-end |
This file contains 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 _ from 'lodash'; | |
/** | |
* Deep diff between two objects - i.e. an object with the new value of new & changed fields. | |
* Removed fields will be set as undefined on the result. | |
* Only plain objects will be deeply compared (@see _.isPlainObject) | |
* | |
* Inspired by: https://gist.github.com/Yimiprod/7ee176597fef230d1451#gistcomment-2565071 | |
* This fork: https://gist.github.com/TeNNoX/5125ab5770ba287012316dd62231b764/ | |
* |