Greasy Fork is available in English.

View More Twitter Replies

Automatically displays replies hidden behind buttons

< Commentaires sur View More Twitter Replies

Avis: OK - le script fonctionne, mais souffre de quelques problèmes

§
Posté le: 2021-05-17

Hi. Script is okay on Firefox + Tampermonkey, but Twitter has made some changes, so in order your script works well, please make the following amendments in the code:

1. Remove string "[data-focusable='true']" for offensiveSelector.
2. Update moreRepliesSelector code:
const moreRepliesSelector = "[role='button']" +
"[tabindex='0']" +
"[class='css-18t94o4 css-1dbjc4n r-1777fci r-1pl7oy7 r-1ny4l3l r-o7ynqc r-6416eg r-13qz1uu']";

Thank you, these modifications work!

§
Posté le: 2023-01-28

Thanks, used your updates to make it work again.

Deleted user 994222
§
Posté le: 2023-07-05

Thanks for this! I’d recommend making one additional alteration since this script no longer loads hidden “offensive” replies due to Twitter changing its code around again.

Go to the “const offensiveSelector” section and update the “[class^=...” string to the following:

"[class^='css-18t94o4 css-1dbjc4n r-1niwhzg r-42olwf r-sdzlij r-1phboty r-rs99b7 r-15ysp7h r-4wgw6l r-1ny4l3l r-ymttw5 r-f727ji r-j2kj52'][class$='r-o7ynqc r-6416eg r-lrvibr'] " +

§
Posté le: 2023-07-05

Thanks for this! I’d recommend making one additional alteration since this script no longer loads hidden “offensive” replies due to Twitter changing its code around again.

Unfortunately, this script has not been updated for a long period of time, so I created my own. Please try, maybe it helps you: https://greasyfork.org/en/scripts/429224

Poster une réponse

Connectez-vous pour poster une réponse.