Add manual method

pull/1/head
Made Baruna 2022-09-06 03:42:44 +07:00
parent 58a5e0c834
commit b2148e6f50
2 changed files with 31 additions and 68 deletions

View File

@ -223,6 +223,7 @@
"pc": "Method 1",
"pc3": "Method 2",
"pc4": "Method 2 Alt",
"pc5": "Manual",
"android": "Wifi",
"android2": "Cell Data",
"android3": "Alternative"
@ -260,6 +261,17 @@
"Paste the text to the textbox below",
"Paste the link here... https://webstatic..."
],
"pc5": [
"Open Genshin Impact in this PC (If you use multiple accounts, please restart the game)",
"Then open the wish history in the game and wait it to load",
"Then open the folder where your game is installed (example: C:\\Games\\Genshin Impact)",
"Then open folder GenshinImpact_Data → webCaches → Cache → Cache_Data",
"Right click \"data_2\" file then click \"Open with\" then select Notepad (If you get error like \"The process cannot access the file because it is being used y another process\" please exit the game first",
"Press CTRL+F then check \"Wrap around\" and select direction \"Up\" then in the input box search for \"e20190909gacha-v2\" (without the quote) then click Find Next",
"Copy all the link from https://webstatic until game_biz=hk4e_global the url looks like this: https://webstatic-sea.hoyoverse.com/genshin/event/e20190909gacha-v2/index.html?.......&game_biz=hk4e_global",
"Paste the text to the textbox below",
"Paste the link here... https://webstatic..."
],
"pclog": [
"Open Genshin Impact in this PC (If you use multiple accounts, please restart the game)",
"Then open the wish history in the game and wait it to load",

View File

@ -53,6 +53,8 @@
const steps = {
pc: 7,
pc3: 8,
pc4: 8,
pc5: 9,
pclog: 7,
android: 1,
android2: 1,
@ -92,15 +94,13 @@
},
};
let powershellScript =
'iex "&{$(irm https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/f7f8d9029122e29e366c65afaea236eb3abb1179/getlink.ps1)} global"';
let powershellScriptChina =
'iex "&{$(irm https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/f7f8d9029122e29e366c65afaea236eb3abb1179/getlink.ps1)} china"';
let powershellScript = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/f7f8d9029122e29e366c65afaea236eb3abb1179/getlink.ps1'))} global"`;
let powershellScriptChina = `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex "&{$((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235/raw/f7f8d9029122e29e366c65afaea236eb3abb1179/getlink.ps1'))} global"`;
let powershellScriptSource = 'https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235';
let powershellScriptAlt =
'pause;$m=(((Get-Clipboard -TextFormatType Html) | sls "(https:/.+log)").Matches[0].Value);$m;Set-Clipboard -Value $m';
'Read-Host -Prompt "Press Enter to continue";$m=(((Get-Clipboard -TextFormatType Html) | Select-String "(https:/.+log)").Matches[0].Value);$m;Set-Clipboard -Value $m';
let powershellScriptAlt2 =
"$p = [Enum]::ToObject([System.Net.SecurityProtocolType], 3072); [System.Net.ServicePointManager]::SecurityProtocol = $p; iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/bf36bad751dc9221067ca1e31ab08255/raw/20664d5df5e916cbab169500536d7f366de29395/read.ps1'))";
"Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/MadeBaruna/bf36bad751dc9221067ca1e31ab08255/raw/20664d5df5e916cbab169500536d7f366de29395/read.ps1'))";
let copiedScript = false;
let news = '';
let showAdvancedOptions = false;
@ -958,7 +958,7 @@
<button
disabled={processingLog}
on:click={() => changeSelectedType('pc')}
class="pill {['pc', 'pc3', 'pc4', 'pclocal'].includes(selectedType) ? 'active' : ''}"
class="pill {['pc', 'pc3', 'pc4', 'pc5', 'pclocal'].includes(selectedType) ? 'active' : ''}"
>
PC
</button>
@ -986,7 +986,7 @@
</div>
</div>
</div>
{#if ['pc', 'pc3', 'pc4', 'pclocal'].includes(selectedType)}
{#if ['pc', 'pc3', 'pc4', 'pc5', 'pclocal'].includes(selectedType)}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="step-number border-2 border-white w-8 h-8 rounded-full flex justify-center items-center">
@ -1018,6 +1018,13 @@
>
{$t('wish.import.method.pc4')}
</button>
<button
disabled={processingLog}
on:click={() => changeSelectedType('pc5')}
class="pill {selectedType === 'pc5' ? 'active' : ''}"
>
{$t('wish.import.method.pc5')}
</button>
<!-- <button
disabled={processingLog}
on:click={() => changeSelectedType('pclocal')}
@ -1202,8 +1209,8 @@
</div>
</div>
{/each}
{:else if selectedType === 'pclog'}
{#each Array(2) as _, i}
{:else if selectedType === 'pc5'}
{#each Array(8) as _, i}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="w-8 rounded-full flex justify-center items-center">
@ -1211,67 +1218,11 @@
</div>
<div class="step-bar w-1 bg-white opacity-50 mt-2 h-full" />
</div>
<div class="content flex-col items-center">
<p class="text-white">{$t(`wish.import.guide.pclog.${i}`)}</p>
<div class="content flex-col items-center {i === 7 ? 'pb-8' : ''}">
<p class="text-white">{$t(`wish.import.guide.pc5.${i}`)}</p>
</div>
</div>
{/each}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="w-8 rounded-full flex justify-center items-center">
<span class="text-white font-bold">7</span>
</div>
<div class="step-bar w-1 bg-white opacity-50 mt-2 h-full" />
</div>
<div class="content flex-col items-center pb-2">
<p class="text-white">{$t('wish.import.guide.pclog.2')}</p>
<pre
class="bg-black text-white bg-opacity-50 whitespace-pre-wrap break-all p-2 rounded-xl text-xs select-all">{$server ===
'China'
? $t('wish.import.logLocation.china')
: $t('wish.import.logLocation.global')}</pre>
</div>
</div>
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="w-8 rounded-full flex justify-center items-center">
<span class="text-white font-bold">8</span>
</div>
<div class="step-bar w-1 bg-white opacity-50 mt-2 h-full" />
</div>
<div class="content flex-col items-center">
<p class="text-white">
{$t('wish.import.guide.pclog.3')}
<code
class="bg-black text-white bg-opacity-50 whitespace-pre-wrap break-all p-2 rounded-xl text-xs select-all"
>OnGetWebViewPageFinish:https://webstatic</code
>
</p>
</div>
</div>
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="w-8 rounded-full flex justify-center items-center">
<span class="text-white font-bold">9</span>
</div>
<div class="step-bar w-1 bg-white opacity-50 mt-2 h-full" />
</div>
<div class="content flex-col items-center">
<p class="text-white">{$t('wish.import.guide.pclog.4')}</p>
</div>
</div>
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">
<div class="w-8 rounded-full flex justify-center items-center">
<span class="text-white font-bold">10</span>
</div>
<div class="step-bar w-1 bg-white opacity-50 mt-2 h-full" />
</div>
<div class="content flex-col items-center pb-8">
<p class="text-white">{$t('wish.import.guide.pclog.5')}</p>
</div>
</div>
{:else if selectedType === 'pclocal'}
<div class="flex space-x-3 mb-2">
<div class="flex flex-col items-center step">