mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-03-13 11:18:28 +01:00
Url regex improvement
This commit is contained in:
parent
83c7323aa2
commit
c1cbd6fda4
2 changed files with 6 additions and 10 deletions
|
@ -94,8 +94,8 @@
|
|||
},
|
||||
};
|
||||
|
||||
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/f35a446e3ad08bff3ebcfa250ec46d0ea4bde225/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/f35a446e3ad08bff3ebcfa250ec46d0ea4bde225/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/702e34117b07294e6959928963b76cfdafdd94f3/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/702e34117b07294e6959928963b76cfdafdd94f3/getlink.ps1'))} china"`;
|
||||
let powershellScriptSource = 'https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235';
|
||||
let powershellScriptAlt = `iex('Write-Host "Copy the wish history table!";while(1) { $c = Get-Clipboard -TextFormatType Html; if ($c -match "^SourceURL:https:/.+log") { break; }; for($i=5; $i -gt 0; $i--) { Write-Host "\`rChecking in $i" -NoNewline; Sleep 1; }; }; Write-Host " OK"; $m=(((Get-Clipboard -TextFormatType Html) | Select-String "(https:/.+log)").Matches[0].Value);$m; Set-Clipboard -Value $m;')`;
|
||||
let powershellScriptAlt2 =
|
||||
|
@ -170,8 +170,8 @@
|
|||
|
||||
try {
|
||||
if (selectedType.startsWith('android')) {
|
||||
const urlString = genshinLink.match(/https:\/\/.*#/g);
|
||||
url = new URL(urlString);
|
||||
const urlString = genshinLink.match(/https:\/\/[^\s]+/g);
|
||||
url = new URL(urlString[0]);
|
||||
} else if (selectedType === 'pclog') {
|
||||
const urlString = genshinLink.match(/https:\/\/.*\//g);
|
||||
url = new URL(urlString);
|
||||
|
@ -232,7 +232,7 @@
|
|||
url.searchParams.set('size', fetchSize);
|
||||
url.searchParams.append('lang', 'en-us');
|
||||
url.hash = '';
|
||||
url.host = 'hk4e-api-os.mihoyo.com';
|
||||
url.host = 'hk4e-api-os.hoyoverse.com';
|
||||
url.pathname = 'event/gacha_info/api/getGachaLog';
|
||||
|
||||
if ($server === 'China') {
|
||||
|
|
|
@ -7,11 +7,7 @@ const IMAGE_CACHE = `cacheimg${IMAGE_CACHE_VER}`;
|
|||
|
||||
const IMAGE_URL = `${self.location.origin}/images/`;
|
||||
|
||||
const changelog = [
|
||||
'Adjust item list for traveler',
|
||||
'Update excel import to support other language',
|
||||
'Update character guides',
|
||||
];
|
||||
const changelog = ['Bug fixes', 'Update excel import to support other language'];
|
||||
|
||||
const channel = new BroadcastChannel('paimonmoe-sw');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue