NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name NoPromo // @author warum // @copyright 2018, warum (https://openuserjs.org//users/warum) // @license GPL-3.0-or-later // @namespace // @description Remove promoted content from twitter // @match *://*.twitter.com/* // @updateURL https://openuserjs.org/meta/warum/NoPromo.meta.js // @run-at document-end // ==/UserScript== function addGlobalStyle(css) { try { var elmHead, elmStyle; elmHead = document.getElementsByTagName('head')[0]; elmStyle = document.createElement('style'); elmStyle.type = 'text/css'; elmHead.appendChild(elmStyle); elmStyle.innerHTML = css; } catch (e) { if (!document.styleSheets.length) { document.createStyleSheet(); } document.styleSheets[0].cssText += css; } } //filter out promoted content addGlobalStyle( ".promoted-trend, .promoted-account, .promoted-tweet{display:none}" );