const url = new URL(window.location.href);
if (
url.protocol !== "https:" ||
url.hostname !== "account.battlenet.com.cn" ||
!url.pathname.startsWith("/login/")
) {
completion("请在战网登录页面运行");
} else {
url.searchParams.set("showCredentials", "true");
completion();
window.location.assign(url.href);
}