Bilibili-Evolved/min/fixed-sidebars.min.js
2020-10-30 17:42:34 +08:00

1 line
1.0 KiB
JavaScript

(()=>(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 - 380px);\n overflow: auto;\n scrollbar-width: none !important;\n}\nbody.feeds-filter-side-block-profile .live-panel .live-up-list {\n max-height: calc(100vh - 180px);\n}\n.live-panel .live-up-list::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.adaptive-scroll {\n min-height: unset !important;\n}\n`;const e="fixed-sidebars-style";const a=()=>{if(document.URL.replace(location.search,"")==="https://t.bilibili.com/"){t.applyStyleFromText(i,e);(async()=>{const{disableProfilePopup:n}=await t.importAsync("disable-profile-popup");n()})()}};const l=()=>{dqa("#"+e).forEach((n=>n.remove()))};a();return{reload:a,unload:l}})();