SimonBrazell / privacy-redirect

A simple web extension that redirects Twitter, YouTube, Instagram & Google Maps requests to privacy friendly alternatives.
GNU General Public License v3.0
2.01k stars 113 forks source link

Fails with bibliogram redirections #187

Open stemy2 opened 3 years ago

stemy2 commented 3 years ago

Hello,

The extension redirects to bibliogram only if the url is formed like this: instagram.com/u/[user]. But if we click on the user profile on an embedded instagram publication, the url is like this: instagram.com/[user], and there's no redirection made by the extension.

SimonBrazell commented 3 years ago

I think originally this was done so as not to interfere with accounts / logins, perhaps it needs to be revisited to allow for this behaviour.

SimonBrazell commented 3 years ago

Do you have an example of a link like this in the wild?

stemy2 commented 3 years ago

This is strange. If i click on a link formed like "instagram.com/[user]", there's no redirection, but if i copypaste the exact same link on the adress bar, the redirection works fine.

SimonBrazell commented 3 years ago

Sounds like Instagram is making use of a service worker to intercept and respond to the request before the extension has a chance to do so. I've encountered this before with Twitter, I had to write a content script to remove it before redirects took place to fix this, see here.