FixTweet / FxTwitter

Fix broken Twitter/X embeds! Use multiple images, videos, polls, translations and more on Discord, Telegram and others
https://fxtwitter.com
MIT License
2.47k stars 70 forks source link

Prevent redirection to x.com from fxtwitter #822

Closed elijahr2411 closed 1 month ago

elijahr2411 commented 3 months ago

When someone clicks an fxtwitter link, ?mx=1 should be added to the twitter URL it redirects to, which prevents the redirect to x.com

Example:

twitter.com/someone/status/1234567890 -> might redirect to x.com twitter.com/someone/status/1234567890?mx=1 -> Will stay on twitter.com, at least for now

joshcangit commented 3 months ago

If you didn't know, Twitter has already migrated, albeit not completely, to x.com.

https://twitter.com/elonmusk/status/1791351500217754008?mx=1

So, using ?mx=1 works for now but who knows if it will remain this way? Best to just wait and see.

AncientAzem commented 1 month ago

Just wanted to make note on here that while the adding the ?mx=1 param to the redirect does keep it on twitter.com site, a user's login session does not work unless they are redirected onto the x.com version of the site. So if someone opened an fx link with the intent to interact with the post they now need to reload the page to do so.

dangeredwolf commented 1 month ago

Yeah, good point @AncientAzem. At the moment I'm leaning towards just not doing anything because either you can use an extension to prevent redirection to x.com, or for people already using x.com it works like normal as-is.