Skip to content

Commit

Permalink
chore(balh): Automatically click "取消跳转" (#1265)
Browse files Browse the repository at this point in the history
* bilibili_no_way_home

* wip: 修复类型错误

---------

Co-authored-by: ipcjs <[email protected]>
  • Loading branch information
MapleRecall and ipcjs authored Nov 27, 2023
1 parent b5476d3 commit 1565f00
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export function redirect_to_bangumi_or_insert_player() {
if (!$errorPanel) {
return;
}
// 自动点击"取消跳转按钮"
let $goHomeBtn = document.querySelector<HTMLElement>(".big-btn.go-home");
$goHomeBtn?.click();
let msg = document.createElement('a');
$errorPanel.insertBefore(msg, $errorPanel.firstChild);
msg.innerText = '获取番剧页Url中...';
Expand Down Expand Up @@ -168,4 +171,4 @@ export function redirect_to_bangumi_or_insert_player() {
tryRedirectToBangumiOrInsertPlayer()
}
}, util_init.PRIORITY.DEFAULT, util_init.RUN_AT.COMPLETE)
}
}

0 comments on commit 1565f00

Please sign in to comment.