Skip to content

Instantly share code, notes, and snippets.

@unscriptable
Last active February 12, 2024 00:38
Show Gist options
  • Save unscriptable/4562328 to your computer and use it in GitHub Desktop.
Save unscriptable/4562328 to your computer and use it in GitHub Desktop.
bookmarklet to collapse all replies and retweets on a person's twitter timeline feed page
javascript:/**(c)2013_unscriptable.com.License:MIT*/(function(){var a=document;try{var b;if(!a.getElementById("page-container"))throw"Are you sure you're on a Twitter page?";b=a.getElementById("collapse-stuff");b||(b=a.createElement("style"),b.id="collapse-stuff",a.head.appendChild(b));0==b.sheet.cssRules.length?b.sheet.insertRule("[data-mentions],[data-retweet-id]{display:none}",0):b.sheet.deleteRule(0)}catch(c){alert("Oops! "+c+" That didn't work :(")}}());
@unscriptable
Copy link
Author

instructions:

  1. create a bookmark (drag any url to the bookmark bar or somesuch siliness)
  2. edit said bookmark (how? you can figure it out)
  3. paste the code above over the address/url of the previous bookmark.
  4. name your bookmark ("toggle noisy tweets" seems appropriate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment