Win+R and paste following
- All versions (Global/China)
powershell iex (irm 'https://gist.githubusercontent.com/jogerj/0339e61a92e0de2e360c5212a94854e8/raw/get_wish_url_from_cache.ps1')
Comment on this gist or send message on paimon.moe Discord server
- Deprecated and removed fallback methods
- Now cache path lookup checks for latest modified subfolder
- Fix for Genshin 4.0
- Fix for Genshin 3.8
- Now if a user has both global and china version of the game, it will load the URL from whichever is last open.
- Fix CN suffix to
game_biz=hk4e_cn
- Fix check validity for URLs beginning with
https://webstatic...
- Added new method from MadeBaruna. Now supports 3 different methods (should be totally foolproof 🤞)
- Automatically checks for expired/invalid link
URL date is now retrieved from URLRemoved URL time since it's unnecessary to check for URL expirytimestamp
parameter
- Combined Global and China server scripts. Now will check for Global first before China log files. Can be overriden to force check China server by adding
china
to the parameter like this:powershell iex "&{$(irm 'https://gist.githubusercontent.com/jogerj/0339e61a92e0de2e360c5212a94854e8/raw/get_wish_url_from_cache.ps1')} china"
- Pass on args to elevated powershell correctly
- Use more accurate file path pattern from here
- Added back old method as fallback option (when webCache gets destroyed/new install)
- Changed game path lookup to search in log file instead of install path
- Added China version (needs testing)
- adjusted URL lookup pattern
- ChromeCacheView no longer needed. Script will now read cache files directly
- Credits to @PrimeCicada for finding an alternate path
- Added handling of different game path
- Fixes issue with older installs of Genshin with different path
- Added fallback option for manual entry of game path. Drag and drop your shortcut or exe file (either launcher or game works), the cache path will be grabbed correctly
- Added date of URL to output
- Add warning for URL older than 24h
- Initial release
I'm getting this error even though history page is open in-game...
Link found but it is expired/invalid! Open Wish History again to fetch a new link
No valid link found! Make sure Genshin Impact is installed and open Wish History page at least once.
Press Enter to continue...: