mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
1 line
355 B
JavaScript
1 line
355 B
JavaScript
(()=>{return(e,l)=>{const o=document.URL.includes("bangumi")?"#bilibili-player":".video-info .video-title .tit";SpinQuery.select(o).then(async l=>{await playerReady();console.log(l);if(l===null){return}l.scrollIntoView();if(e.playerFocusOffset!==0){window.scrollBy(0,e.playerFocusOffset)}console.log(l.offsetTop,e.playerFocusOffset,window.scrollY)})}})(); |