-
-
Notifications
You must be signed in to change notification settings - Fork 84
Custom patterns
The Patterns checker module allows you to create custom patterns and redirections that can even be applied automatically.
You can share them by copying the json, and use them by pasting it in the module settings inside the app. The full documentation for pattern creation can be found inside the app, in the JSON editor (at the top).
Here is a list of user-generated patterns that you may find interesting:
urlChecker-patternchecker-config: An external user-generated repository with multiple patterns.
Fandom ➔ BreezWiki
Replace Fandom links with BreezeWiki.
Uses the new field 'excludeRegex':
"Fandom ➔ BreezeWiki": {
"regex": "^https?:\/\/([a-z0-9-]+)\\.fandom\\.com\/(.*)",
"excludeRegex": "^https?:\/\/www\\.fandom\\.com\/",
"replacement": "https:\/\/breezewiki.com\/$1\/$2",
"enabled": "false"
}
By the-blank-x
Twitter ➔ FxTwitter (and more)
Replaces Twitter / X links with FxTwitter.
Can also be changed to fixupx.com (shorter) or vxtwitter.com
"Twitter ➔ FxTwitter": {
"regex": "^https?://(?:[a-z0-9-]+\\.)?(?:twitter|x)\\.com/(\\w+/status/\\d+)",
"replacement": "https://fxtwitter.com/$1"
}
More Twitter-related patterns here: https://gist.github.com/RuiNtD/fd56ead200a315262e27e8fbae062ae6
By RuiNtD.
TikTok ➔ Vxtiktok
Replaces TikTok links with vxtiktok.
"TikTok ➔ VxTikTok": {
"regex": "^https?://(?:[a-z0-9-]+\\.)*?tiktok.com/(.*)",
"replacement": "https://vxtiktok.com/$1"
}
By RuiNtD.
Note: other urls like 'kktiktok .com' may work too.
Instagram ➔ InstaFix
Replaces Instagram links with InstaFix.
"Instagram ➔ InstaFix": {
"regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?instagram.com\/(.*)",
"replacement": "https:\/\/ddinstagram.com\/$1"
}
By RuiNtD.
Note: other urls like 'kkinstagram.com' may work too.
Search on Google
"Search on google": {
"encode": true,
"regex": "^(.*)$",
"replacement": "https:\/\/www.google.com\/search?q=$1"
}
Search on DuckDuckGo
"Search on DuckDuckGo": {
"encode": true,
"regex": "^(.*)$",
"replacement": "https:\/\/duckduckgo.com?q=$1"
}
Try to download using cobalt.tools
Download video or audio using cobalt.tools.
"Try to download using cobalt.tools": {
"regex": "^https?:\/\/(?!cobalt\\.tools)",
"replacement": "https:\/\/cobalt.tools\/#$0"
}
Based on suggestion by squeak9
Check with urlscan.io
Scan the url with urlscan.io.
"Check with urlscan.io": {
"regex": "^https?:\/\/(?!urlscan\\.io)",
"replacement": "https:\/\/urlscan.io\/#$0"
}
Based on suggestion by Antsy4904, (and rediscovered by squeak9)
Music Streaming Service to Songlink page
Spotify only (for now)
"Spotify Track ➔ Song.link": {
"regex": "^https?://(?:[a-z0-9-]+\\.)*?spotify.com/track/([a-zA-Z0-9]+)",
"replacement": "https://song.link/s/$1"
},
"Spotify Album ➔ Album.link": {
"regex": "^https?://(?:[a-z0-9-]+\\.)*?spotify.com/album/([a-zA-Z0-9]+)",
"replacement": "https://album.link/s/$1"
}
By shalva-an (on https://github.com/TrianguloY/URLCheck/issues/422)
Did you created other useful patterns and want to share them here? Just copy/paste it in a public place (gist, any pastebin-related site, a blog...) and tell us!
Or, upload them to urlChecker-patternchecker-config