https://link-lib.netlify.app/adblock

提交的 URL:
https://link-lib.netlify.app/
报告完成时间:

链接 · 找到 0 个

从页面中识别出的传出链接

JavaScript 变量 · 找到 5 个

在页面窗口对象上加载的全局 JavaScript 变量是在函数外部声明的变量,可以从当前范围内的代码中的任何位置访问

名称类型
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
adBlockCheckfunction
closeModalfunction

控制台日志消息 · 找到 0 条

记录到 Web 控制台的消息

HTML

页面的原始 HTML 正文

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ad Blocker Detection</title>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&amp;display=swap" rel="stylesheet">
    <link rel="icon" href="logo.png" type="image/png"> 
    <style>
        body {
            font-family: 'Roboto', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            color: #333;
            text-align: center;
        }

        h1 {
            margin-top: 50px;
        }

        .ad-blocker-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            padding: 20px;
            border-radius: 8px;
            max-width: 400px;
            width: 90%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .modal-body {
            margin-bottom: 20px;
        }

        .close-button, .disable-button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .close-button {
            background: red;
            color: white;
        }

        .disable-button {
            background: green;
            color: white;
        }

        #main-content {
            display: none;
            margin-top: 50px;
        }

        .show {
            display: block;
        }
    </style>
</head>
<body>

    <div id="main-content">
        <h1>Welcome to Our Website</h1>
        <p>Enjoy your stay! Please consider disabling your ad blocker to support us.</p>
        <button id="learn-more" class="disable-button" onclick="window.location.href='lib'">Go</button>
    </div>

    <div id="ad-blocker-modal" class="ad-blocker-modal">
        <div class="modal-content">
            <div class="modal-header">Ad Blocker Detected</div>
            <div class="modal-body">
                <p>It seems you are using an ad blocker. Please consider disabling it to support our content.</p>
            </div>
            <button class="close-button" onclick="closeModal()">Close</button>
        </div>
    </div>

    <script>
        function adBlockCheck() {
            setTimeout(function() {
                document.body.innerHTML += `<div class="adsbygoogle" id="test-ad"></div>`;
                const testAd = document.getElementById('test-ad');
                const testAdStyle = getComputedStyle(testAd);

                if (testAdStyle.display === 'none') {
                    document.getElementById('ad-blocker-modal').style.display = 'flex';
                    document.getElementById('main-content').style.display = 'none';
                } else {
                    document.getElementById('main-content').style.display = 'block';
                }
            }, 1000);
        }

        function closeModal() {
            document.getElementById('ad-blocker-modal').style.display = 'none';
            document.getElementById('main-content').style.display = 'block';
        }

        adBlockCheck();
    </script>


</body></html>