Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions config/tweaks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2148,24 +2148,23 @@
"Order": "a021_",
"InvokeScript": [
"
$hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\"
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
$hostsUrl = 'https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts'
$hosts = 'C:\\Windows\\System32\\drivers\\etc\\hosts'

Copy-Item $hosts \"$hosts.bak\"
Rename-Item $hosts -NewName 'hosts.bak'
Invoke-WebRequest $hostsUrl -OutFile $hosts
ipconfig flushdns
ipconfig /flushdns

Write-Host \"Added Adobe url block list from host file\"
"
],
"UndoScript": [
"
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
$backup = \"$hosts.bak\"
$hosts = 'C:\\Windows\\System32\\drivers\\etc\\hosts'

Copy-Item $backup $hosts
Remove-Item $backup
ipconfig flushdns
Remove-Item $hosts
Rename-Item ($hosts + '.bak') -NewName 'hosts'
ipconfig /flushdns

Write-Host \"Removed Adobe url block list from host file\"
"
Expand Down