From 5ba840f87fd45425788b0005f46927a7134f9d03 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Wed, 3 Jun 2026 21:35:21 +0300 Subject: [PATCH] refactor WPFTweaksBlockAdobeNet (#4585) * Update tweaks.json * Update tweaks.json --- config/tweaks.json | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index bb802420..43a8a7bd 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -1081,25 +1081,21 @@ "panel": "1", "InvokeScript": [ " - $hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\" - $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" + $hostsUrl = Invoke-RestMethod -Uri https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts + Add-Content -Path \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" -Value $hostsUrl - Move-Item $hosts \"$hosts.bak\" - Invoke-WebRequest $hostsUrl -OutFile $hosts ipconfig /flushdns - - Write-Host \"Added Adobe url block list from host file\" + Write-Host 'Added Adobe url block list from host file' " ], "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 - - 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"