Remove Popup Ads from Mobalytics

Remove advertisement blocks and anti-adblock banners on Mobalytics.gg

  1. // ==UserScript==
  2. // @name Remove Popup Ads from Mobalytics
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.3
  5. // @description Remove advertisement blocks and anti-adblock banners on Mobalytics.gg
  6. // @author Your Name
  7. // @match https://mobalytics.gg/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Function to remove advertisement elements
  16. function removeAds() {
  17. const adElements = document.querySelectorAll('div.m-1b70aff, div.m-mi6bts, div.m-1hsuptt');
  18. if (adElements.length > 0) {
  19. adElements.forEach(ad => {
  20. ad.remove(); // Remove the advertisement element from the DOM
  21. });
  22. } else {
  23. console.log("No ads found to remove."); // Log if no ads are found
  24. }
  25. }
  26.  
  27. // Run the function to remove ads when the page is fully loaded
  28. window.addEventListener('load', () => {
  29. removeAds();
  30.  
  31. // Observe for dynamically added ads
  32. const observer = new MutationObserver(removeAds);
  33. observer.observe(document.body, { childList: true, subtree: true });
  34. });
  35. })();

QingJ © 2025

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