Greasy Fork is available in English.

百度网盘不限制下载-神速Down

不限制速度下载的百度网盘解析脚本,无视黑号,拥有IDM/Aria2/Motrix三种方式任意体验极速下载!支持Microsoft Edge、Google Chrome、Firefox等浏览器 面向所有网友免费交流学习使用,更多功能正在完善中...

< Feedback on 百度网盘不限制下载-神速Down

Review: Good - script works

过滤水军脚本
// ==UserScript==
// @name Greasy Fork评论区净化
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 解决greasyfork上的垃圾评论刷屏问题
// @author hellopo
// @match *://greasyfork.org/*
// @run-at document-end
// @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org
// @grant none
// ==/UserScript==
(function() {
'use strict';
// 这里填写你想要屏蔽的用户ID
const userID = ['1145294','丛林寻宝儿儿'];
// 这里填写你想要屏蔽的脚本ID
const scriptID = ['493463','494729'];
// 是否只屏蔽差评
const onlyBad = true;

const removeElement = (element, idArray, className) => {
if (idArray.some(id => element.innerHTML.includes(id) || element.textContent.includes(id))) {
element.closest(className)?.remove();
}
}

Array.from(document.getElementsByClassName("user-link")).forEach(userLink => removeElement(userLink, userID, ".discussion-list-container"));
Array.from(document.getElementsByClassName("discussion-list-container")).forEach(scriptLink => {
if (onlyBad && !scriptLink.querySelector(".rating-icon-bad")) return;
removeElement(scriptLink, scriptID, ".discussion-list-container");
});
})();

1

Post reply

Đăng nhập để bình luận