Greasy Fork

Greasy Fork is available in English.

去除bukaivip广告

去除bukaivip上的广告

当前为 2021-12-26 提交的版本,查看 最新版本

// ==UserScript==
// @name         去除bukaivip广告
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  去除bukaivip上的广告
// @author       simple-ice
// @match			*://*.bukaivip1.com/*
// @icon         https://www.google.com/s2/favicons?domain=bukaivip1.com
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    const clearDom = () => {
        setTimeout(() => {
            const arr = ['HMRichBox', 'HMimageright', 'HMimageleft']
            arr.forEach(cur => {
                // const ele = cur === '.container' ? $('.container')[2] : document.getElementById(cur)
                const ele = document.getElementById(cur)
                ele && $(ele).ready(() => {
                    ele.style.setProperty('display', 'none', 'important');
                })
            })
        }, 700)
    }
    clearDom()
    window.onload = function() {
        clearDom()
    }
})();