Giter VIP home page Giter VIP logo

redirector-patterns's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.