// ==UserScript== // @name Xiuno BBS 屏蔽用户 // @namespace http://tampermonkey.net/ // @version 1.0.0 // @description 屏蔽你不想看到 Xiuno BBS 用户的主题 // @author Orange // @match *://blog.orange.vg/* //将此处的blog.orange.vg改为你需要屏蔽的网站 // ==/UserScript== (function() { var uidList = ["1", "2", "3"]; // 改为你要屏蔽的UID列表 var liElements = document.querySelectorAll('li.media.thread.tap'); liElements.forEach(function(liElement) { var uid = liElement.querySelector('.username.text-grey').getAttribute('uid'); if (uidList.includes(uid)) { liElement.style.display = 'none'; console.log("已屏蔽此页UID为"+uid+"的主题"); } }); })();
暂无评论