mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix bugs
This commit is contained in:
parent
ca73c6d130
commit
9ffb7aac53
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -951,7 +951,11 @@
|
||||
}
|
||||
static async videoChange(callback)
|
||||
{
|
||||
await SpinQuery.select(() => document.querySelector("#bilibiliPlayer"));
|
||||
const player = await SpinQuery.select(() => document.querySelector("#bilibiliPlayer"));
|
||||
if (player === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return Observer.childList("#bofqi,#bilibiliPlayer", callback);
|
||||
}
|
||||
}
|
||||
|
||||
@ -951,7 +951,11 @@
|
||||
}
|
||||
static async videoChange(callback)
|
||||
{
|
||||
await SpinQuery.select(() => document.querySelector("#bilibiliPlayer"));
|
||||
const player = await SpinQuery.select(() => document.querySelector("#bilibiliPlayer"));
|
||||
if (player === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return Observer.childList("#bofqi,#bilibiliPlayer", callback);
|
||||
}
|
||||
}
|
||||
|
||||
2
min/skip-charge-list.min.js
vendored
2
min/skip-charge-list.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(e,i)=>{async function n(){const e=await SpinQuery.select(()=>document.querySelector("video"));e.addEventListener("ended",async()=>{const e=await SpinQuery.select(()=>document.querySelector(".bilibili-player-electric-panel-jump"));e&&e.click()})}if(Observer.videoChange){Observer.videoChange(n)}else{Observer.childList("#bofqi",n)}}})();
|
||||
(()=>{return(e,i)=>{async function n(){const e=await SpinQuery.select(()=>document.querySelector("video"));e&&e.addEventListener("ended",async()=>{const e=await SpinQuery.select(()=>document.querySelector(".bilibili-player-electric-panel-jump"));e&&e.click()})}if(Observer.videoChange){Observer.videoChange(n)}else{Observer.childList("#bofqi",n)}}})();
|
||||
@ -5,7 +5,7 @@
|
||||
async function skipChargeList()
|
||||
{
|
||||
const video = await SpinQuery.select(() => document.querySelector("video"));
|
||||
video.addEventListener("ended", async () =>
|
||||
video && video.addEventListener("ended", async () =>
|
||||
{
|
||||
const jumpButton = await SpinQuery.select(() => document.querySelector(".bilibili-player-electric-panel-jump"));
|
||||
jumpButton && jumpButton.click();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user