Skip to content

Instantly share code, notes, and snippets.

@yamamaya
Last active September 30, 2023 03:48
Show Gist options
  • Save yamamaya/9170c437c628785317ed50fb1e33a6ba to your computer and use it in GitHub Desktop.
Save yamamaya/9170c437c628785317ed50fb1e33a6ba to your computer and use it in GitHub Desktop.
Remove "Clear posts" buttons from X pro (aka TweetDeck)
Array.prototype.slice.call( document.getElementsByTagName( 'path' ) )
.filter( obj => obj.getAttribute( 'd' ).indexOf( 'M22 19v2h-7.5l2-2H22zM3.35 14.232c-.97.977-.97 2.559 0 3.536L6.59' ) == 0 )
.map( obj => obj.parentElement.parentElement.parentElement.parentElement )
.forEach( obj => obj.style.display = "none" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment