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