Skip to content

Instantly share code, notes, and snippets.

@davidrupp
Forked from corinna000/unsuck-twitter.js
Created September 8, 2019 13:45
Show Gist options
  • Save davidrupp/c60c83d6a3a62ef54674b5393c775f8a to your computer and use it in GitHub Desktop.
Save davidrupp/c60c83d6a3a62ef54674b5393c775f8a to your computer and use it in GitHub Desktop.

Revisions

  1. @corinna000 corinna000 renamed this gist Dec 6, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion unfuck-twitter.js → unsuck-twitter.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    // ==UserScript==
    // @name Unfuck Twitter
    // @name Unsuck Twitter
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description try to take over the world!
  2. @corinna000 corinna000 created this gist Dec 6, 2015.
    19 changes: 19 additions & 0 deletions unfuck-twitter.js
    Original 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);