theAlinP / twitter-link-deobfuscator

A Firefox add-on that restores the original destination of the links (from tweets) that have been shortened by the Twitter servers. It only runs while browsing Twitter's website (twitter.com).
https://addons.mozilla.org/en-US/firefox/addon/twitter-link-deobfuscator/
MIT License
36 stars 5 forks source link

Add-on does not work with new Twitter design #6

Closed muellermartin closed 5 years ago

muellermartin commented 5 years ago

The new Twitter design seems to no longer have the data-expanded-url attribute for links. Therefore this add-on no longer works :(

theAlinP commented 5 years ago

Yes, I saw that. I even added a warning on the add-on's page. Here it is:

Warning:

Recently, Twitter redesigned their User Interface. It affected desktops alike and it broke Twitter Link Deobfuscator.

From a short inspection I found many similarities with the layout used on mobile.twitter.com and that's bad news, because the original URLs of the links posted by the users are not embedded in the page. This new layout seems to be built using React.

Fortunately, at the time that I am writing this, the new UI appears only when I am logged in and not every time I log in, sometimes it appears, sometimes it doesn't, sign that it is still being tested.

This may not be an ideal solution, but until I update TLD to work with the new layout you could try viewing profiles in Private Mode or in a new container tab where you would be logged out.

Until I fix TLD to work on the new layout, I will continue to update it for the old layout.

The new "personalized" layout only appears is you are logged in.

I started working on an update a week ago. I already pushed 3 commits. So far, I got TLD to work on mobile.twitter.com, which is the the first step towards working on the "personalized" twitter.com, and clean the links from the user description, the "Website" link and the ones from tweets. I will then update the add-on to clean the links from replies. I couldn't find any way to clean the Twitter Cards. I will keep inspecting the pages, but I'm afraid this will no longer be possible.

theAlinP commented 5 years ago

I published a new version on addons.mozilla.org. The new version works on mobile.twitter.com (for example: "https://mobile.twitter.com/firefox"), too. That's the version optimized for mobile devices.

Please update the add-on and if you find any bugs, let me know.