Skip to content

Commit 9d620df

Browse files
committed
fix: replace iwr with irm and dub.sh shortlinks with direct GitHub raw URLs
Switch Invoke-WebRequest to Invoke-RestMethod for all script-fetching commands, and replace dub.sh short URLs with direct raw.githubusercontent.com paths to avoid 403 bot-protection blocks from the URL shortener.
1 parent 0aa4e49 commit 9d620df

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
**Step 2.** Run the launcher:
101101

102102
```powershell
103-
iwr "https://dub.sh/simplify11" | iex
103+
irm https://raw.githubusercontent.com/emylfy/simplify11/main/scripts/launch.ps1 | iex
104104
```
105105

106106
**Step 3.** The interactive menu opens automatically. No further installation needed.
@@ -110,7 +110,7 @@ iwr "https://dub.sh/simplify11" | iex
110110
Creates a shortcut to always launch the latest version:
111111

112112
```powershell
113-
iwr "https://dub.sh/s11install" | iex
113+
irm https://raw.githubusercontent.com/emylfy/simplify11/main/scripts/install.ps1 | iex
114114
```
115115

116116
### Security Note

docs/autounattend.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
3-
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Interactive&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&ComputerNameMode=Random&CompactOsMode=Default&TimeZoneMode=Implicit&PartitionMode=Interactive&WindowsEditionMode=Firmware&UserAccountMode=Interactive&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=HiddenSystem&ShowFileExtensions=true&LaunchToThisPC=true&TaskbarSearch=Hide&TaskbarIconsMode=Empty&DisableWidgets=true&HideTaskViewButton=true&DisableBingResults=true&StartTilesMode=Empty&StartPinsMode=Empty&DisableSmartScreen=true&AllowPowerShellScripts=true&PreventAutomaticReboot=true&TurnOffSystemSounds=true&DisableAppSuggestions=true&HideEdgeFre=true&EffectsMode=Default&DesktopIconsMode=Custom&WifiMode=Interactive&ExpressSettings=DisableAll&KeysMode=Skip&ColorMode=Default&WallpaperMode=Default&Remove3DViewer=true&RemoveBingSearch=true&RemoveClipchamp=true&RemoveCopilot=true&RemoveCortana=true&RemoveFamily=true&RemoveFeedbackHub=true&RemoveGetHelp=true&RemoveMailCalendar=true&RemoveMaps=true&RemoveMixedReality=true&RemoveZuneVideo=true&RemoveNews=true&RemoveOffice365=true&RemoveOneDrive=true&RemoveOneNote=true&RemoveOneSync=true&RemoveOutlook=true&RemovePeople=true&RemovePowerAutomate=true&RemoveQuickAssist=true&RemoveRdpClient=true&RemoveSkype=true&RemoveSolitaire=true&RemoveStepsRecorder=true&RemoveStickyNotes=true&RemoveTeams=true&RemoveGetStarted=true&RemoveToDo=true&RemoveWeather=true&FirstLogonScript0=%23+Define+the+path+to+the+desktop%0D%0A%24desktopPath+%3D+%5BSystem.Environment%5D%3A%3AGetFolderPath%28%27Desktop%27%29%0D%0A%0D%0A%23+Define+the+path+for+the+shortcut%0D%0A%24shortcutPath+%3D+Join-Path+-Path+%24desktopPath+-ChildPath+%22Simplify11.lnk%22%0D%0A%0D%0A%23+Create+a+new+COM+object+for+WScript.Shell%0D%0A%24wshShell+%3D+New-Object+-ComObject+WScript.Shell%0D%0A%0D%0A%23+Create+a+new+shortcut%0D%0A%24shortcut+%3D+%24wshShell.CreateShortcut%28%24shortcutPath%29%0D%0A%0D%0A%23+Set+the+target+path+to+launch+PowerShell+with+the+desired+command%0D%0A%24shortcut.TargetPath+%3D+%22powershell.exe%22%0D%0A%0D%0A%23+Set+the+arguments+to+execute+the+command%0D%0A%24shortcut.Arguments+%3D+%27-NoProfile+-ExecutionPolicy+Bypass+-Command+%22iwr+%5C%22https%3A%2F%2Fdub.sh%2Fsimplify11%5C%22+%7C+iex%22%27%0D%0A%0D%0A%23+Set+the+shortcut+description%0D%0A%24shortcut.Description+%3D+%22Launch+Simplify11%22%0D%0A%0D%0A%23+Set+the+shortcut+working+directory+%28optional%29%0D%0A%24shortcut.WorkingDirectory+%3D+%24desktopPath%0D%0A%0D%0A%23+Save+the+shortcut%0D%0A%24shortcut.Save%28%29%0D%0A%0D%0A%23+Output+confirmation+message%0D%0AWrite-Host+%22Shortcut+%27Simplify11%27+created+on+the+desktop.%22&FirstLogonScriptType0=Ps1&WdacMode=Skip-->
3+
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Interactive&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&ComputerNameMode=Random&CompactOsMode=Default&TimeZoneMode=Implicit&PartitionMode=Interactive&WindowsEditionMode=Firmware&UserAccountMode=Interactive&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=HiddenSystem&ShowFileExtensions=true&LaunchToThisPC=true&TaskbarSearch=Hide&TaskbarIconsMode=Empty&DisableWidgets=true&HideTaskViewButton=true&DisableBingResults=true&StartTilesMode=Empty&StartPinsMode=Empty&DisableSmartScreen=true&AllowPowerShellScripts=true&PreventAutomaticReboot=true&TurnOffSystemSounds=true&DisableAppSuggestions=true&HideEdgeFre=true&EffectsMode=Default&DesktopIconsMode=Custom&WifiMode=Interactive&ExpressSettings=DisableAll&KeysMode=Skip&ColorMode=Default&WallpaperMode=Default&Remove3DViewer=true&RemoveBingSearch=true&RemoveClipchamp=true&RemoveCopilot=true&RemoveCortana=true&RemoveFamily=true&RemoveFeedbackHub=true&RemoveGetHelp=true&RemoveMailCalendar=true&RemoveMaps=true&RemoveMixedReality=true&RemoveZuneVideo=true&RemoveNews=true&RemoveOffice365=true&RemoveOneDrive=true&RemoveOneNote=true&RemoveOneSync=true&RemoveOutlook=true&RemovePeople=true&RemovePowerAutomate=true&RemoveQuickAssist=true&RemoveRdpClient=true&RemoveSkype=true&RemoveSolitaire=true&RemoveStepsRecorder=true&RemoveStickyNotes=true&RemoveTeams=true&RemoveGetStarted=true&RemoveToDo=true&RemoveWeather=true&FirstLogonScript0=%23+Define+the+path+to+the+desktop%0D%0A%24desktopPath+%3D+%5BSystem.Environment%5D%3A%3AGetFolderPath%28%27Desktop%27%29%0D%0A%0D%0A%23+Define+the+path+for+the+shortcut%0D%0A%24shortcutPath+%3D+Join-Path+-Path+%24desktopPath+-ChildPath+%22Simplify11.lnk%22%0D%0A%0D%0A%23+Create+a+new+COM+object+for+WScript.Shell%0D%0A%24wshShell+%3D+New-Object+-ComObject+WScript.Shell%0D%0A%0D%0A%23+Create+a+new+shortcut%0D%0A%24shortcut+%3D+%24wshShell.CreateShortcut%28%24shortcutPath%29%0D%0A%0D%0A%23+Set+the+target+path+to+launch+PowerShell+with+the+desired+command%0D%0A%24shortcut.TargetPath+%3D+%22powershell.exe%22%0D%0A%0D%0A%23+Set+the+arguments+to+execute+the+command%0D%0A%24shortcut.Arguments+%3D+%27-NoProfile+-ExecutionPolicy+Bypass+-Command+%22irm+https%3A%2F%2Fraw.githubusercontent.com%2Femylfy%2Fsimplify11%2Fmain%2Fscripts%2Flaunch.ps1+%7C+iex%22%27%0D%0A%0D%0A%23+Set+the+shortcut+description%0D%0A%24shortcut.Description+%3D+%22Launch+Simplify11%22%0D%0A%0D%0A%23+Set+the+shortcut+working+directory+%28optional%29%0D%0A%24shortcut.WorkingDirectory+%3D+%24desktopPath%0D%0A%0D%0A%23+Save+the+shortcut%0D%0A%24shortcut.Save%28%29%0D%0A%0D%0A%23+Output+confirmation+message%0D%0AWrite-Host+%22Shortcut+%27Simplify11%27+created+on+the+desktop.%22&FirstLogonScriptType0=Ps1&WdacMode=Skip-->
44
<settings pass="offlineServicing"></settings>
55
<settings pass="windowsPE">
66
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
@@ -429,7 +429,7 @@ $shortcut = $wshShell.CreateShortcut($shortcutPath)
429429
$shortcut.TargetPath = "powershell.exe"
430430

431431
# Set the arguments to execute the command
432-
$shortcut.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command "iwr \"https://dub.sh/simplify11\" | iex"'
432+
$shortcut.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/emylfy/simplify11/main/scripts/launch.ps1 | iex"'
433433

434434
# Set the shortcut description
435435
$shortcut.Description = "Launch Simplify11"

modules/windots/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ Collection of configurations and tools to transform your Windows 11 into an eleg
4040
Launch via Simplify11 (recommended):
4141

4242
```powershell
43-
iwr "https://dub.sh/simplify11" | iex
43+
irm https://raw.githubusercontent.com/emylfy/simplify11/main/scripts/launch.ps1 | iex
4444
```
4545

4646
Then select **[5] Windots** from the main menu.
4747

4848
Or launch Windots standalone:
4949

5050
```powershell
51-
iwr "https://dub.sh/windots" | iex
51+
irm "https://dub.sh/windots" | iex
5252
```
5353

5454
---

modules/windots/Windots.Apps.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Install-SpotX {
66
Clear-Host
77
Write-Log -Message "Installing SpotX..." -Level INFO
88
try {
9-
$scriptContent = (Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1 -ErrorAction Stop).Content
9+
$scriptContent = Invoke-RestMethod -Uri https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1 -ErrorAction Stop
1010
Invoke-Expression $scriptContent
1111
Write-Log -Message "SpotX installed successfully." -Level SUCCESS
1212
} catch {
@@ -19,7 +19,7 @@ function Install-Spicetify {
1919
Clear-Host
2020
Write-Log -Message "Installing Spicetify..." -Level INFO
2121
try {
22-
Invoke-Expression (Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/spicetify/cli/main/install.ps1)
22+
Invoke-Expression (Invoke-RestMethod -Uri https://raw.githubusercontent.com/spicetify/cli/main/install.ps1)
2323
Write-Log -Message "Spicetify installed successfully." -Level SUCCESS
2424
} catch {
2525
Write-Log -Message "Failed to install Spicetify: $($_.Exception.Message)" -Level ERROR
@@ -31,7 +31,7 @@ function Install-Steam {
3131
Clear-Host
3232
Write-Log -Message "Installing Steam Millennium..." -Level INFO
3333
try {
34-
Invoke-Expression (Invoke-WebRequest -UseBasicParsing 'https://steambrew.app/install.ps1')
34+
Invoke-Expression (Invoke-RestMethod -Uri 'https://steambrew.app/install.ps1')
3535
Write-Log -Message "Steam Millennium installed successfully." -Level SUCCESS
3636
} catch {
3737
Write-Log -Message "Failed to install Steam Millennium. Make sure Steam is installed." -Level ERROR
@@ -49,7 +49,7 @@ function Install-Steam {
4949
if ($installChoice -eq 'y') {
5050
Write-Log -Message "Installing Space Theme..." -Level INFO
5151
try {
52-
Invoke-Expression (Invoke-WebRequest -UseBasicParsing 'https://spacetheme.de/steam.ps1')
52+
Invoke-Expression (Invoke-RestMethod -Uri 'https://spacetheme.de/steam.ps1')
5353
Write-Log -Message "Space Theme installed successfully." -Level SUCCESS
5454
} catch {
5555
Write-Log -Message "Failed to install Space Theme through the main method." -Level ERROR

scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $shortcutPath = Join-Path -Path $startMenuPath -ChildPath "Simplify11.lnk"
55
$wshShell = New-Object -ComObject WScript.Shell
66
$shortcut = $wshShell.CreateShortcut($shortcutPath)
77
$shortcut.TargetPath = "powershell.exe"
8-
$shortcut.Arguments = '-NoProfile -ExecutionPolicy Bypass "iwr \"https://dub.sh/simplify11\" | iex"'
8+
$shortcut.Arguments = '-NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/emylfy/simplify11/main/scripts/launch.ps1 | iex"'
99
$shortcut.Description = "Launch Simplify11"
1010
$shortcut.WorkingDirectory = $env:USERPROFILE
1111

0 commit comments

Comments
 (0)