Greasy Fork

Remove Popup Ads on mp4upload.com and aniwave.to

Remove all popup ads on mp4upload.com and aniwave.to pages (please wait 1-2 secs before clicking the page, thx)

目前为 2024-04-03 提交的版本。查看 最新版本

// ==UserScript==
// @name         Remove Popup Ads on mp4upload.com and aniwave.to
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Remove all popup ads on mp4upload.com and aniwave.to pages (please wait 1-2 secs before clicking the page, thx)
// @author       Your name
// @match        https://www.mp4upload.com/*
// @match        https://aniwave.to/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to remove popup ads indefinitely
    function removePopupAds() {
        setInterval(function() {
            // Remove popups every second
            var popupAds = document.querySelectorAll('a[href^="http://"]');
            popupAds.forEach(function(popupAd) {
                popupAd.remove();
            });
        }, 1000); // Check every 1 second
    }

    // Immediately remove popups
    removePopupAds();
})();