einaregilsson / Redirector

Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.
http://einaregilsson.com/redirector/
MIT License
1.54k stars 159 forks source link

[site] Is it possible to redirect if the webpage is not "directing" in the first place? #357

Open JFMugen opened 1 year ago

JFMugen commented 1 year ago

Hey there, firstly I want to say thank you for the tool, my condolences to his loved ones.

Google has this new embed Youtube that lets you play videos without leaving Google, but I personally hate it. Finally thought about using this extension and I managed to make it work, but with an issue..

Default Search -> https://www.google.com/search?q=camera+obscura+songs&oq=Camera+Obscura+Song&aqs=chrome.0.69i59l2.8183j0j9&sourceid=chrome&ie=UTF-8

When I click on a video -> https://www.google.com/search?q=camera+obscura+songs&oq=Camera+Obscura+Song&aqs=chrome.0.69i59l2.8183j0j9&sourceid=chrome&ie=UTF-8#fpstate=ive&vld=cid:d45ef54c,vid:nhSanTYPm2g

As you can see, it just adds the line that starts with #fpstate and this Redirect works when I open the link on new tab

image

The issue is, when I just left click on the video, it doesn't work. I am not sure how to phrase this but from what I understand the extension can't see there is a change in the link? I really don't know.

So, I was wondering if there is a way to fix this, thank you :)

jadedgnome commented 11 months ago

try this: ✅ 'HistoryState'

JFMugen commented 11 months ago

try this: ✅ 'HistoryState'

Sadly doesn't help.

Looks like google changed their way a bit, "open on new tab" doesn't work as well now, it just opens the search results again :/