diff --git a/packages/unblock-area-limit/src/feature/bili/redirect_to_bangumi_or_insert_player.ts b/packages/unblock-area-limit/src/feature/bili/redirect_to_bangumi_or_insert_player.ts index daad9999..10de15d4 100644 --- a/packages/unblock-area-limit/src/feature/bili/redirect_to_bangumi_or_insert_player.ts +++ b/packages/unblock-area-limit/src/feature/bili/redirect_to_bangumi_or_insert_player.ts @@ -19,6 +19,9 @@ export function redirect_to_bangumi_or_insert_player() { if (!$errorPanel) { return; } + // 自动点击"取消跳转按钮" + let $goHomeBtn = document.querySelector(".big-btn.go-home"); + $goHomeBtn?.click(); let msg = document.createElement('a'); $errorPanel.insertBefore(msg, $errorPanel.firstChild); msg.innerText = '获取番剧页Url中...'; @@ -168,4 +171,4 @@ export function redirect_to_bangumi_or_insert_player() { tryRedirectToBangumiOrInsertPlayer() } }, util_init.PRIORITY.DEFAULT, util_init.RUN_AT.COMPLETE) -} \ No newline at end of file +}