@KhronosPy i already using it, but made some changes in OperaGX_WithOldTheme.ps1 in order opera:flags settings to work + added few more flags:
Path to Local State file, don't change it
$localStatePath = "$env:APPDATA\Opera Software\Opera GX Stable\Local State"
Read the file content
$content = Get-Content $localStatePath -Raw
Replace the gxx_flags to false
$content = $content -replace '"gxx_flags":{.*?}', '"gxx_flags":{"enabled":false,"migrated":true}'
Save the new content
Set-Content -Path $localStatePath -Value $content -Encoding UTF8
Path to Opera GX executable (change it if u needed)
$localAppPath = "$env:LOCALAPPDATA\Programs\Opera GX\opera.exe" #change the opera path here. Cambia la ruta a opera aquí.
$programFilesPath = "C:\Program Files\Opera GX\opera.exe"
if (Test-Path $localAppPath) {
$operaPath = $localAppPath
} elseif (Test-Path $programFilesPath) {
$operaPath = $programFilesPath
} else {
Write-Error "Opera GX executable not found in expected locations. Change the default path in the script"
exit 1
}
Start Opera GX
Start-Process $operaPath --try-supported-channel-layouts, --enable-features=MediaFoundationClearPlayback
i put this in original operagx shortcut and it is working fine, now everything works as i needed, no more slowdowns and bugs that i had with local state readme mode + i have original shortcut, but target now is OperaGX_WithOldTheme.ps1 file, opening very fast, no bugs