Skip to content

Instantly share code, notes, and snippets.

@noxiousninja
Last active June 16, 2024 00:15
Show Gist options
  • Save noxiousninja/2b0eb04c521d7e937f44db38f83733bf to your computer and use it in GitHub Desktop.
Save noxiousninja/2b0eb04c521d7e937f44db38f83733bf to your computer and use it in GitHub Desktop.
Genshin Wish History URL finder for PlayCover

For use with https://paimon.moe/wish/import

Steps:

  1. Run Genshin Impact in PlayCover
  2. Log in, open the Wish menu, open Wish History, and wait for the first page to load
  3. Open a terminal (such as Terminal.app or iTerm2)
  4. In the terminal, run the command
  • curl -s 'https://gist.githubusercontent.com/noxiousninja/2b0eb04c521d7e937f44db38f83733bf/raw/get-genshin-wish-link.sh' | zsh

The script is below, if you wish to review it before use. The URL in the command above is from the "Raw" link for the file, but modified to always go to the latest version.

Tested with:

  • Genshin Impact 4.7
  • America server account
  • PlayCover nightly 765 (June 5, 2024)
  • macOS 14.5

Technical Info

Paimon.moe import code

I think this is the code used for the importing: https://github.com/MadeBaruna/paimon-moe/blob/1d1a99c3923388a2eb47eda1145a6ba9617be406/src/routes/wish/import.svelte#L172C18-L384

It uses a server-side proxy to get around CORS, but all the logic seems to be client-side.

Example URLs

Genshin 4.7, America server:

https://gs.hoyoverse.com/genshin/event/e20190909gacha-v3/index.html?win_mode=fullscreen&authkey_ver=1&sign_type=2&auth_appid=webview_gacha&init_type=301&gacha_id=BLAHBLAH&timestamp=1717544570&lang=en&device_type=mobile&game_version=OSRELiOS4.7.0_R23760009_S24199308_D24108674&plat_type=ios&region=os_usa&authkey=BLAHBLAH&game_biz=hk4e_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment