Fix WPFTweaksBlockAdobeNet (#4042)

* Fix WPFTweaksBlockAdobeNet

* Update tweaks.json
This commit is contained in:
Gabi
2026-02-17 20:29:41 +02:00
committed by GitHub
parent 5582c3cb44
commit 61a6265cf9

View File

@@ -1987,9 +1987,9 @@
"InvokeScript": [
"
$hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\"
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\"
Copy-Item $hosts \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\"
Move-Item $hosts \"$hosts.bak\"
Invoke-WebRequest $hostsUrl -OutFile $hosts
ipconfig /flushdns
@@ -1998,10 +1998,10 @@
],
"UndoScript": [
"
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
$backup = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\"
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\"
Remove-Item $hosts
Move-Item \"$hosts.bak\" $hosts
ipconfig /flushdns
Write-Host \"Removed Adobe url block list from host file\"