Skip to content

Instantly share code, notes, and snippets.

View kaichii's full-sized avatar
🏠
Working from home

kâichi kaichii

🏠
Working from home
View GitHub Profile
@kaichii
kaichii / replace-tw-to-zh.js
Last active January 1, 2024 09:13
替换《旋元佑进阶文法》中的术语为大陆版本
// ==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
@kaichii
kaichii / wiki-latex-fixer.js
Created September 19, 2022 09:35
Fix wiki broken latex
// ==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/katex@0.16.2/dist/katex.min.js
// @resource KatexCSS https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.css
@kaichii
kaichii / userscript-github-disable-turbolinks.js
Created August 6, 2022 05:46
userscript github disable turbolinks
@kaichii
kaichii / deepDiffObj.js
Created September 27, 2021 02:17 — forked from tennox/deepDiffObj.js
Deep diff between two object, using lodash
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/
*