Twitter expando Greasemonkey script for Firefox

I know there's already a couple Greasemonkey scripts out there to fix Twitter expandos in Firefox, however they either don't work at all for me anymore or only work intermittently, and rather often just suddenly stop working. I couldn't fix any of the other ones, but I've made my own. It's a tad bit hacky, but so far it's working pretty reliably.

If anyone is interested, here it is.
Hopefully someone else may find this useful, just thought I'd share.

Posted Apr 20, 2018, 8:48 AM UTC · edited

2810
ajmeb53•

thanks for this

2
tb21666•

Violentmonkey works great IME with Quantum

1
TheCrimsonKnight•

This is the first time I read about this. What does Twitter expando do?

1
DrewsephA•

In RES? It opens the tweet in an embed on the reddit page, so you get the full tweet, with profile pic, clickable buttons/hashtags, etc

2
YogiFiretower•

Why does it work in Chrome but not Firefox?

2
DrewsephA•

No idea, I'm not a coder ¯\_(ツ)_/¯

2
Overlord_Odin•

Hey, I started using this, and it works well, but there doesn't seem to be a way to collapse the tweets after expanding them.

1
NeobimOP•

There's a bug that I can't seem to get around where if you expand a tweet, collapse it, then re-expand it, the content disappears. Though I'm finding I almost never re-expand a collapsed tweet, and this is starting to kinda annoy me too. Should I just allow collapsing again?

2
Overlord_Odin•

Yeah, I would find collapsing to be helpful. I'd much prefer an issue with re-expanding tweets because I don't really do that. If you make a change do I have to update the script on my side?

1
NeobimOP•

Not sure! Haven't really used Greasemonkey before this. I've gone ahead and changed it to no longer prevent collapsing, so check it out, maybe it does auto update? If not you might need to reinstall the script.

2
Overlord_Odin•

I had to manually update, but it works now, thank you! Also, if people complain, this means you can switch it back and I will just keep this version :)

Edit: Actually, you probably won't get complaints because people won't be updated automatically.

2
Overlord_Odin•

Hey, what's the reason that RES can't include this in the extension? That is, what's this doing that RES can't?

1
NeobimOP•

Mozilla has a policy against including remote code (from twitter.com in this case) in extensions hosted on their site. I'm pretty sure that's all that it is, not a technical limitation.

2