AcFun屏蔽

acfun屏蔽!

目前為 2023-02-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name         AcFun屏蔽
// @namespace    http://tampermonkey.net/
// @version      0.1.1
// @description  acfun屏蔽!
// @author       You
// @match        https://live.acfun.cn/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==
//

(function() {
    'use strict';
    // Your code here...
    let yuansu = document.getElementsByClassName("live-list-item list-item");
    let pingbi_id = new Set(["416752"]);
    let tp_value = "";
    let tp_index = 0;
    for(let count = 0; count < yuansu.length; count++)
    {
        if( pingbi_id.size === 0 ){
            break;
        }

        tp_index = yuansu[count].firstElementChild.href.lastIndexOf('/');
        tp_value = yuansu[count].firstElementChild.href.substring(tp_index+1);

        if (pingbi_id.has(tp_value)) {
            yuansu[count].remove();
            pingbi_id.delete(tp_value);
        }
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址