// ==UserScript== // @name 哔哩哔哩(B站)番剧短评区筛选非满分评价 // @description 快速地找出那些低分评价! // @author Tinhone // @namespace screen and report // @license GPL-3.0 // @version 1.1 // @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 // @downloadURL none // ==/UserScript== (function() { 'use strict'; setInterval(()=>{ if (document.querySelector("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("div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content:not(.v4w3v8ng45-A)")){ document.querySelector("div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content").classList.add("v4w3v8ng45-A") const button1=document.createElement("button") button1.setAttribute("style",`width:45px !important; height:45px !important; position:sticky !important; left:10px; top:10px; bottom:10px; right:10px; cursor:pointer; border-radius:7px;`) button1.innerHTML="筛选" document.querySelector("div#app.media-detail-wrp div.media-tab-wrp div.media-tab-content").appendChild(button1) button1.addEventListener("click",(()=>{ //点击事件 for (const i of document.querySelectorAll("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) })();