Skip to content

Instantly share code, notes, and snippets.

import re
import os
from pathlib import Path
Path("out").mkdir(parents=True, exist_ok=True)
f = open("hdifffiles.txt", "r")
string = f.read()
dir = re.sub('{"remoteName": "', '', string)
dir = re.sub('"}', '', dir)
@Areha11Fz
Areha11Fz / gs
Last active April 28, 2023 06:46
HoYoLab Auto Sign In
const token = "ltoken=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; ltuid=xxxxxxxx;"
const genshin = false
const honkai_star_rail = true
const honkai_3 = false
const discord_notify = false
const myDiscordID = "xxxxxxxxxxxxxxxxxxxxxxxxxx"
const myDiscordName = "xxxxxxxxxx"
const discordWebhook = "https://discord.com/api/webhooks/xxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
@Areha11Fz
Areha11Fz / gist:1f23f42afaeea30cc2c7e89acd937cc9
Created April 27, 2023 21:58
Get Token and ID (DO NOT SHARE THE RESULT ANYWHERE ELSE, EVEN IF YOU TRUST THE PEOPLE!!!)
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
console.log('ltoken='+getCookie('ltoken')+'; ltuid='+getCookie('ltuid')+';');