-
-
Save davidrupp/c60c83d6a3a62ef54674b5393c775f8a to your computer and use it in GitHub Desktop.
Revisions
-
corinna000 renamed this gist
Dec 6, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ // ==UserScript== // @name Unsuck Twitter // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! -
corinna000 created this gist
Dec 6, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ // ==UserScript== // @name Unfuck 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);