mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
9 lines
311 B
JavaScript
9 lines
311 B
JavaScript
const target = document.URL.includes("bangumi") ? "#bofqi" : ".video-info .video-title .tit";
|
|
SpinQuery.count(".nav-con,#bofqi", 3).then(() =>
|
|
{
|
|
document.querySelector(target).scrollIntoView();
|
|
if (settings.playerFocusOffset !== 0)
|
|
{
|
|
window.scrollBy(0, settings.playerFocusOffset);
|
|
}
|
|
}); |