# ============================================================================== # MOON LOBBY | Universal Windows 10 & 11 PC Optimizer v1.0.0 # Remote One-Liner : iwr https://moon-lobby-pc.pages.dev/IWR.ps1 -useb | iex # Offline Package : https://moon-lobby-pc.pages.dev/MoonLobby-PC-Optimizer-v1.0.0.zip # Discord : https://discord.gg/fMXgEaM9x3 # YouTube : https://www.youtube.com/@DrMoonKnight97 # ============================================================================== Set-StrictMode -Version Latest $ErrorActionPreference = 'Continue' try { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072 } catch {} $script:PagesBaseUrl = 'https://moon-lobby-pc.pages.dev' $script:GDriveFileId = '1zlA2w8se5ZUWP-2mimxYfFPMQwkrP6Zc' $script:CacheBust = [DateTimeOffset]::UtcNow.ToUnixTimeSeconds() $script:NoCacheHeaders = @{ 'Cache-Control' = 'no-cache'; 'Pragma' = 'no-cache' } function Test-DownloadedOptimizerPayload { param([Parameter(Mandatory = $true)][string]$FilePath) if (-not (Test-Path -LiteralPath $FilePath -PathType Leaf)) { return $false } $fi = Get-Item -LiteralPath $FilePath -ErrorAction SilentlyContinue if ($null -eq $fi -or $fi.Length -lt 30720) { return $false } try { $text = [System.IO.File]::ReadAllText($FilePath, [System.Text.Encoding]::UTF8) $trimmed = $text.TrimStart([char]0xFEFF).TrimStart() if ($trimmed.StartsWith('<') -or ($trimmed -match '(?i)^(