- Win+R and open
powershell
(orpwsh
if Powershell 6+ installed) - Paste and run following
- All versions (Global/China)
Set-ExecutionPolicy Bypass -Scope CurrentUser -Force;
iex (irm 'https://github.com/jogerj/genshin-wish-url/raw/main/Get-WishUrl.ps1')
Comment on this gist or send message on paimon.moe Discord server
Officially supported: Powershell 5.1 and above (Default installed on Windows 10 and above). Older OS will not be supported, but you may try upgrading your powershell version.
- New repository
- Major refactoring of code
- Support deletion of webCaches when stuck
- Fix for new API URL in 4.8 (Global)
- Rework checks. Now returned URL defaults to Character Wish Banner
- Fix for new API URL in 4.6 (CN)
- Added short URL
- Typo message fix
- 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