126AdsClean

clean mail.yeah

  1. // ==UserScript==
  2. // @name 126AdsClean
  3. // @version 0.10
  4. // @description clean mail.yeah
  5. // @match *://*.126.com/*
  6. // @grant none
  7. // @run-at document-start
  8. // @license MIT
  9. // @namespace https://greasyfork.org/users/1354338
  10. // ==/UserScript==
  11.  
  12. function removeAds(){
  13. const ads = document.querySelectorAll(".gWel-bottom, .nui-closeable, .gWel-warning, .mail_collaboration_receive");
  14. ads.forEach((ad)=>{ad.remove()});
  15. }
  16.  
  17. (function() {
  18. setInterval(removeAds, 50);
  19. })();