Skip to content

Instantly share code, notes, and snippets.

@steeleforge
Created July 7, 2019 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steeleforge/47ac8348d0341ad4231f380f68a4678e to your computer and use it in GitHub Desktop.
Save steeleforge/47ac8348d0341ad4231f380f68a4678e to your computer and use it in GitHub Desktop.
block twitter users with promoted ads
javascript:localStorage.removeItem( 'promoted_accounts' );[...document.querySelectorAll('.promoted-account, .promoted-trend, .promoted-tweet')].map(el=>el.style.cssText='display:none!important');[...document.querySelectorAll('.promoted-tweet .js-actionBlock button')].map(el=>{if($){setTimeout(function() { $(el).trigger('click');$('.block-button').click(); },500) }});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment