Bilibili-Evolved/min/fixed-sidebars.min.js
2020-05-15 10:51:30 +08:00

1 line
880 B
JavaScript

(()=>{return(n,t)=>{const i=`\n.custom-navbar {\n position: fixed !important;\n}\n.sticky-bar {\n display: none !important;\n}\n.left-panel, .right-panel {\n position: fixed !important;\n}\n.center-panel {\n margin-left: calc(244px + 8px) !important;\n}\n.right-panel {\n margin-left: calc(244px + 16px + 632px) !important;\n}\n.live-panel .live-up-list {\n max-height: calc(100vh - 320px);\n overflow: auto;\n scrollbar-width: none !important;\n}\n.live-panel .live-up-list::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n`;const a="fixed-sidebars-style";const e=()=>{if(document.URL.replace(location.search,"")==="https://t.bilibili.com/"){t.applyStyleFromText(i,a);(async()=>{const{disableProfilePopup:n}=await t.importAsync("disable-profile-popup");n()})()}};const o=()=>{dqa("#"+a).forEach(n=>n.remove())};e();return{reload:e,unload:o}}})();