Skip to content

Receiving Account Cookies (Hoyolab)

Tips

I'm using Edge browser, if you're using a different browser, some names may vary.

1. Copy the following javascript code

var cookie=start();
var ask=confirm('Cookie: '+cookie+'\n\nClick confirm to copy Cookie.');if(ask==true){copy(cookie);msg=cookie}else{msg='Cancel'}
function start() {
    return "ltoken=" + getCookie("ltoken") + ";ltuid=" + getCookie("ltuid") + ";";
    function getCookie(name) {
        const value = ";" + document.cookie;
        const parts = value.split("; " + name + "=");
        if (parts.length === 2) return parts.pop().split(';').shift();
    }
}

2. Go to https://www.hoyolab.com/genshin/ then login.

3. Right-click on the page and click on View Code, then click on the Console tab.

4. Paste the code you copied in the first paragraph and press Enter.

5. In the window that appears, click OK and the necessary Cookies will be automatically copied to your clipboard.