// ==UserScript== // @name Bilibili 分P多行显示优化 // @namespace JimmyZJX // @version 1.0.0 // @description 分P标题:换行显示 // @author JimmyZJX // @grant GM_addStyle // @run-at document-start // @match *://*.bilibili.com/* // @downloadURL none // ==/UserScript== (function() { let css = ` .multi-page .cur-list .list-box li { white-space: normal; height: auto; line-height: 20px; padding: 4px 10px; /* border-top: 1px solid gray; */ } .multi-page .cur-list .list-box li a { align-items: center; } .multi-page .cur-list .list-box li:after { content: ""; border-top: 1px solid #fff; display: block; transform: translateY(5px); } .multi-page .cur-list .list-box li .duration { margin-left: 5px; } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();