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 Revert GitHub PR Title Truncation | |
// @namespace https://github.com/lionel-rowe/ | |
// @version 0.2 | |
// @description Revert GitHub PR Title Truncation | |
// @author https://github.com/lionel-rowe/ | |
// @match https://github.com/*/compare/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/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
import { unreachable } from '@std/assert' | |
/** | |
* Sibilant sounds that are pluralized with -es instead of -s. | |
* | |
* Include double ss/zz but not single s/z, as the latter are more likely to be part of -se/-ze suffix. | |
* Same reasoning for -tch vs -ch. | |
* | |
* For example: | |
* - basses <-> bass (not "basse") |
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 Yes I Am Sure I Want To Leave YouTube | |
// @namespace https://github.com/lionel-rowe/ | |
// @version 0.1 | |
// @description Disable "Are you sure that you want to leave YouTube?" redirect page | |
// @author https://github.com/lionel-rowe/ | |
// @match https://www.youtube.com/* | |
// @icon https://www.youtube.com/favicon.ico | |
// @updateURL https://gist.github.com/lionel-rowe/130b59a8cd06bdf359f9d4888baefb94/raw/yes-i-am-sure-i-want-to-leave-youtube.user.js | |
// @downloadURL https://gist.github.com/lionel-rowe/130b59a8cd06bdf359f9d4888baefb94/raw/yes-i-am-sure-i-want-to-leave-youtube.user.js |
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
// https://dash.deno.com/playground/clearlyloc-phrase-oauth | |
import { marked } from 'npm:[email protected]' | |
import { escape } from 'https://deno.land/[email protected]/html/entities.ts' | |
const PHRASE_BASE_URL = 'https://cloud.clearlyloc.com/web/' | |
const CLIENT_ID = 'WOEVUqZPEgEhblG0eOUsR6' | |
function authEndpointFromClientId(clientId: string) { | |
const url = new URL('oauth/authorize', PHRASE_BASE_URL) |
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
function getLocaleInfoModule() { | |
const endpoint = 'https://query.wikidata.org/sparql' | |
const headers = { 'Accept': 'application/sparql-results+json' } | |
type Kind = 'language' | 'region' | |
const propertyIds: Record<Kind, { iso2: number; iso3: number }> = { | |
language: { | |
iso2: 218, | |
iso3: 220, | |
}, |
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 Disable arrow key hijacking | |
// @description Stop websites from hijacking left and right arrow keys. | |
// @author Lionel Rowe | |
// @run-at document-start | |
// @match http://*/* | |
// @match https://*/* | |
// @grant none | |
// @version 0.3 | |
// @namespace https://github.com/lionel-rowe |
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
Date: Thu, 01 Jan 1970 00:00:00 +0000 (UTC) | |
From: ABC <[email protected]> | |
To: XYZ <[email protected]> | |
Subject: | |
=?UTF-8?Q?=E7=BB=9F=E4=B8=80=E7=A0=81?= | |
=?UTF-8?Q?=E5=8F=98=E6=88=90=E4=B9=B1=E7=A0=81?= | |
=?us-ascii?Q?_removing_this_part_fixes_the_mojibake?= | |
MIME-Version: 1.0 | |
Content-Type: text/plain; |
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
// https://web.archive.org/web/20160920191749/http://zhaoren.idtag.cn/samename/searchName!pmbyrepeatlist.htm | |
const 姓名 = [...document.querySelectorAll('li p')] | |
.map(x => x.textContent.trim().match(/^\d+\.(.+)$/)) | |
.filter(Boolean) | |
.map(x => x[1]) | |
const 姓 = [...new Set(姓名.map(x => x[0]))].join('') | |
const 名 = [...new Set(姓名.flatMap(x => [...x.slice(1)]))].join('') |
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 Highlightify | |
// @namespace https://github.com/lionel-rowe/ | |
// @version 0.4 | |
// @description Highlightify Stack Exchange | |
// @author @lionel-rowe | |
// @match https://meta.stackexchange.com/* | |
// @grant none | |
// ==/UserScript== | |
/* global StackExchange */ |
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
#!/bin/bash | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
# curl <link_to_raw> > .git/hooks/prepare-commit-msg && chmod u+x .git/hooks/prepare-commit-msg | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi |
NewerOlder