您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove the posts of blocked users within a thread on Black Desert Official Forum, one exception is if the user is the person who started the discussion thread then only the very first post will not get removed.
当前为
// ==UserScript== // @name BD Forum Block Script // @version 0.2 // @description Remove the posts of blocked users within a thread on Black Desert Official Forum, one exception is if the user is the person who started the discussion thread then only the very first post will not get removed. // @author PootyPoot // @match https://www.naeu.playblackdesert.com/en-US/* // @exclude https://www.naeu.playblackdesert.com/en-US/Main/Index* // @exclude https://www.naeu.playblackdesert.com/en-US/News/* // @exclude https://www.naeu.playblackdesert.com/en-US/GameInfo/* // @exclude https://www.naeu.playblackdesert.com/en-US/Wiki* // @exclude https://www.naeu.playblackdesert.com/en-US/Adventure/* // @exclude https://www.naeu.playblackdesert.com/en-US/Photogallery* // @exclude https://www.naeu.playblackdesert.com/en-US/BeautyAlbum* // @exclude https://www.naeu.playblackdesert.com/en-US/Partners* // @exclude https://www.naeu.playblackdesert.com/en-US/Data/* // @grant none // @namespace https://greasyfork.org/users/751816 // ==/UserScript== (function() { 'use strict'; // List of blocked users const blockedUserList = ["ExampleUser1", "ExampleUser2"]; // Get all the posts within the thread var postList = document.getElementsByClassName("section_column reply_mode skin_forum "); // Find the blocked user and remove the person's post for(var postIdx = postList.length - 1; postIdx > 0; postIdx--) { // Find the post's username var userName = postList[postIdx].getElementsByClassName("name_area"); for(var userIdx = 0; userIdx < blockedUserList.length; userIdx++) { if(blockedUserList[userIdx] == userName[0].innerText) { postList[postIdx].remove(); } } } })();