*Miles Edgeworth編輯
熊貓區的圖就不要貼了
还真是奇怪的需求,毕竟大部分评论的score都不会高于20。
你可以用JS脚本判断各条评论的score,低于20就把display属性设置为none。
CODE
// ==UserScript==
// @name Hide Downvoted Comments
// @match *://e-hentai.org/*
// @match *://e-hentai.org/* 这条站点名称重复了,理由你懂
// @icon https://www.google.com/s2/favicons?domain=e-hentai.org
// ==/UserScript==
(function() {
//屏蔽被自己downvote的评论
let commentVoteDownList = document.querySelectorAll('[id^="comment_vote_down_"]');
for (let commentVoteDown of commentVoteDownList)
if (commentVoteDown.style.color == "blue")
document.getElementById(
commentVoteDown.id.replace("_vote_down", "")
).style.display = "none";
//屏蔽score不足20的评论
let commentScoreList = document.querySelectorAll('[id^="comment_score_"]');
for (let commentScore of commentScoreList)
if (parseInt(commentScore.textContent) < 20)
document.getElementById(
commentScore.id.replace("_score", "")
).style.display = "none";
})();
This post has been edited by Miles Edgeworth: Jun 18 2022, 16:54