您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
举↗报↘
当前为
// ==UserScript== // @name 哔哩哔哩(B站)番剧评论区筛选非满分评论 // @description 举↗报↘ // @author Tinhone // @namespace screen and report // @license GPL-3.0 // @version 1.0 // @icon https://app.bilibili.com/favicon.ico // @grant none // @compatible firefox V70+ // @compatible edge V70+ // @compatible chrome V70+ // @match *://www.bilibili.com/bangumi/media/* // @run-at document-end // ==/UserScript== (function() { 'use strict'; setInterval(()=>{ if (document.querySelector("html.elegant-scrollbar body.round-corner.simplify-comment.always-show-duration div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content div.media-tab-detail-wrp.clearfix div.media-tab-detail-l-wrp div.media-tab-detail-l div.media-tab-module-wrp div.media-tab-module-content div.mtlr-list-wrp div.review-list-wrp.type-short ul li.clearfix div.review-author-info div.review-author-star span.review-stars i.icon-star.icon-star-light")){ if (document.querySelector("html.elegant-scrollbar body.round-corner.simplify-comment.always-show-duration div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content div.media-tab-detail-wrp.clearfix div.nav-tools:not(.v4w3v8ng45-A)")){ if (document.querySelector("html.elegant-scrollbar body.round-corner.simplify-comment.always-show-duration div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content div.media-tab-detail-wrp.clearfix div.nav-tools div.tool-item.backup.iconfont.icon-up")){ document.querySelector("html.elegant-scrollbar body.round-corner.simplify-comment.always-show-duration div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content div.media-tab-detail-wrp.clearfix div.nav-tools").classList.add("v4w3v8ng45-A") const style1=window.getComputedStyle(document.querySelector("html.elegant-scrollbar body.round-corner.simplify-comment.always-show-duration div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content div.media-tab-detail-wrp.clearfix div.nav-tools div.tool-item.backup.iconfont.icon-up")) const button1=document.createElement("button") button1.setAttribute("style",`width:${new String(new Number(style1.width.split("p")[0])*1.03259259)+"px"} !important; height:${new String(new Number(style1.height.split("p")[0])*1.03259259)+"px"} !important;`) //使style1.height删除"px"并变成数字以供运算 button1.innerHTML="筛选" button1.classList.add("tool-item") document.querySelector("html.elegant-scrollbar body.round-corner.simplify-comment.always-show-duration div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content div.media-tab-detail-wrp.clearfix div.nav-tools").appendChild(button1) button1.addEventListener("click",(()=>{ //点击事件 for (const i of document.querySelectorAll("html.elegant-scrollbar body.round-corner.simplify-comment.always-show-duration div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content div.media-tab-detail-wrp.clearfix div.media-tab-detail-l-wrp div.media-tab-detail-l div.media-tab-module-wrp div.media-tab-module-content div.mtlr-list-wrp div.review-list-wrp.type-short ul li.clearfix")){ if (i.querySelectorAll("div.review-author-info div.review-author-star span.review-stars i.icon-star.icon-star-light")[4]){ i.remove() } } })) } } } },5000) })();