Web browser extension (Firefox, Vivaldi, Chrome, Opera, Edge) to redirect URLs based on regex or wildcard patterns. Fork of Redirector, optimized for redirecting NEAR RPC requests.
After installation, it will start working immediately with no additional setup, the default replacement RPC is near.lava.build
. You can check that the extension is working by opening F12 > Network tab:
In loving memory of Einar Egilsson, who gave us Redirector and selflessly nurtured it for many years. We miss you Einar, and will always remember your kindness and generosity.
- Firefox
- Chrome: I can't upload it to Chrome Web Store, because it's a fork of an old extension that uses old stuff, and extensions that use old stuff are not allowed on chrome web store. But if you really want to install this extension, here are the steps:
- Click the green
<> Code
button at the top, andDownload ZIP
- Unpack the zip into a directory
- Go to
chrome://extensions/
- Enable
Developer mode
in top right corner - Click
Load unpacked
in the top left corner, and select the folder with the files
- Click the green
If you're a developer and have some free time to update this extension, I'd be happy to merge it and insert your lava referral link as default setting.
- Example URL:
https://rpc.mainnet.near.org/
- Include pattern:
^https://((.*.)?rpc\.fastnear\.com|(beta\.)?rpc\.mainnet\.(near\.org|pagoda\.co)|rpc\.web4\.near\.page|near-mainnet\.api\.pagoda\.co/rpc/v1|1rpc\.io/near|near-mainnet-rpc\.allthatnode\.com:3030|rpc\.ankr\.com/near|public-rpc\.blockpi\.io/http/near|rpc\.near\.gateway\.fm|getblock\.io/nodes/near|near\.lavenderfive\.com|near\.lava\.build(/.*)?|nodereal\.io/api-marketplace/near-rpc|near\.nownodes\.io|endpoints\.omniatech\.io/v1/near/mainnet/public|api\.seracle\.com/saas/baas/rpc/near/mainnet/public|rpc\.shitzuapes\.xyz)/?$
- Redirect to:
https://free.rpc.fastnear.com/
- Pattern type: Regular Expression
- Description: Redirect all known RPC URLs to FASTNEAR
Intear Price Indexer instead of ref-indexer-helper
- Example URL:
https://indexer.ref.finance/list-token-price
- Include pattern:
https://(indexer|api).ref.finance/(list-token-price|token-price)
- Redirect to:
https://prices.intear.tech/$2
- Pattern type: Regular Expression
- Description: Change price source from Ref to Intear for automatic new token discovery (degen mode)
- Example URL:
https://wallet.near.org/?sign=123
- Include pattern:
https://wallet.near.org/*
- Redirect to:
https://app.mynearwallet.com/$1
- Pattern type: Wildcard
- Description: Make old dapps that were made for NEAR Wallet, work with MyNearWallet. The compatibility is nearly 100%
- Example URL:
https://wallet.mintbase.xyz/claim/slime
- Include pattern:
https://wallet.mintbase.xyz/*
- Redirect to:
https://wallet.bitte.ai/$1
- Pattern type: Wildcard
- Description: Redirect Mintbase Wallet to
bitte.ai
domain
- Example URL:
https://en.m.wikipedia.org/
- Include pattern:
^(https?://)([a-z0-9-]*\.)m(?:obile)?\.(.*)
- Redirect to:
$1$2$3
- Pattern type: Regular Expression
- Description: Always show the desktop site of a webpage
- Example URL:
https://www.google.com/amp/www.example.com/amp/document
- Include pattern:
^(?:https?://)www.(?:google|bing).com/amp/(?:s/)?(.*)
- Redirect to:
https://$1
- Pattern type: Regular Expression
- Description: AMP is bad: https://80x24.net/post/the-problem-with-amp/
- Example URL:
https://ad.doubleclick.net/ddm/trackclk/N135005.2681608PRIVATENETWORK/B20244?https://www.example.com
- Include pattern:
^(?:https?://)ad.doubleclick.net/.*\?(http?s://.*)
- Redirect to:
$1
- Pattern type: Regular Expression
- Description: Remove doubleclick link tracking / fix problems with doubleclick host based blocking
- Example URL:
https://www.youtube.com/shorts/video-id
- Include pattern:
^(?:https?://)(?:www.)?youtube.com/shorts/([a-zA-Z0-9_-]+)(.*)
- Redirect to:
https://www.youtube.com/watch?v=$1$2
- Pattern type: Regular Expression
- Description: Redirect YouTube Shorts to regular YouTube
What are bangs?: https://duckduckgo.com/bangs
- Example URL:
https://www.google.com/search?&ei=-FvkXcOVMo6RRwW5p5DgBg&q=asdfasdf%21+sadfas&oq=%21asdfasdf+sadfas&gs_l=asdfsadfafsgaf
- Include pattern:
^(?:https?://)(?:www.)google\.(?:com|au|de|co\.uk)/search\?(?:.*)?(?:oq|q)=([^\&]*\+)?((?:%21|!)[^\&]*)
- Redirect to:
https://duckduckgo.com/?q=$1$2
- Pattern type: Regular Expression
- Description: Redirect any Google query with a !bang to DDG
- Example URL:
https://duckduckgo.com/?q=!
example&get=other
- Include pattern:
^(?:https?://)(?:.*\.)?duckduckgo.com/\?q=(?:%21|!)
example(?=[^\+]|$)(?=\W|$)
- Redirect to:
https://example.com/
- Pattern type: Regular Expression
- Description: Redirect to the base site when !bang is the only search parameter
- Example URL:
https://duckduckgo.com/?q=searchterm+!
example+searchterm2&get=other
- Include pattern:
^(?:https?://)(?:.*\.)?duckduckgo.com/\?q=(.*\+)?(?:(?:%21|!)
example)(?:\+([^\&\?\#]*))?(?:\W|$)
- Redirect to:
https://example.com/?query=$1$2
- Pattern type: Regular Expression
- Description: Redirect to custom site search
- Example URL:
https://duckduckgo.com/?q=!ghh+https%3A%2F%2Fgithub.com%2Fbabel%2Fbabel%2Fblob%2Fmaster%2Fpackages%2Fbabel-core%2FREADME.md&adfasfasd
- Include pattern:
^(?:https?://)duckduckgo.com/\?q=(?:(?:%21|!)ghh\+)(?:.*)(github|gitlab|bitbucket)(?:\.org|\.com)(.*?(?=\&))
- Redirect to:
https://$1.githistory.xyz$2
- Pattern type: Regular Expression
- Description: Create new !ghh bang that redirects to https://githistory.xyz
- Advanced:
- Process matches: URL decode
Go directly to frequently used DuckDuckGo bangs to avoid intermediary network requests.
- Example URL:
https://duckduckgo.com/?q=foo+bar+%21google+test+bar
- Include pattern:
^https://duckduckgo\.com/\?q=(.*)\+(?:%21|!)google\b\+(.*?)(?:&|$)
- Redirect to:
https://google.com/search?hl=en&q=$1+$2
- Pattern type: Regular Expression
- Description: DuckDuckGo → Google !bang shortcut (prefix AND suffix)
- Pattern Description: Avoid extraneous + in URL with two separate patterns
- Example URL:
https://duckduckgo.com/?q=foo+bar+%21google
- Include pattern:
^https://duckduckgo\.com/\?q=(.*?)\+?(?:%21|!)google\b\+?(.*?)(?:&|$)
- Redirect to:
https://google.com/search?hl=en&q=$1$2
- Pattern type: Regular Expression
- Description: DuckDuckGo → Google !bang shortcut (prefix OR suffix)
- Pattern Description: Avoid extraneous + in URL with two separate patterns
If you are a Firefox user and use a dark theme, you can add these lines to your userChrome.css
file to make Redirector's extension button more visible:
/* Redirector button for dark Firefox themes */
toolbarbutton#toggle-button--redirectoreinaregilssoncom-redirector[image*="active"] { filter: invert(1) brightness(6); }
toolbarbutton#toggle-button--redirectoreinaregilssoncom-redirector[image*="disabled"] { filter: invert(1) brightness(2.5); }
If you don't know what the userChrome.css
file is, or how to edit it, please look it up on a Firefox forum instead of asking about it in this repository. Thanks!