Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wesbos
Created November 29, 2022 19:48
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesbos/0e7a22725f2efdf43fb19cfd10d1dbe8 to your computer and use it in GitHub Desktop.
Save wesbos/0e7a22725f2efdf43fb19cfd10d1dbe8 to your computer and use it in GitHub Desktop.
grease monkey script to remove bot tags
// ==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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment