kill newsfeed-msg-badge

Hide the stupid "dancing newsfeed message" icon in Yahoo mail

  1. // ==UserScript==
  2. // @name kill newsfeed-msg-badge
  3. // @namespace SamPittman
  4. // @description Hide the stupid "dancing newsfeed message" icon in Yahoo mail
  5. // @include https://*.mail.yahoo.com*
  6. // @version 1
  7. // ==/UserScript==
  8.  
  9. //console.log('= running kill newsfeed-msg-badge =');
  10. var badSpan = document.evaluate("//*[@class='newsfeed-msg-badge']",
  11. document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  12. var badHtmlElement = badSpan.snapshotItem (0);
  13. //console.log(badHtmlElement);
  14. badHtmlElement.style.visibility = 'hidden';