mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
Update generated documentation (#4075)
Co-authored-by: ChrisTitusTech <7896101+ChrisTitusTech@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f15c212df5
commit
3404f185f1
@@ -2,7 +2,8 @@
|
||||
title: "Adobe Network Block"
|
||||
description: ""
|
||||
---
|
||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1982}
|
||||
|
||||
```json {filename="config/tweaks.json",linenos=inline,linenostart=1974}
|
||||
"WPFTweaksBlockAdobeNet": {
|
||||
"Content": "Adobe Network Block",
|
||||
"Description": "Reduce user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs",
|
||||
@@ -11,9 +12,9 @@ description: ""
|
||||
"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
|
||||
|
||||
@@ -22,10 +23,10 @@ description: ""
|
||||
],
|
||||
"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\"
|
||||
|
||||
Reference in New Issue
Block a user