您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides topics by certain authors in the forum view
// ==UserScript== // @name Mute KvR topics // @namespace Violentmonkey Scripts // @match https://www.kvraudio.com/forum/viewforum.php* // @grant none // @version 0.666 // @author farlukar // @description Hides topics by certain authors in the forum view // @license CC0 // ==/UserScript== let mutelist = [ "*", "*", "*", "*", "*" ]; // Edit the above, replace asterisks with user names on your foes list (note: case sensitive!) // e.g. [ "*", '*', '*', "*", "*" ] -> [ "DumbTopicPoster", "Right Bastard", "sOmetr0ll", "*", "*" ] // Add more if necessary. let allTopics, thisTopic, topicAuthor, i; allTopics = document.getElementsByClassName('topic-poster'); for (i = allTopics.length-1; i>=0; i--) { thisTopic = allTopics[i]; topicAuthor = thisTopic.querySelectorAll(".username,.username-coloured")[0].innerHTML; if (mutelist.indexOf(topicAuthor) != -1) { thisTopic.parentNode.parentNode.parentNode.innerHTML = "<span><big><big><big><big>        ಠ_ಠ </big></big></big></big></span>"; } }