Skip to content

Instantly share code, notes, and snippets.

@phistuck
Created November 13, 2017 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phistuck/392fa52b57c1797f70c61c458047f57e to your computer and use it in GitHub Desktop.
Save phistuck/392fa52b57c1797f70c61c458047f57e to your computer and use it in GitHub Desktop.
Hide Irrelevant Twitter Notifications
javascript:(function() {
var node, array = [], iterator = document.evaluate("//li[contains(@class, 'js-stream-item') and .//span[contains(@class, 'Icon--magicrecs')]]", document);
while (node = iterator.iterateNext()) {
array.push(node)
}
for (x of array) {
x.style.cssText += "visibility: hidden !important";
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment