Skip to content

Instantly share code, notes, and snippets.

@wesbos
Created November 29, 2022 19:48
Show Gist options
  • Save wesbos/0e7a22725f2efdf43fb19cfd10d1dbe8 to your computer and use it in GitHub Desktop.
Save wesbos/0e7a22725f2efdf43fb19cfd10d1dbe8 to your computer and use it in GitHub Desktop.

Revisions

  1. wesbos created this gist Nov 29, 2022.
    18 changes: 18 additions & 0 deletions nuke-bot-tags.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    // ==UserScript==
    // @name Remove Bot Tags
    // @version 1
    // @grant none
    // ==/UserScript==

    function nukeEm() {
    console.log('Nuke em!');
    Array.from(document.querySelectorAll('a[href*="SaveTo"], a[href*="memdotai"]'))
    .map(link => {
    // Tweet deck / Twitter
    return link.closest('.stream-item') || link.closest('article')

    })
    .forEach(item => item.style.display = 'none');
    }

    setInterval(nukeEm, 1000);