Skip to content

Instantly share code, notes, and snippets.

@s0racat
Last active September 2, 2025 22:40
Show Gist options
  • Select an option

  • Save s0racat/47ae9f2dad8916c8b708032878604ae3 to your computer and use it in GitHub Desktop.

Select an option

Save s0racat/47ae9f2dad8916c8b708032878604ae3 to your computer and use it in GitHub Desktop.
{
"Non-ASCII Characters Check": {
"regex": "[^\\x00-\\x7F]",
"enabled": "true"
},
"Force HTTPS": {
"regex": "^http:\/\/(?![^\/]*\\.(onion|i2p|bit|ano|loki)(\/|$))",
"replacement": "https:\/\/",
"enabled": "true"
},
"Missing URL Scheme → http": {
"regex": "^(?![a-zA-Z][a-zA-Z0-9+.-]*:).+",
"replacement": "http:\/\/$0",
"enabled": "true"
},
"Redirect via URL Parameter": {
"regex": "url=([^&\\s]+)",
"replacement": "$1",
"enabled": "true"
},
"Decode %2F": {
"regex": "%2[Ff]",
"replacement": "\/",
"automatic": true,
"enabled": "true"
},
"Decode %3A": {
"regex": "%3[Aa]",
"replacement": ":",
"automatic": true,
"enabled": "true"
},
"tinyurl Preview": {
"regex": "^https?:\/\/tinyurl\\.com\/([\\w-]+)",
"replacement": "https:\/\/preview.tinyurl.com\/$1",
"enabled": "true"
},
"Shorteners + suffix": {
"regex": "^https?:\/\/(goo\\.gl|bit\\.ly|j\\.mp|nyti\\.us)\/([\\w-]+)(?!\\+)$",
"replacement": "https:\/\/$1\/$2+",
"enabled": "true"
},
"is.gd shortener": {
"regex": "^https?:\/\/is\\.gd\/([\\w-]+)(?!-)$",
"replacement": "https:\/\/is.gd\/$1-",
"enabled": "true"
},
"tiny.cc shortener": {
"regex": "^https?:\/\/tiny\\.cc\/([\\w-]+)(?!~)$",
"replacement": "https:\/\/tiny.cc\/$1~",
"enabled": "true"
},
"curt.ly shortener": {
"regex": "^https?:\/\/curt\\.ly\/([\\w-]+)(?!@)$",
"replacement": "https:\/\/curt.ly\/$1@",
"enabled": "true"
},
"bit.do shortener": {
"regex": "^https?:\/\/bit\\.do\/(?!expand\/)([\\w-]+)",
"replacement": "https:\/\/curt.ly\/$1@",
"enabled": "true"
},
"sp.nicovideo.jp to www": {
"regex": "^https?:\/\/sp\\.nicovideo\\.jp\/(.+)",
"replacement": "https:\/\/www.nicovideo.jp\/$1",
"enabled": "true"
},
"Fix Twitter to x.com": {
"regex": "^https:\/\/(?:mobile\\.)?(?:twitter|[fv]xtwitter)\\.com\/(.+)",
"replacement": "https:\/\/x.com\/$1",
"automatic": "true",
"enabled": "true"
},
"Twitter → YJ Search (Tweet)": {
"regex": "https?:\/\/(?:x\\.com|nitter[^\/]*)\/\\w+\/status\/(\\d+)",
"replacement": "https:\/\/search.yahoo.co.jp\/realtime\/search\/tweet\/$1",
"enabled": "true"
},
"Twitter → YJ Search (User)": {
"regex": "^https?:\/\/(?:x.com|nitter[^\/]*)\/(?:#!\/)?(\\w+)$",
"replacement": "https:\/\/search.yahoo.co.jp\/realtime\/search?p=ID%3A$1",
"enabled": "true"
},
"Twitter → Nitter": {
"regex": "^https?:\/\/(?:www\\.|mobile\\.)?(twitter|x)\\.com\/(.+)",
"replacement": "https:\/\/farside.link\/nitter\/$2",
"enabled": "true"
},
"piped.video → YouTube": {
"regex": "^https?:\/\/piped\\.video\/(?:watch\\?v=|shorts\/|live\/)?([\\w-]+)",
"replacement": "https:\/\/www.youtube.com\/watch?v=$1",
"automatic": true,
"enabled": "true"
},
"Proxy via archive.org": {
"regex": "^(?!https?:\/\/(?:[^\/]*\\.)?archive\\.org\/)(https?:\/\/.+)",
"replacement": "https:\/\/web.archive.org\/web\/$1",
"enabled": "true"
},
"Amazon URL shortener": {
"regex": "https:\/\/www\\.amazon\\.co\\.jp\/.*\/dp\/([A-Z0-9]{10})",
"replacement": "https:\/\/www.amazon.co.jp\/dp\/$1",
"enabled": "true"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment