Skip to content

Instantly share code, notes, and snippets.

@davewsmith
Last active October 7, 2022 19:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davewsmith/a297e5785a24d91f826f521e8a33a9a2 to your computer and use it in GitHub Desktop.
Save davewsmith/a297e5785a24d91f826f521e8a33a9a2 to your computer and use it in GitHub Desktop.
A bookmarklet for hiding both side columns of the new Twitter design. Uncluttered stream reading FTW
javascript:(function(){
var banner=document.querySelector('[role="banner"]');
if (banner && banner.firstElementChild !== null && banner.firstElementChild.firstElementChild !== null) {
banner.firstElementChild.firstElementChild.style='display:none';
}
var sc=document.querySelector('[data-testid="sidebarColumn"]');
if (sc && sc.firstElementChild !== null) {
sc.firstElementChild.style='display:none';
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment