mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
1.4 KiB
JavaScript
1 line
1.4 KiB
JavaScript
(()=>(n,t)=>{const e=`\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.home-container {\n --left-width: 244px;\n --center-width: 632px;\n}\n@media screen and (min-width: 1921px) {\n .home-container {\n --left-width: 12.71vw;\n --center-width: 32.92vw;\n }\n}\n@media screen and (min-width: 2497px) {\n .home-container {\n --left-width: 317px;\n --center-width: 822px;\n }\n}\n.center-panel {\n margin-left: calc(var(--left-width) + 8px) !important;\n}\n.right-panel {\n margin-left: calc(var(--left-width) + 16px + var(--center-width)) !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 i="fixed-sidebars-style";const a=()=>{if(document.URL.replace(location.search,"")==="https://t.bilibili.com/"){t.applyStyleFromText(e,i);(async()=>{const{disableProfilePopup:n}=await t.importAsync("disable-profile-popup");n()})()}};const l=()=>{dqa("#"+i).forEach((n=>n.remove()))};a();return{reload:a,unload:l}})(); |