您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name CSDN论坛屏蔽天下第二的帖子以及回复 // @namespace http://tampermonkey.net/ // @version 0.4 // @description try to take over the world! // @author 大西瓜一块五一斤 // @match https://bbs.csdn.net*/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... var authors = document.getElementsByClassName("forums_author"); var worldSecond = 'https://my.csdn.net/BlueGuy__'; for (var j = 0; j < authors.length; j++) { if (authors[j].children[0].href == worldSecond) { authors[j].parentElement.style.display = "none"; } } //增加论坛首页热帖屏蔽 authors = document.getElementsByClassName("questioner"); for (j = 0; j < authors.length; j++) { if (authors[j].href == worldSecond) { authors[j].parentElement.style.display = "none"; } } //增加帖子回复屏蔽 var answerers = document.getElementsByClassName("topic_r"); for (j = 0; j < answerers.length; j++) { if (answerers[j].getAttribute("data-username") == 'BlueGuy__') { answerers[j].parentElement.style.display = "none"; } } //增加我回复的帖子里的屏蔽 authors = document.getElementsByTagName("tr"); for (j = 0; j < authors.length; j++) { if (authors[j].children[2].innerHTML.indexOf("my.csdn.net/BlueGuy__") > -1) { authors[j].children[2].parentElement.style.display = "none"; } } })();