Browser extension (Firefox, Chrome, Opera, Edge) to redirect URLs based on regex

84 Bluestein 38 6/1/2025, 7:13:46 AM github.com ↗

Comments (38)

rdmuser · 22h ago
Sadly late 2021 the original dev passed away. Someone has taken over stewardship of the project but it is currently moving slowly and they are seeking more contributors (javascript skills are a plus).

He was a bit of a hn user and seemed good natured and pleasant. Though I didn't know him I was sad to hear he'd passed both as a Redirector user and a fan of good people doing good things. I know he'd mentioned being happy to get recognition on here. https://news.ycombinator.com/user?id=einaregilsson

I really enjoyed the original devs write up on creating an easter egg specifically targeting Mark Hamills avatar in game. https://einaregilsson.com/an-easter-egg-for-one-user-luke-sk... https://news.ycombinator.com/item?id=30715746

rdmuser · 18h ago
Oups linked the wrong hn thread about that easter egg. Here is the one that got a bunch of attention back in 2017: https://news.ycombinator.com/item?id=14653017
out-of-ideas · 5h ago
for firefox, i use `request-interceptor` ( https://addons.mozilla.org/en-US/firefox/addon/request-inter... )

though sadly it has not had an update in a while (a dark mode would be great) (and rarely, a page-url match does not always match a request-rule where i believe some javahell shinanigans take over and somehow get their way)

Bluestein · 20h ago
Really sad to hear.-
kmfrk · 11h ago
Been using this for a long time, and it's fantastic.

I also found out that Kagi (the paid search engine) supports rewriting results, which is probably where you'll see a lot of the links you follow.[1]

For instance, if you get some Fandom results, you can change them to antifandom that is part of the BreezeWiki project[2], if you so prefer: https://forgottenrealms.antifandom.com.

[1]: https://kagi.com/settings/?p=redirects

[2]: https://antifandom.com

neodymiumphish · 7h ago
I’m a Kagi subscriber and didn’t know about this… thanks!!
Bluestein · 10h ago
> Kagi (the paid search engine) supports rewriting results

This is such a value-add! Pretty smart guys.-

nileshtrivedi · 15h ago
I find it annoying when people share direct URLs to PDFs at arxiv.org instead of the the abstract. However, if I were to use a redirect extension like this one, then my own click on the PDF link would get redirected back to the abstract page. To handle this, the redirect rule needs to consider the referer page too, with a possible exception if the referer is the same site as the destination.
godelski · 5h ago
Dear god... this is a major pet peeve of mine. I frequently open the links on my phone and the pdf just eats data and results in a terrible reading experience.

The reason I open on my phone is because I find via places like HN, Twitter, Bsky, read the abstract, and then send the link back to my computer for later reading (Firefox send tabs). 99.9% of the time I do not want the pdf...

mook · 11h ago
For something like that, on Android I find it fine to install the URL Forwarder app from F-droid and share the link to the app. That way you opt-in to the modification (I use it to load things with Archive.today from HN).
purpleidea · 21h ago
I've used this before, but the biggest missing feature is a compendium of built-in common fixes, like removing the &si= tracker junk off of youtube links, and so on...
dmit · 21h ago
Or these, which have their own Wikipedia page: https://en.wikipedia.org/wiki/UTM_parameters
ftk_ · 19h ago
If you have uBlock Origin installed you can enable URL tracking protection filter list or write your own filters `$removeparam=<tracker param>`.
DimitriBouriez · 17h ago
The extension is no longer available on Chrome. So, I am looking for a way to automatically redirect x.com to xcancel.com
chris_pie · 16h ago
For this specific case there's a "Nitter Redirect" extension
aspenmayer · 17h ago
MallocVoidstar · 16h ago
This is also a MV2 extension and therefore also not available on Chrome.
aspenmayer · 16h ago
MallocVoidstar · 16h ago
Chrome has disabled support for MV2 extensions (unless you set an enterprise policy) and is entirely removing support for MV2 extensions in v139: https://developer.chrome.com/docs/extensions/develop/migrate...

It releases in August.

spookie · 10h ago
Hope those Google guys fix it! Would be bad not having half of the appeal of the browser.
anonym29 · 15h ago
You're welcome to quit using spyware as your primary browser if you're dissatisfied with the spyware's treatment of your rights as a user.

If you choose not to, you should probably cede the right to complain about problems solved with MV2 extensions, since those problems are now self-inflicted.

aspenmayer · 16h ago
Ok.
userbinator · 11h ago
I use a filtering proxy to do this. Much more control, and as someone who regularly uses several browsers simultaneously, no need to configure each one separately.
Bluestein · 10h ago
There used to be this nice proxy-thing for windows called the "Proxomitron" (or such), peculiar one-eyed pyramid icon and everything! Wonder if it's still around. Been a while.-
userbinator · 9h ago
That's what I use.
godelski · 5h ago
The first example makes me wonder: why is Wikipedia so... bad?

It can redirect mobile users to the mobile site but still serves desktop users the mobile site. Why is this reverse direction so hard?

What the fuck is up with the light/dark theme feature? I'm really happy they implemented it, but why is the default 'skin-theme-clientpref-day' (light theme)? Shouldn't the default be 'skin-theme-clientpref-os' (automatic)? What's the point of having "automatic" if it isn't... you know... automatic? It's literally a one liner (setting default value). Am I missing something much more nuanced?

I see stuff like this all the time, not just on Wiki. Stuff drives me nuts. Just adds needless extra work. I know it is kinda petty to complain about having to click an extra button or two, but I thought the whole point of programming was to automate stuff. Hell, how often do we automate stuff that doesn't need to be lol. Isn't the classic programmer problem that we spend more time automating and optimizing than would be saved by the automation? I mean the theme issue is 5 seconds of work and saves a billion users 2 seconds, each. That one seems worth it if there isn't some other issue.

hexage1814 · 21h ago
I use it all the time, pretty handy. Sadly, as people mentioned the original developer passed away and the community needs help, especially to port to manifest V3.
bonki · 20h ago
Curious, what are you using it for? Do you have a few examples?
hexage1814 · 20h ago
For instance, I use to: redirect new reddit site to old.reddit.com

I keep a blog on wordpress.com, but I really dislike their new blog admin interface, but the interface one can still be accessed , so I redirect to there to edit my posts on the old interface

I use some alternative front-ends, like imginn.com, which is alternative front-end to instagram, so I set to redirect links there.

This sort of thing.

hadrien01 · 14h ago
Redirects from translated versions of Google or Microsoft documentation to the English one. The Microsoft ones are okay-ish but I strongly prefer reading the original version. And the Google ones are a patchwork of machine-translated nonsense, "powered by Google Cloud Translation API"
Narishma · 14h ago
Mobile Wikipedia to normal Wikipedia.
snthd · 20h ago
The discontinued HTTPS Everywhere is the same thing, just that it came with a default https flavoured ruleset.
altairprime · 13h ago
Safari users, Redirect Web is in the app store for this.
LargoLasskhyfv · 18h ago
aspenmayer · 17h ago
Also available from same dev on a non-GH host:

https://libredirect.codeberg.page/

amitizle · 20h ago
Not to be that guy but sounds like a vulnerability waiting to happen
Bluestein · 18h ago
There seems to almost always be a tradeoff between how useful a piece of software potentially is, and how vulnerable, as in, how much of a desirable target ...
lupusreal · 14h ago
That's why I bricked up all of my windows. Glass is just too easy to break.