-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect to a specific instagram account when a page contains an instagram embed #14
Comments
While trying to replicate the bug, especially the redirect that happens when the tab loses focus, I realized that when the tab loses focus a POST request to instagram is ussued (which is incidentally blocked by my adblocker, we'll see if it's relevant - probably not) it's a redirect to instagram.com/ajax which is a big indication of why that specific user (whoever they are) is what I get redirected to. https://github.com/claromes/socialswitch/blob/main/firefox/background.js#L40 Blocklisting "ajax" as a handle in your code is bad because it would make the extension not work for that specific user, but perhaps intercepting and discarding POST requests for /ajax would solve the issue without side effects. Sorry, I never developed an extension and I don't think I can test my theory quickly. |
Fix wrong redirect on firefox ( #14 )
@signaleleven Thank you for the issue and the PR. It has already been updated in the AMO, with proper credits in the Release Notes section. |
Can this be reopened? I still see the issue on Firefox mobile (after upgrading to the new version). |
Curious. I tested it on mobile, and the links that had this issue were resolved. The version I am using is 133.0.3. It's the same code. |
Occasionally (not always, which I realize it's very annoying in a bug report) when a page contains a instagram embedded post, I get AUTOMATICALLY redirected to https://www.picuki.com/profile/ajax (which has nothing to do with the embedded post, and I suspect the name "ajax" might be a clue on the root cause?)
Switching to imginn causes the same behavior, but redirecting to imginn of course.
The page linked below, for instance, seems to trigger the bug fairly regularly on Firefox. Scroll until the embedded instagram post, and the browser will navigate to the profile mentioned above, which is very confusing, as it takes you away from the page you are reading. Hitting "back" usually lets you stay on the page, but when the tab loses focus, the redirect happens again.
https://www.ilpost.it/2024/10/05/mastruzzo-scrivere-ai-prigionieri-politici-russi/
I'm not sure what other information I can offer, please let me know.
The text was updated successfully, but these errors were encountered: