Without lodash
-rw-r--r-- 1 ajhsu staff 96K 12 5 14:41 app.bundle.js
Bundled with independent lodash.debounce && lodash.throttle package
-rw-r--r-- 1 ajhsu staff 106K 12 5 14:58 app.bundle.js
Bundled with `import lodash from 'lodash/function'`
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 592 | |
// @version 0.1 | |
// @match https://rent.591.com.tw/* | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
// Check if the current URL is in the array |
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
// Hijack the "Promise" in browsing context. | |
function Promise() {} | |
// The list to keep Promises. | |
window.__promiseObservingList = []; | |
// Establish the customized Promise implementation | |
// Source: https://github.com/taylorhakes/promise-polyfill/blob/master/dist/polyfill.js | |
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory() : |
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 592 | |
// @version 0.0.1 | |
// @author AJ Hsu <im.ajhsu@gmail.com> | |
// @match https://rent.591.com.tw/rent-detail-* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
window.addEventListener('load', function handleLoaded() { | |
window.removeEventListener('load', handleLoaded); |
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 Wikipedia TLDR | |
// @version 0.0.4 | |
// @author AJ Hsu <im.ajhsu@gmail.com> | |
// @match https://*.wikipedia.org/* | |
// @grant GM_addStyle | |
// ==/UserScript== | |
window.addEventListener('load', function handlePageLoaded() { | |
window.removeEventListener('load', handlePageLoaded); |
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 MDN Redirection | |
// @version 0.0.1 | |
// @author AJ Hsu <im.ajhsu@gmail.com> | |
// @match https://developer.mozilla.org/zh-* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
window.location.href = window.location.pathname |
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 Wikipedia Redirection | |
// @version 0.0.1 | |
// @author AJ Hsu <im.ajhsu@gmail.com> | |
// @match https://zh.wikipedia.org/wiki/* | |
// @grant none | |
// ==/UserScript== | |
window.addEventListener('load', function handleLoaded() { | |
window.removeEventListener('load', handleLoaded); |
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
[ | |
{ | |
"key": "cmd+'", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "console.log(${TM_SELECTED_TEXT}$1)$0;" | |
} | |
} | |
] |
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
unbind C-b | |
set-option -g prefix ` | |
bind ` send-prefix |
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
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = ` | |
body { | |
background-color: yellow; | |
} | |
`; | |
document.querySelector('head').appendChild(style); |
NewerOlder