// ==UserScript== // @name Unsuck Twitter // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://twitter.com/ // @grant none // ==/UserScript== /* jshint -W097 */ 'use strict'; // Your code here... document.querySelector('.moments').remove() var removePromoted = function () { [].forEach.call(document.querySelectorAll("[data-disclosure-type='promoted']"), function(n) { n.remove(); }) }; removePromoted(); setInterval(removePromoted, 5000);