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

Links in replies are not deobfuscated #3

Closed muellermartin closed 5 years ago

muellermartin commented 5 years ago

Only the links in the original tweet get deobfuscated, but not links in tweets that are replies to that tweet.

For example: https://twitter.com/newsycombinator/status/1130488653657051137

theAlinP commented 5 years ago

The funny thing is that by opening that address directly, the links from replies get deobfuscated, too. The add-on won't deobfuscate them only if I go back to the profile page (https://twitter.com/newsycombinator) and click on that particular tweet to show it in full, including replies.

This happens most likely because Twitter uses AJAX and the HTML5 history API. It's a tough nut to crack, but I will be able to make TLD detect those links, too.

theAlinP commented 5 years ago

Done! Please update the add-on to version 0.4.0.

theAlinP commented 5 years ago

Just out of curiosity, if you still use the Firefox profile where you saw issue #2, let me know if it works on it, too.

muellermartin commented 5 years ago

Thank you for implementing this feature <3 It works for me while still using the somehwhat wacky profile which causes issue #2 :)