您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
我的地盘,我做主!
当前为
// ==UserScript== // @name 本地黑名单-百度贴吧 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 我的地盘,我做主! // @author lavaf // @match https://tieba.baidu.com/p/* // @match https://tieba.baidu.com/* // @grant none // @require https://cdn.bootcss.com/jquery/3.4.1/jquery.js // ==/UserScript== (function() { 'use strict'; let blackList=['6696583291','6697078829','6559645377'] setInterval(function () { console.log('start') let nameList=$("li.j_thread_list"); nameList.each(function (i,e) { if ($(e).attr('data-lavaf') !== '1') { let id = $(e).attr("data-tid"); for (const blackListKey in blackList) { if (blackList.hasOwnProperty(blackListKey)) { if (blackList[blackListKey] === id) { console.log(id); $(e).text(id+" 此帖子已经被屏蔽") $(e).attr('data-lavaf','1'); } } } } }); let List=$("li.d_name"); List.each(function (i,e) { if ($(e).attr('data-lavaf') !== '1') { let id = $(e).attr("data-field"); for (const blackListKey in blackList) { if (blackList.hasOwnProperty(blackListKey)) { if (blackList[blackListKey] ==='{"user_id":'+id+'}') { //console.log(id); $(e).text(id+" 此评论已经被屏蔽") $(e).attr('data-lavaf','1'); } } } } }); },500) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址