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 StyleSwitcher | |
// @namespace https://github.com/cologler/ | |
// @version 0.2.2 | |
// @description try to take over the world! | |
// @author cologler | |
// @grant GM_addStyle | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @grant GM_info |
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 SingletonData | |
// @namespace https://github.com/cologler/ | |
// @version 0.3 | |
// @description try to take over the world! | |
// @author cologler | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @grant GM_addValueChangeListener | |
// @grant GM_removeValueChangeListener |
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 github-blocker | |
// @name:zh-CN github-blocker | |
// @namespace https://github.com/cologler/github-blocker | |
// @version 1.1.0.2 | |
// @description block github user. | |
// @description:zh-CN 屏蔽某些国产 github 伸手党用户. | |
// @author cologler | |
// @match https://github.com/*/* | |
// @grant GM_setValue |
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 Amazon S3 Images gallery | |
// @name:zh-CN Amazon S3 图片概览 | |
// @namespace https://github.com/cologler/ | |
// @version 0.1.0.1 | |
// @description show images gallery on amazon s3 when your files is images. | |
// @description:zh-CN 在 Amazon S3 上显示图片概览 | |
// @author cologler | |
// @match https://console.aws.amazon.com/s3/* | |
// @match https://s3.console.aws.amazon.com/s3/* |
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 StringSearcherMap | |
// @namespace https://github.com/cologler/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author cologler | |
// @grant none | |
// ==/UserScript== | |
class StringSearcherMap { |
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
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2020~2999 - Cologler <[email protected]> | |
# ---------- | |
# | |
# ---------- | |
import os | |
import sys | |
import traceback |
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
/* Copyright (c) 2017~2999 - cologler <[email protected]> */ | |
function parseLinkHeader(link) { | |
let parts = link.match(/<([^ ]+)>; rel="([^"]+)"/g); | |
let r = {}; | |
parts.forEach(p => { | |
let m = p.match(/<([^ ]+)>; rel="([^"]+)"/); | |
r[m[2]] = m[1]; | |
}); | |
return r; | |
} |
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
/** | |
* Copyright (c) 2017~2999 - cologler <[email protected]> | |
* @param {any} root | |
* @param {any} options | |
* */ | |
function sortChildren(root, options) { | |
options = Object.assign({ | |
filter: () => true, | |
selector: z => z, | |
comparer: (x, y) => x - y |
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 QS | |
// @namespace https://github.com/cologler/ | |
// @version 0.1.6.1 | |
// @description a helper for QuickSettings. | |
// @author cologler ([email protected]) | |
// @grant none | |
// @license MIT | |
// @require https://cdn.jsdelivr.net/quicksettings/latest/quicksettings.min.js | |
// ==/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
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2017~2999 - cologler <[email protected]> | |
# ---------- | |
# format output from pipe. | |
# ---------- | |
'''Usage: | |
python pr.py PATTERN |
OlderNewer