Skip to content

Some Redirector patterns I personally use and maintain

License

Notifications You must be signed in to change notification settings

Katzenwerfer/Redirector-Patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

No YouTube shorts

Redirect YouTube shorts into normal video

Example https://www.youtube.com/shorts/1234567890
Redirect https://www.youtube.com/shorts/*
To https://www.youtube.com/watch?v=$1
Type Wildcard
Apply To Main window (adress bar)
HistoryState

Twitter-2-Nitter

Redirect Twitter URLs to Nitter

Example https://twitter.com/a_cool_user/status/1234567890
Redirect https://twitter.com/*
To https://nitter.net/$1
Type Wildcard
Notes Replace the nitter.net target with the domain of the instance you want to use.

Nitter-2-Twitter CDN

Redirect Nitter media URLs to the Twitter CDN

Example https://nitter.net/pic/orig/media%2F1234567890.jpg
Redirect https://nitter.net/pic/orig/*.*
To https://pbs.twimg.com/$1.png
Type Wildcard
Process URL Decode
Notes Replace nitter.net from the target with the domain of the instance you use.

No old Reddit

Redirect Old Reddit links to New Reddit

Example https://old.reddit.com/r/subreddit/comments/post_id/post_title/
Redirect https://old.reddit.com/*
To https://www.reddit.com/$1
Type Wildcard

High quality Discord media

Clean media URLs from the Discord CDN

Example https://cdn.discordapp.com/type/1234567890.jpg?param1=0&param2=0
Redirect https://cdn.discordapp.com/*/*.*?*
To https://cdn.discordapp.com/$1/$2.$3
Type Wildcard
Notes In theory, you could set the pattern to apply to Images so that every image inside Discord is fetched at its highest quality.
I have not been able to confirm this.

High quality Steam Workshop media

Clean media URLs from the Steam Workshop CDN

Example https://steamuserimages-a.akamaihd.net/ugc/1234567890/1234567890/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=#000000&letterbox=true
Redirect https://steamuserimages-a.akamaihd.net/ugc/*/*/*
To https://steamuserimages-a.akamaihd.net/ugc/$1/$2/
Type Wildcard
Notes Apply this to Images if you want high quality previews

Wikipedia-2-Wikiwand

Redirect Wikipedia articles to Wikiwand

Example https://en.wikipedia.org/wiki/the-article-you-want-to-read
Redirect (\w+)\.wikipedia\.org\/.+\/(.+)
To https://www.wikiwand.com/$1/$2
Type RegEx
Exclude wikipedia\.org\/.+\?oldformat=true
Notes Append ?oldformat=true to the URL to disable redirection.

No Wikiwand mobile

Fix Wikiwand mobile redirects

Example https://www.wikiwand.com/en.m/the-article-you-want-to-read
Redirect wikiwand.com\/(\w+)\.m\/(.+)
To https://www.wikiwand.com/$1/$2
Type RegEx

403 pximg fix

Redirect i.pximg.net URLs to the Pixiv post

Example https://i.pximg.net/img-original/img/1234/12/12/12/12/12/1234567890_p0.png
Redirect i\.pximg\.net\/.+\/(\w+)_p
To https://www.pixiv.net/en/artworks/$1
Type RegEx

Fandom search

Search FANDOM wiki shortcut

Example https://topic.fandom.com/wiki/Topic_Wiki/?
Redirect (\w+)\.fandom\.com\/.+(?:\?s)
To https://$1.fandom.com/wiki/Special:Search
Type RegEx

About

Some Redirector patterns I personally use and maintain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published