From afe8f9ae232974293c073ddccb68640c84e9d8e8 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Thu, 24 Feb 2022 17:46:31 -0400 Subject: [PATCH] Fix bug --- README.md | 3 +++ VortexAnnoyanceReducer.ps1 | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3a4fef6..9959612 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,6 @@ To apply the edit to whichever theme you use, you must go into vortex settings, ``` This should scale the element down to zero and should pretty much solve the issue. If there are any new developments I'll update this repo. + +# Script +The included powershell script will install the theme, remove the button and ask you if you want to remove ads. \ No newline at end of file diff --git a/VortexAnnoyanceReducer.ps1 b/VortexAnnoyanceReducer.ps1 index ce424b2..6ef999c 100644 --- a/VortexAnnoyanceReducer.ps1 +++ b/VortexAnnoyanceReducer.ps1 @@ -1,4 +1,4 @@ -# Remove annoyance script v1.0.0 +# Remove annoyance script v1.1.1 # For Vortex 1.5.4 / 1.5.5 # Compact Style String @@ -317,11 +317,11 @@ if (Test-Path -path $VortexThemeFolder) { Clear-Host if ($ThemeSelection -eq 4) { - Write-Host "Enter your custom theme name exactly, it will not work." + Write-Host "Enter your custom theme name exactly, it will only work if the wording is exact" Write-Host "If the theme does not exist you will be reprompted. If you do not have one installed close the window" $ThemeName = Read-Host -prompt "Please enter the name of the theme you want to modify)" $TempThemeFolder = $VortexThemeFolder + $ThemeName - while (((Test-Path -path $TempThemeFolder) -eq $false) -or ($ThemeName -eq "") -or ($ThemeName -eq $null) -or ($ThemeName -Match ".")) { + while (((Test-Path -path $TempThemeFolder) -eq $false) -or ($ThemeName -eq "") -or ($ThemeName -eq $null) -or ($ThemeName -Like "*.*")) { $ThemeName = Read-Host -prompt "Please enter the name of the theme you want to modify)" $TempThemeFolder = $VortexThemeFolder + $ThemeName } @@ -331,7 +331,7 @@ if (Test-Path -path $VortexThemeFolder) { Clear-Host - if ($ThemeName -eq "" -or $ThemeName -eq $null -or $ThemeName -Match ".") { + if (($ThemeName -eq "") -or ($ThemeName -eq $null) -or ($ThemeName -Like "*.*")) { $ThemeName = "NoGetMoreMods" }