Hide Text on Twitter

Hide text from your TL to make viewing illustrations more comfortable

< Feedback on Hide Text on Twitter

Review: Good - script works

§
Posted: 2024-04-17

Thank you for creating this script! This is the only one I’ve encountered that successfully filters out text tweets from my artist-heavy Twitter lists. Paired with LoveDX’s edit, this has become essential for my Twitter browsing experience. Although this isn’t my ideal solution considering the script does exactly what it says in the description (hides all text even on media posts), being able to easily disable the script temporarily from the checkbox in the top-right is an adequate compromise.

§
Posted: 2024-04-17

After using this script some more today, I noticed that it tends to hide the media itself as well as all text on the page when opening a tweet in a new tab. I circumvented this by adding an exclusion line to the script so it doesn't load on these pages:

// @exclude         https://twitter.com/*/status/*

Not the best solution as the script stays unloaded when navigating to another page on Twitter until you reload the tab, but it works well enough for my needs.

§
Posted: 2024-05-03

I just found out that voice media is getting cut so I made another edit on line 42
const hasMediaLink = tweet.innerHTML.includes('https://pbs.twimg.com/media/') || tweet.innerHTML.includes('videoComponent') || tweet.innerHTML.includes('card.wrapper') || tweet.innerHTML.includes('Voice post');

Nice to see my small adjustments being useful ♥

§
Posted: 2024-05-17

Thank you so much for the edit! It works like a charm.

I should also add that Twitter has been pushing the "x.com" domain aggressively lately (at least in my corner of the world), so adding "match" and "exclusion" lines for this domain is now necessary.

// @match           https://x.com/*
// @exclude         https://x.com/*/status/*

Post reply

Sign in to post a reply.