Hide Google Sponsored Ads (uEierd)

Hide divs with class 'uEierd' on Google search results (typically ads)

  1. // ==UserScript==
  2. // @name Hide Google Sponsored Ads (uEierd)
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Hide divs with class 'uEierd' on Google search results (typically ads)
  6. // @author Drewby123
  7. // @license MIT
  8. // @match https://www.google.com/search*
  9. // @match https://www.google.*.*/search*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict';
  15.  
  16. function hideAds() {
  17. document.querySelectorAll('div.uEierd').forEach(el => {
  18. el.style.display = 'none';
  19. });
  20. }
  21.  
  22. // Initial run
  23. hideAds();
  24.  
  25. // Observe dynamic content
  26. const observer = new MutationObserver(hideAds);
  27. observer.observe(document.body, { childList: true, subtree: true });
  28. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址