Skip to content

Commit 09b45b6

Browse files
committed
Updates
1 parent bf18ba6 commit 09b45b6

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

index.user.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name agefans Enhance
33
// @namespace https://github.com/IronKinoko/agefans-enhance
44
// @icon https://www.age.tv/favicon.ico
5-
// @version 1.53.3
5+
// @version 1.53.4
66
// @description 增强播放功能,实现自动换集、无缝换集、画中画、历史记录、断点续播、弹幕等功能。适配agefans、NT动漫、bimiacg、mutefun、次元城、稀饭动漫
77
// @author IronKinoko
88
// @include https://www.age.tv/*
@@ -2644,7 +2644,7 @@
26442644
content: `
26452645
<table class="k-table">
26462646
<tbody>
2647-
<tr><td>\u811A\u672C\u7248\u672C</td><td>${"1.53.3"}</td></tr>
2647+
<tr><td>\u811A\u672C\u7248\u672C</td><td>${"1.53.4"}</td></tr>
26482648
<tr>
26492649
<td>\u811A\u672C\u4F5C\u8005</td>
26502650
<td><a target="_blank" rel="noreferrer" href="https://github.com/IronKinoko">IronKinoko</a></td>
@@ -2770,7 +2770,7 @@ ${src}
27702770
27712771
# \u73AF\u5883
27722772
userAgent: ${navigator.userAgent}
2773-
\u811A\u672C\u7248\u672C: ${"1.53.3"}
2773+
\u811A\u672C\u7248\u672C: ${"1.53.4"}
27742774
`;
27752775

27762776
const GlobalKey = "show-help-info";
@@ -6917,13 +6917,17 @@ ${text}
69176917
}
69186918
async function parser2() {
69196919
const video = await queryDom("video");
6920-
await wait(() => !!video.currentSrc);
6921-
video.src = "";
69226920
let url = "";
69236921
while (!url) {
69246922
url = await execInUnsafeWindow(() => window.MIZHI.player_url);
6925-
await sleep(100);
6923+
await sleep(16);
69266924
}
6925+
await wait(() => !!video.currentSrc);
6926+
URL.revokeObjectURL(video.currentSrc);
6927+
video.src = "";
6928+
await execInUnsafeWindow(() => {
6929+
window.MIZHI.art.destroy();
6930+
});
69276931
const player = new KPlayer("#loading", {
69286932
eventToParentWindow: true
69296933
});

0 commit comments

Comments
 (0)