天堂

删除天堂网站广告

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         天堂
// @version      0.0.4
// @description  删除天堂网站广告
// @author       You
// @include      /^https://\d+maoaq\.com.+$/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=40maoaq.com
// @grant        none
// @license MIT
// @namespace https://greasyfork.org/users/933558
// ==/UserScript==

(function () {
    'use strict';
    const origin = window.location.origin;
    const reg = /http(s)?:\/\/\d+maoaq\.com/img;
    setTimeout(() => {
        if (reg.test(origin)) {
            const ad = document.querySelector('#midBox'),
                fixedAd = document.querySelector('#couplet'),
                btmBox = document.querySelector('#btmBox'),
                listBox = document.querySelector('#listBox'),
                listwoBox = document.querySelector('#listwoBox');
            document.querySelectorAll('.search')[0].style.display = 'block';
            ad.remove();
            fixedAd.remove();
            btmBox.remove();
            listBox && listBox.remove();
            listwoBox && listwoBox.remove();
        }
    })
    // Your code here...
})();