mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Wait for unsafeWindow
This commit is contained in:
parent
b62e08e18f
commit
01c90ff59e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/download-video.min.js
vendored
2
min/download-video.min.js
vendored
File diff suppressed because one or more lines are too long
@ -12,12 +12,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const bangumiUrls = [];
|
const bangumiUrls = [];
|
||||||
unsafeWindow.$(unsafeWindow.document).ajaxSend((event, request, params) =>
|
SpinQuery.unsafeJquery().then(() =>
|
||||||
{
|
{
|
||||||
if (params.url.indexOf("https://bangumi.bilibili.com/player/web_api/v2/playurl") !== -1)
|
unsafeWindow.$(unsafeWindow.document).ajaxSend((event, request, params) =>
|
||||||
{
|
{
|
||||||
bangumiUrls.unshift(params.url);
|
if (params.url.indexOf("https://bangumi.bilibili.com/player/web_api/v2/playurl") !== -1)
|
||||||
}
|
{
|
||||||
|
bangumiUrls.unshift(params.url);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
class Video
|
class Video
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user