-
-
Save davidrupp/c60c83d6a3a62ef54674b5393c775f8a to your computer and use it in GitHub Desktop.
Tampermonkey script to unsuck Twitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment