Greasy Fork

Remove LootLink/Dest Anti-Adblocker Screen

Removes anti-adblocker overlays on Lootlabs.com and Lootdest.com

目前为 2025-02-05 提交的版本。查看 最新版本

// ==UserScript==
// @name         Remove LootLink/Dest Anti-Adblocker Screen
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Removes anti-adblocker overlays on Lootlabs.com and Lootdest.com
// @author       Iplayminecraft
// @match        https://*.lootlabs.com/*
// @match        https://lootlabs.com/*
// @match        https://*.lootdest.com/*
// @match        https://lootdest.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    function removeOverlay() {
        document.querySelectorAll('*').forEach(el => {
            const style = window.getComputedStyle(el);
            if (
                style.position === 'fixed' &&
                style.inset === '0px' &&
                style.boxShadow === 'rgb(0, 0, 0) 2px 0px 5px 0px' &&
                style.display === 'flex' &&
                style.zIndex === '2147483647' &&
                style.justifyContent === 'center' &&
                style.alignItems === 'center' &&
                style.background === 'rgba(76, 76, 76, 0.76)'
            ) {
                el.remove();
            }
        });
    }

    // Run the function initially and also on DOM changes
    removeOverlay();
    new MutationObserver(removeOverlay).observe(document.body, { childList: true, subtree: true });
})();