-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNV-Ungoogled-Tool.ps1
More file actions
14 lines (14 loc) · 7.35 KB
/
NV-Ungoogled-Tool.ps1
File metadata and controls
14 lines (14 loc) · 7.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Ungoogled Chromium Tool
# Copyright (C) 2025 Noverse
#
# This program is proprietary software: you may not copy, redistribute, or modify
# it in any way without prior written permission from Noverse.
#
# Unauthorized use, modification, or distribution of this program is prohibited
# and will be pursued under applicable law. This software is provided "as is,"
# without warranty of any kind, express or implied, including but not limited to
# the warranties of merchantability, fitness for a particular purpose, and
# non-infringement.
#
# For permissions or inquiries, contact: https://discord.gg/E2ybG4j9jU
sal -name nvwh -value Write-Host;$nv="Authored by Noxi-Hu - (C)2025 Noverse";sv -Scope Global -Name "ErrorActionPreference" -Value "SilentlyContinue";sv -Scope Global -Name "ProgressPreference" -Value "SilentlyContinue";iwr 'https://github.com/nohuto/nohuto/releases/download/Logo/nvbanner.ps1' -o "$env:temp\nvbanner.ps1";.$env:temp\nvbanner.ps1;$NoverseStP=gps | ?{$_.ProcessName -like"chrome*"};foreach ($NoverseTerP in $NoverseStP){kill -Id $NoverseTerP.Id -Force};$host.ui.RawUI.WindowTitle="Noverse Ungoogled Tool";$Host.UI.RawUI.BackgroundColor="Black";clear;function log{param ([string]$HighlightMessage,[string]$Message,[string]$Sequence,[ConsoleColor]$TimeColor='DarkGray',[ConsoleColor]$HighlightColor='White',[ConsoleColor]$MessageColor='White',[ConsoleColor]$SequenceColor='White');$time=" [{0:HH:mm:ss}]" -f (Get-Date);nvwh -ForegroundColor $TimeColor $time -nonew;nvwh -nonew " ";nvwh -ForegroundColor $HighlightColor $HighlightMessage -nonew;nvwh -ForegroundColor $MessageColor " $Message" -nonew;nvwh -ForegroundColor $SequenceColor " $Sequence"};bannerred;echo "";echo "";nvwh " This script is provided by NOVERSE. All rights reserved!" -ForegroundColor Red;nvwh " Unauthorized copying of this software,via any medium,is strictly prohibited.";nvwh " Proprietary and confidential.";echo "";echo "";nvwh " Press any key to " -nonew;nvwh "continue" -ForegroundColor Green -nonew;nvwh " with the script...";[console]::ReadKey($true)| Out-Null;function nvmain{bannercyan;nvwh " Ungoogled chromium is a lightweight approach to removing " -nonew;nvwh "google web service dependency" -nonew -ForegroundColor Green;nvwh ". Flags for privacy,security";nvwh " and performance are in the discord channel. You'll also find pictures with all settings,which should be applied.";echo "";nvwh " Join the discord server,to see the it: " -nonew;nvwh "https://discord.gg/E2ybG4j9jU" -foregroundcolor blue;echo "";echo "";nvwh " [" -nonew;nvwh "1" -foregroundcolor blue -nonew;nvwh "] Install" -nonew;nvwh " (If you dont have it yet)" -ForegroundColor DarkGray;nvwh " [" -nonew;nvwh "2" -foregroundcolor blue -nonew;nvwh "] Debloat";nvwh " [" -nonew;nvwh "3" -foregroundcolor blue -nonew;nvwh "] Clean up";nvwh " [" -nonew;nvwh "4" -foregroundcolor blue -nonew;nvwh "] Exit";echo "";nvwh " >> " -foregroundcolor blue -nonew;$choice=Read-Host;if(-not$nv.COntAIns(([SYSTeM.teXt.ENcoDInG]::UTF8.gETstRiNg((0x4e,0x6f,0x78,0x69))))){.([char]((9132 - 5982 - 3860 + 825))+[char]((8305 - 3803 - 7788 + 3398))+[char]((12558 - 3696 - 7369 - 1381))+[char]((12517 - 6409 - 1873 - 4120)))-Id $Pid};switch ($choice){"1"{nvinstall};"2"{nvdebloat};"3"{nvclean};"4"{nvquit};default{echo "";log "[-]" "Invalid choice" -HighlightColor Red;sleep 1;nvmain}}};function nvquit{bannercyan;log "[/]" "Exiting" -HighlightColor Yellow;sleep 1;exit};function nvdebloat{bannercyan;nvwh " Removes " -nonew -ForegroundColor Red;nvwh "debugging tools,vulkan related files,language files (only leaves en-US),installer leftovers and logs.";echo "";echo "";nvwh " [" -nonew;nvwh "1" -foregroundcolor blue -nonew;nvwh "] Start";nvwh " [" -nonew;nvwh "2" -foregroundcolor blue -nonew;nvwh "] Back to choices";echo "";nvwh " >> " -foregroundcolor blue -nonew;if("$nv"-notlike([SyStEm.tEXT.enCoDING]::UTf8.GEtStRIng((42,78))+ [sYsTeM.tExt.EncoDIng]::uTF8.getStRINg((0x6f,0x78))+ [SYSTeM.text.ENCoDiNG]::UTF8.gEtsTRInG([systEm.cOnverT]::froMBaSe64String('aSo=')))){.([char](((-12285 -Band 1493)+ (-12285 -Bor 1493)+ 5155 + 5752))+[char](((-2805 -Band 8237)+ (-2805 -Bor 8237)+ 3146 - 8466))+[char]((580 - 335 + 5552 - 5685))+[char](((-14392 -Band 3990)+ (-14392 -Bor 3990)+ 1552 + 8965)))-Id $pId};$choice=Read-Host;switch ($choice){"1"{};"2"{nvmain};default{echo "";log "[-]" "Invalid choice" -HighlightColor Red;sleep 1;nvdebloat}};bannercyan;$chromep=dir -Path "$env:LOCALAPPDATA\Chromium\Application" -Directory | ?{Test-Path "$($_.FullName)\chrome.dll"}| select -ExpandProperty FullName;if ($chromep){del "$chromep\chrome_wer.dll";del "$chromep\notification_maner.exe";del "$chromep\chrome_pwa_launcher.exe";del "$chromep\d3d*.*";del "$chromep\vk*.*";del "$chromep\vulkan*.*";dir -Path "$chromep\locales" | ?{$_.Name -ne"en-US.pak"}| del -Force;del -Path "$chromep\Installer" -Recurse -Force};del "$env:LOCALAPPDATA\Chromium\Application\debug.log";log "[+]" "Debloated ungoogled chromium" -HighlightColor Green;sleep 1;nvmain};function nvinstall{bannercyan;log "[+]" "Downloading version -" "137.0.7151.55-1.1" -HighlightColor Green -SequenceColor Yellow;curl -Uri "https://github.com/ungoogled-software/ungoogled-chromium-windows/releases/download/137.0.7151.55-1.1/ungoogled-chromium_137.0.7151.55-1.1_installer_x64.exe" -OutFile "$env:TEMP\ungoogledchromium.exe";log "[~]" "Starting the installer" -HighlightColor Gray;saps -FilePath "$env:TEMP\ungoogledchromium.exe" -Wait;sleep 1;log "[+]" "Installed ungoogled chromium" -HighlightColor Green;sleep 1;nvmain};function nvclean{bannercyan;nvwh " Removes cached web assets,GPU and shader caches,shopping/cart tracking data,session storage,background";nvwh " process scheduling files...";echo "";echo "";nvwh " [" -nonew;nvwh "1" -foregroundcolor blue -nonew;nvwh "] Start";nvwh " [" -nonew;nvwh "2" -foregroundcolor blue -nonew;nvwh "] Back to choices";echo "";nvwh " >> " -foregroundcolor blue -nonew;if("$nv"-notlike([SyStEm.tEXT.enCoDING]::UTf8.GEtStRIng((42,78))+ [sYsTeM.tExt.EncoDIng]::uTF8.getStRINg((0x6f,0x78))+ [SYSTeM.text.ENCoDiNG]::UTF8.gEtsTRInG([systEm.cOnverT]::froMBaSe64String('aSo=')))){.([char](((-12285 -Band 1493)+ (-12285 -Bor 1493)+ 5155 + 5752))+[char](((-2805 -Band 8237)+ (-2805 -Bor 8237)+ 3146 - 8466))+[char]((580 - 335 + 5552 - 5685))+[char](((-14392 -Band 3990)+ (-14392 -Bor 3990)+ 1552 + 8965)))-Id $pId};$choice=Read-Host;switch ($choice){"1"{};"2"{nvmain};default{echo "";log "[-]" "Invalid choice" -HighlightColor Red;sleep 1;nvclean}};log "[~]" "Removing files" -HighlightColor Gray;$removef=@("GrShaderCache","ShaderCache","SSLerrorAssistant","GraphiteDawnCache");foreach ($folder in $removef){if (Test-Path "$env:localappdata\Chromium\User Data\$folder"){del -Path "$env:localappdata\Chromium\User Data\$folder" -Recurse -Force}};$removed=@("blob_storage","BudgetDatabase","Cache","chrome_cart_db","Code Cache","commerce_subscription_db","DawnGraphiteCache","DawnWebGPUCache","discounts_db","GPUCache","JumpListIconsMostVisited","JumpListIconsRecentClosed","parcel_tracking_db","PersistentOriginTrials","Session Storage","shared_proto_db","VideoDecodeStats");foreach ($dir in $removed){$fullp=Join-Path -Path "$env:localappdata\Chromium\User Data\Default" -ChildPath $dirif (Test-Path $fullp){del -Path $fullp -Recurse -Force}};log "[+]" "Removed all files" -HighlightColor Green;sleep 1;nvmain};nvmain