// ==UserScript== // @name Bilibili 翻页评论区 // @namespace MotooriKashin // @version 1.0.5 // @description 恢复原来的翻页评论区,仅此而已 // @author MotooriKashin // @icon https://static.hdslb.com/images/favicon.ico // @match *://*.bilibili.com/* // @grant none // @run-at document-body // @license MIT // @downloadURL none // ==/UserScript== (function () { loadScript("//static.hdslb.com/phoenix/dist/js/comment.min.js").then(() => { const bbComment = window.bbComment; delete window.bbComment; Object.defineProperty(window, "bbComment", { value: bbComment }); const link = document.createElement("link"); link.rel = "stylesheet"; link.href = "//static.hdslb.com/phoenix/dist/css/comment.min.css"; document.head.appendChild(link); }); function loadScript(src, onload) { return new Promise((r, j) => { const script = document.createElement("script"); script.type = "text/javascript"; script.src = src; script.addEventListener("load", () => { script.remove(); onload && onload(); r(true); }); script.addEventListener('error', () => { script.remove(); j(); }); document.body.appendChild(script); }); } })();