What the Arknights: Endfield import script reads
To import your history you run a short PowerShell script. This page walks through the Arknights: Endfield script step by step: what it reads, what it leaves alone and what happens to the link it copies. The full script is at the bottom.
What it does, step by step
Opens the cache of the game's built-in browser in %LOCALAPPDATA%\PlatformProcess\Cache read-only, without getting in the way of the game, which keeps these files open.
Searches the cache for the address of the Headhunting records page, the one that contains u8_token.
Puts the newest such link into the clipboard and prints “Done”.
What it never does
- It sends nothing over the internet: there are no download or upload commands in it.
- It doesn't create, change or delete any files.
- It doesn't ask for administrator rights and installs nothing.
- It doesn't ask for your password, login or cookies.
What is in the link
The link carries a key, u8_token, which the game creates for the records page. Treat the link like a password: paste it only here and don't post it anywhere.
Gryphline's history service doesn't let browsers read it directly, so each request goes through our server once and straight on to Gryphline. We don't log the link and don't store it; the history itself is saved in your browser and, if you're signed in, in your account.
What we keep
The history itself, pull by pull, stays in your browser. If you're signed in, the same records sync to your account so the tracker works on your other devices. The link is never saved anywhere, not even in your browser. To erase the history, press “Delete history” in the tracker: it goes from this browser and from your account.
Check it yourself
- Read the script before you run it. It's shown in full below: plain text made of standard PowerShell commands.
- Look for network commands such as Invoke-WebRequest or Invoke-RestMethod. There are none.
- If you like, paste the link into Notepad first: it starts with an address on gryphline.com.
- During the import, the Network tab in your browser's developer tools shows where every request goes: only to our /api/gacha/endfield address, which passes it on to the publisher.
The full script
The same script as on the import page.
# GachaFans: find the Arknights: Endfield headhunting records link (reads local files only)
$dir = Join-Path $env:LOCALAPPDATA 'PlatformProcess\Cache'
if (-not (Test-Path -LiteralPath $dir)) { Write-Host 'The game cache was not found. Open Headhunting records in the game on this PC, then run this again.'; return }
$files = Get-ChildItem -LiteralPath $dir -File -Filter 'data_*' -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending
$re = 'https://ef-webview\.gryphline\.com/[A-Za-z0-9\-._~:/?#\[\]@!$&''()*+,;=%]*u8_token=[A-Za-z0-9\-._~:/?#\[\]@!$&''()*+,;=%]+'
$url = $null
foreach ($f in $files) {
try { $fs = [IO.File]::Open($f.FullName, 'Open', 'Read', 'ReadWrite, Delete') } catch { continue }
$bytes = New-Object byte[] $fs.Length; $null = $fs.Read($bytes, 0, $bytes.Length); $fs.Close()
$text = [Text.Encoding]::GetEncoding(28591).GetString($bytes) -replace '\\u0026', '&'
$hit = [regex]::Matches($text, $re) | Select-Object -Last 1
if ($hit) { $url = $hit.Value; break }
}
if (-not $url) { Write-Host 'Link not found. Open Headhunting records in the game, wait for the list, then run this again.'; return }
Set-Clipboard -Value $url
Write-Host 'Done: the link is in your clipboard. Paste it on the GachaFans page.'