Greasy Fork is available in English.

解除原神国际服HoyoLab每日签到地区限制

解除原神国际服HoyoLab每日签到对部分地区的限制

// ==UserScript==
// @name         解除原神国际服HoyoLab每日签到地区限制
// @namespace    https://act.hoyolab.com/ys/event/signin-sea-v3/index.html?act_id=e202102251931481
// @version      1.0.0
// @description  解除原神国际服HoyoLab每日签到对部分地区的限制
// @author       popcorner
// @license      MIT
// @match        https://act.hoyolab.com/ys/event/signin-sea-v3/index.html?act_id=e202102251931481
// @grant        none
// ==/UserScript==

(function () {
    setTimeout(function () {
        if (document.cookie.indexOf('ltmid_v2') == -1) {
            document.querySelector('.mhy-hoyolab-account-block').click();
            setInterval(function () {
                if (!document.querySelector('#hyv-account-frame')) {
                    window.location.reload();
                }
            }, 1000);
        } else {
            document.querySelector('body>div').__vue__.$store.state.isLogin = true;
        }
    }, 1000);
})();