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