jinnanyq_remove_advs

try to take over the world!

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         jinnanyq_remove_advs
// @namespace    http://tampermonkey.net/
// @version      2024-08-11-2
// @description  try to take over the world!
// @author       You
// @match        *://*.jinnanyq.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=jinnanyq.com
// @grant        none
// @license      MIT
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);

(function() {
    'use strict';

    setInterval(function (){
        let el = $('body');

        removeAdvs(el);

        let divs = $('div');

        for(let i=0;i<divs.length;i++){
            removeAdvs(divs[i]);
        }

        $('.float-activate-button-container').remove();
    }, 300);
})();

function removeAdvs(el){
    if(el.style !== undefined && el.style.zIndex>10000){
        el.style.visibility = "hidden";
    }else{
        try{
            let allChildren = el.childNodes;
            if (allChildren == undefined){
                allChildren = el.children();
            }
            if (allChildren == undefined){
                return;
            }
            for (let i =0; i < allChildren.length ; i++){
                removeAdvs(allChildren[i]);
            }
        }catch(e){
        }
    }
}