Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.
See the codeWeb browser extension (Firefox, Vivaldi, Chrome, Opera, Edge) to redirect URLs based on regex or wildcard patterns.
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.
https://en.m.wikipedia.org/^(https?://)([a-z0-9-]*\.)m(?:obile)?\.(.*)$1$2$3https://www.google.com/amp/www.example.com/amp/document^(?:https?://)www.(?:google|bing).com/amp/(?:s/)?(.*)https://$1https://ad.doubleclick.net/ddm/trackclk/N135005.2681608PRIVATENETWORK/B20244?https://www.example.com^(?:https?://)ad.doubleclick.net/.*\?(http?s://.*)$1https://www.youtube.com/shorts/video-id^(?:https?://)(?:www.)?youtube.com/shorts/([a-zA-Z0-9_-]+)(.*)https://www.youtube.com/watch?v=$1$2historyStateWhat are bangs?: https://duckduckgo.com/bangs
https://www.google.com/search?&ei=-FvkXcOVMo6RRwW5p5DgBg&q=asdfasdf%21+sadfas&oq=%21asdfasdf+sadfas&gs_l=asdfsadfafsgaf^(?:https?://)(?:www.)google\.(?:com|au|de|co\.uk)/search\?(?:.*)?(?:oq|q)=([^\&]*\+)?((?:%21|!)[^\&]*)https://duckduckgo.com/?q=$1$2https://duckduckgo.com/?q=!example&get=other^(?:https?://)(?:.*\.)?duckduckgo.com/\?q=(?:%21|!)example(?=[^\+]|$)(?=\W|$)https://example.com/https://duckduckgo.com/?q=searchterm+!example+searchterm2&get=other^(?:https?://)(?:.*\.)?duckduckgo.com/\?q=(.*\+)?(?:(?:%21|!)example)(?:\+([^\&\?\#]*))?(?:\W|$)https://example.com/?query=$1$2https://duckduckgo.com/?q=!ghh+https%3A%2F%2Fgithub.com%2Fbabel%2Fbabel%2Fblob%2Fmaster%2Fpackages%2Fbabel-core%2FREADME.md&adfasfasd^(?:https?://)duckduckgo.com/\?q=(?:(?:%21|!)ghh\+)(?:.*)(github|gitlab|bitbucket)(?:\.org|\.com)(.*?(?=\&))https://$1.githistory.xyz$2Go directly to frequently used DuckDuckGo bangs to avoid intermediary network requests.
https://duckduckgo.com/?q=foo+bar+%21google+test+bar^https://duckduckgo\.com/\?q=(.*)\+(?:%21|!)google\b\+(.*?)(?:&|$)https://google.com/search?hl=en&q=$1+$2https://duckduckgo.com/?q=foo+bar+%21google^https://duckduckgo\.com/\?q=(.*?)\+?(?:%21|!)google\b\+?(.*?)(?:&|$)https://google.com/search?hl=en&q=$1$2If 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!
(top 24 of 38)
664 followers · starred Jun 2025
109 followers · starred Feb 2023
275 followers · starred Dec 2021
103 followers · starred Jan 2024
JavaScript
52.1%
HTML
31.5%
CSS
13.1%
Python
2.4%
Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.
See the codeWeb browser extension (Firefox, Vivaldi, Chrome, Opera, Edge) to redirect URLs based on regex or wildcard patterns.
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.
https://en.m.wikipedia.org/^(https?://)([a-z0-9-]*\.)m(?:obile)?\.(.*)$1$2$3https://www.google.com/amp/www.example.com/amp/document^(?:https?://)www.(?:google|bing).com/amp/(?:s/)?(.*)https://$1https://ad.doubleclick.net/ddm/trackclk/N135005.2681608PRIVATENETWORK/B20244?https://www.example.com^(?:https?://)ad.doubleclick.net/.*\?(http?s://.*)$1https://www.youtube.com/shorts/video-id^(?:https?://)(?:www.)?youtube.com/shorts/([a-zA-Z0-9_-]+)(.*)https://www.youtube.com/watch?v=$1$2historyStateWhat are bangs?: https://duckduckgo.com/bangs
https://www.google.com/search?&ei=-FvkXcOVMo6RRwW5p5DgBg&q=asdfasdf%21+sadfas&oq=%21asdfasdf+sadfas&gs_l=asdfsadfafsgaf^(?:https?://)(?:www.)google\.(?:com|au|de|co\.uk)/search\?(?:.*)?(?:oq|q)=([^\&]*\+)?((?:%21|!)[^\&]*)https://duckduckgo.com/?q=$1$2https://duckduckgo.com/?q=!example&get=other^(?:https?://)(?:.*\.)?duckduckgo.com/\?q=(?:%21|!)example(?=[^\+]|$)(?=\W|$)https://example.com/https://duckduckgo.com/?q=searchterm+!example+searchterm2&get=other^(?:https?://)(?:.*\.)?duckduckgo.com/\?q=(.*\+)?(?:(?:%21|!)example)(?:\+([^\&\?\#]*))?(?:\W|$)https://example.com/?query=$1$2https://duckduckgo.com/?q=!ghh+https%3A%2F%2Fgithub.com%2Fbabel%2Fbabel%2Fblob%2Fmaster%2Fpackages%2Fbabel-core%2FREADME.md&adfasfasd^(?:https?://)duckduckgo.com/\?q=(?:(?:%21|!)ghh\+)(?:.*)(github|gitlab|bitbucket)(?:\.org|\.com)(.*?(?=\&))https://$1.githistory.xyz$2Go directly to frequently used DuckDuckGo bangs to avoid intermediary network requests.
https://duckduckgo.com/?q=foo+bar+%21google+test+bar^https://duckduckgo\.com/\?q=(.*)\+(?:%21|!)google\b\+(.*?)(?:&|$)https://google.com/search?hl=en&q=$1+$2https://duckduckgo.com/?q=foo+bar+%21google^https://duckduckgo\.com/\?q=(.*?)\+?(?:%21|!)google\b\+?(.*?)(?:&|$)https://google.com/search?hl=en&q=$1$2If 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!
(top 24 of 38)
664 followers · starred Jun 2025
109 followers · starred Feb 2023
275 followers · starred Dec 2021
103 followers · starred Jan 2024
JavaScript
52.1%
HTML
31.5%
CSS
13.1%
Python
2.4%