Greasy Fork is available in English.
修改新版视频页的评论热评标签样式
// ==UserScript==// @name B站评论 - 热评标签样式// @namespace mscststs// @version 0.1// @license ISC// @description 修改新版视频页的评论热评标签样式// @author mscststs// @match https://www.bilibili.com/video/*// @icon https://www.bilibili.com/favicon.ico// @require https://greasyfork.org/scripts/38220-mscststs-tools/code/MSCSTSTS-TOOLS.js?version=713767// @run-at document-body// @grant none// ==/UserScript==(function() {'use strict';StartObserveSpan();async function StartObserveSpan(){await mscststs.wait(".comment-list .list-item .con")var article = document.querySelector("body");function setSpan() {var spanElements = document.querySelectorAll(".comment-list .list-item .con .reply-tags span");for (var i = 0; i < spanElements.length; i++) {var spanContent = spanElements[i];if(spanContent.innerHTML == "热评") {spanContent.style.backgroundColor = "#FFECF1";spanContent.style.color = "#FF6699";}}}var options = { 'childList': true, 'attributes':true };const callback = function(mutationsList, observer) {setSpan()};const observer = new MutationObserver(callback);observer.observe(article, options);setSpan();}})();