Note:
Updated November 1 to remove .js-activity-generic (who your followees added).
Updated September 15 to add Firefox support.
Sometimes Twitter gets things wrong. Very, very, wrong. A few “features” that I think are bugs include Twitter Moments,
To this end, I created a little bookmarklet called “TWELP”.
<a href="javascript:(function($){function kill(){$('.promoted-tweet, .Icon--heartBadge').closest('li.stream-item').css('display','none');$('.js-moments-tab, .DismissibleModule, .js-activity-generic ').css('display','none');setTimeout(kill, 1000);}kill();})(window.jQuery);">TWELP</a>
Let me rewrite that for you in a version that’s easy to read, but won’t work to copy and paste:
(function(){ function kill($) { $('.promoted-tweet, .Icon--heartBadge').closest('li.stream-item').css('display','none'); $('.js-moments-tab, .DismissibleModule, .js-activity-generic').css('display','none'); setTimeout(kill, 1000); } kill(); })(window.jQuery);
The bookmarklet creates a kill function that:
- hides promoted tweets by finding the parent tweet containing a
promoted-tweet
child class - hides any “liked” tweets that contain the heart icon, including uninteresting tweets in your stream suck as the fact that your friend Jane liked a tweet of a picture of her acquaintance Joe, who you are not following, eating an oyster. Seriously, who the fuck cares? It also hides the “people who liked your tweet” feature in your notifications. Not sure if that is a feature or a bug.
- The ‘.js-activity-generic’ hides the ‘pat and chris followed leslie’. Seriously, double wtf cares? I am testing in production, so maybe this has some unwanted side effects.
- hides the “Moments” tab by hiding the tab that has the
js-moments-tab class
- hides promoted modules that I hate like “In Case You Missed It” and “Who to follow”
- Calls itself once per second so if you scroll, it will continue killing those annoying tweets mentioned above.
- You have to pass window.jQuery to $ because Firefox defines it’s own $. (Thanks to @Potch for that tidbit)
TWELP – You can drag this link to your bookmarks bar, and click TWELP bookmarklet whenever you load Twitter. It kills the “Moments” tab, all ads, and removes the “X liked” tweets.
or, you can wrap your own.