Skip to content

Instantly share code, notes, and snippets.

We couldn’t find that file to show.
GEOMETRYCOLLECTION(MULTIPOLYGON (((-71.943563 41.286675, -71.926802 41.290122, -71.935259 41.280579, -71.94627 41.276306, -71.962598 41.270968, -71.978926 41.265002, -71.994717 41.256451, -72.002461 41.252867, -72.036846 41.249794, -72.034958 41.255458, -72.029438 41.26309, -72.023422 41.270994, -72.018926 41.274114, -72.006872 41.27348, -71.991117 41.281331, -71.980061 41.280291, -71.952864 41.285098, -71.943563 41.286675)), ((-72.132225 41.104387, -72.128352 41.108131, -72.126704 41.115139, -72.084207 41.101524, -72.081167 41.09394, -72.086975 41.058292, -72.095711 41.05402, -72.0972 41.054884, -72.097136 41.075844, -72.103152 41.086484, -72.1064 41.088883, -72.12056 41.093171, -72.139233 41.092451, -72.141921 41.094371, -72.142929 41.097811, -72.140737 41.100835, -72.132225 41.104387)), ((-73.657336 40.985171, -73.655972 40.979597, -73.659972 40.968398, -73.662072 40.966198, -73.664472 40.967198, -73.678073 40.962798, -73.683273 40.948998, -73.686473 40.945198, -73.697974 40.939598, -73.721739 40.932037, -
POLYGON ((-122.3121 47.626200000000004, -122.3021 47.626200000000004, -122.3021 47.63120000000001, -122.3121 47.63120000000001, -122.3121 47.626200000000004))
// ==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
@ajhsu
ajhsu / script.js
Created November 26, 2020 08:41
Promise MITM monitor
// 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() :
// ==UserScript==
// @name 592
// @version 0.0.1
// @author AJ Hsu <[email protected]>
// @match https://rent.591.com.tw/rent-detail-*
// @grant GM_addStyle
// ==/UserScript==
window.addEventListener('load', function handleLoaded() {
window.removeEventListener('load', handleLoaded);
// ==UserScript==
// @name Wikipedia TLDR
// @version 0.0.4
// @author AJ Hsu <[email protected]>
// @match https://*.wikipedia.org/*
// @grant GM_addStyle
// ==/UserScript==
window.addEventListener('load', function handlePageLoaded() {
window.removeEventListener('load', handlePageLoaded);
// ==UserScript==
// @name MDN Redirection
// @version 0.0.1
// @author AJ Hsu <[email protected]>
// @match https://developer.mozilla.org/zh-*
// @grant none
// ==/UserScript==
(function() {
window.location.href = window.location.pathname
// ==UserScript==
// @name Wikipedia Redirection
// @version 0.0.1
// @author AJ Hsu <[email protected]>
// @match https://zh.wikipedia.org/wiki/*
// @grant none
// ==/UserScript==
window.addEventListener('load', function handleLoaded() {
window.removeEventListener('load', handleLoaded);
@ajhsu
ajhsu / index.md
Created December 5, 2018 07:21
Bundled file size comparison when you only need debounce and throttle from Lodash.

Metrics

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'`