refactor WPFTweaksBlockAdobeNet (#4585)

* Update tweaks.json

* Update tweaks.json
This commit is contained in:
Gabi
2026-06-03 21:35:21 +03:00
committed by GitHub
parent fe2dd829b8
commit 5ba840f87f
+7 -11
View File
@@ -1081,25 +1081,21 @@
"panel": "1", "panel": "1",
"InvokeScript": [ "InvokeScript": [
" "
$hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\" $hostsUrl = Invoke-RestMethod -Uri https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" Add-Content -Path \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" -Value $hostsUrl
Move-Item $hosts \"$hosts.bak\"
Invoke-WebRequest $hostsUrl -OutFile $hosts
ipconfig /flushdns ipconfig /flushdns
Write-Host 'Added Adobe url block list from host file'
Write-Host \"Added Adobe url block list from host file\"
" "
], ],
"UndoScript": [ "UndoScript": [
" "
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" Set-Content \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" (
(Get-Content \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\") -join \"`n\" -replace '(?s)#New Ver.*', ''
)
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\"
" "
], ],
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/blockadobenet" "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/blockadobenet"