├── CNAME ├── web └── index.html ├── README.md └── MSEdgeTweaker.cmd /CNAME: -------------------------------------------------------------------------------- 1 | fixedge.today -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | # If you can read this, please visit https://github.com/TheBobPony/MSEdgeTweaker for instructions on how to run the MSEdge Tweaker script! 2 | 3 | if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { 4 | Start-Process PowerShell -WindowStyle Hidden -Verb RunAs '-NoProfile -ExecutionPolicy Bypass -Command irm fixedge.today|iex'; 5 | exit; 6 | } 7 | Invoke-WebRequest -Uri "https://raw.githubusercontent.com/TheBobPony/MSEdgeTweaker/main/MSEdgeTweaker.cmd" -OutFile "${env:temp}\MSEdgeTweaker.cmd" -UseBasicParsing 8 | Start-Process "${env:temp}\MSEdgeTweaker.cmd" -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MSEdge Tweaker 2 | Easily configure Microsoft Edge, the way you want it! 3 | Please note, this project is still a work in progress! Please report any issues if you encounter any or open a discussion for any ideas to add/change for this project. 4 | 5 | ## How to use it? 6 | ### Method 1 (Recommended) 7 | 1. Press both Win and R keys together on the keyboard, a run dialog should appear. 8 | 2. Copy and paste this code then press enter on the keyboard 9 | ``` 10 | powershell iex(irm https://fixedge.today) 11 | ``` 12 | 3. You will see the list of options. Follow the on-screen instructions. 13 | ### Method 2 14 | 1. Simply download the MSEdgeTweaker.cmd file from this repo 15 | 2. Run the downloaded script as Administrator then you will see the list of options. Follow the on-screen instructions. 16 | 3. Enjoy! 17 | 18 | # TO DO 19 | - [-] Setup a dedicated domain for this project for use with PowerShell. (Done, see method 1) 20 | - [-] Add checks to determine the device is domain joined or not. (Done, it now checks and gives user alternative option if they're domain joined) 21 | - [ ] Give option to apply for the user account currently logged in (currently it's system wide as of right now). 22 | - [ ] Sort options by most used by users that would typically disable in edge. 23 | - [ ] Add more options that can be disabled and have the choice menu more organized as possible. 24 | - [ ] Somehow get feature flags changed such as disabling rounded corners on webpages via script. 25 | - [-] Option to undo changes made from this script. (Script now checks for existing registry and new option to remove all registry policies) 26 | - [ ] Option to uninstall Microsoft Edge -------------------------------------------------------------------------------- /MSEdgeTweaker.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | @setlocal DisableDelayedExpansion 3 | set version=v24-06-19 4 | title MSEdge Tweaker %version% 5 | echo Please wait, checking your system... 6 | 7 | REM Check if there's Admin rights 8 | Reg.exe query "HKU\S-1-5-19\Environment" 9 | If Not %ERRORLEVEL% EQU 0 ( 10 | cls & echo. You must have administrator rights to run this script! & echo. To do this, right click on this script file then select 'Run as administrator'. & echo. 11 | Pause & Exit 12 | ) 13 | REM Check OS version 14 | %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile "If ($([System.Environment]::OSVersion.Version.Major) -GE '10') { Exit 0 } Else { Exit 1 }" 15 | If ErrorLevel 1 cls & echo. Sorry, this script requires Windows 10 and newer! This script will now exit... & pause & exit /b 16 | 17 | REM Check if device is joined to domain 18 | echo Checking if this device is joined to a domain... 19 | for /f %%a in ('powershell "(Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain"') do set ComMem=%%a 20 | echo %ComMem% 21 | 22 | If %ComMem% Equ True ( 23 | GoTo DomainUser 24 | ) Else ( 25 | GoTo WorkgroupUser 26 | ) 27 | :DomainUser 28 | cls 29 | echo. 30 | echo Hey there! 31 | echo. 32 | echo This device appears to be joined to a domain! 33 | echo If you're an administrator of the domain, you should deploy Microsoft's own group policies for your domain instead! 34 | echo. 35 | echo Would you like to read the documentation for it or still proceed using this script? 36 | echo. 37 | echo. [1] Read the documentation for it 38 | echo. [2] Proceed to Main Menu 39 | echo. 40 | echo. [3] Exit 41 | echo. 42 | echo Enter a menu option on the Keyboard [1,2,3] : 43 | choice /C:123 /N 44 | set _erl=%errorlevel% 45 | if %_erl%==3 exit /b 46 | if %_erl%==2 goto MainMenu 47 | if %_erl%==1 start https://learn.microsoft.com/deployedge/configure-microsoft-edge & exit /b 48 | :WorkgroupUser 49 | goto MainMenu 50 | 51 | :MainMenu 52 | set regd= 53 | set regd2= 54 | set regd3= 55 | cls 56 | echo. 57 | echo Welcome to MSEdge Tweaker %version%! 58 | echo. 59 | echo Here's the list of availables options that you can do here: 60 | echo. 61 | echo. [1] Configure startup behavior, new tab and about page 62 | echo. [2] Disable importing from other web browsers on launch 63 | echo. [3] Disable browser sign in and sync services 64 | echo. [4] Disable setting as the default browser 65 | echo. [5] Disable edge sidebar 66 | echo. [6] Disable shopping assistant 67 | echo. [7] Disable visual search (icon that appears over images) 68 | echo. 69 | echo. [8] Go to Extras menu 70 | echo. 71 | echo. [9] Visit this project on GitHub 72 | echo. [0] Exit 73 | echo. 74 | echo Enter a menu option on the Keyboard [1,2,3,4,5,6,7,8,9,0] : 75 | choice /C:1234567890 /N 76 | set _erl=%errorlevel% 77 | if %_erl%==10 exit /b 78 | if %_erl%==9 start https://github.com/TheBobPony/MSEdgeTweaker & goto MainMenu 79 | if %_erl%==8 cls & goto ExtrasMenu 80 | if %_erl%==7 cls & goto visualsearch 81 | if %_erl%==6 cls & goto shoppingassist 82 | if %_erl%==5 cls & goto sidebar 83 | if %_erl%==4 cls & goto defaultbrowser 84 | if %_erl%==3 cls & goto nosignin 85 | if %_erl%==2 cls & goto browserimport 86 | if %_erl%==1 cls & goto builtinpages 87 | goto MainMenu 88 | 89 | :ExtrasMenu 90 | echo. 91 | echo Extras menu for MSEdge Tweaker 92 | echo. 93 | echo Here's the list of availables options that you can do here: 94 | echo. 95 | echo. [1] Disable Gamer mode 96 | echo. [2] Disable user feedback option 97 | echo. [3] Disable search bar and on startup 98 | echo. [4] Disable browser guest mode 99 | echo. [5] Disable collections feature 100 | echo. 101 | echo. [6] Remove ALL registry policies set 102 | echo. 103 | echo. [7] Uninstall Microsoft Edge web browser (coming soon) 104 | echo. [8] Uninstall Microsoft Edge WebView (coming soon) 105 | echo. 106 | echo. [9] Return to Main Menu 107 | echo. [0] Exit 108 | echo. 109 | echo Enter a menu option on the Keyboard [1,2,3,4,5,6,7,8,9,0] : 110 | choice /C:1234567890 /N 111 | set _erl=%errorlevel% 112 | if %_erl%==10 exit /b 113 | if %_erl%==9 goto MainMenu 114 | if %_erl%==8 cls & goto uninstalledgewebview 115 | if %_erl%==7 cls & goto uninstalledge 116 | if %_erl%==6 cls & goto clearpolicies 117 | if %_erl%==5 cls & goto collections 118 | if %_erl%==4 cls & goto guestmode 119 | if %_erl%==3 cls & goto searchbar 120 | if %_erl%==2 cls & goto userfeedback 121 | if %_erl%==1 cls & goto gamermode 122 | goto MainMenu 123 | 124 | :builtinpages 125 | echo. 126 | echo Configure startup, new tab and about page with MSEdge Tweaker 127 | echo. 128 | echo Here's the list of availables options that you can do here: 129 | echo. 130 | echo. [1] Disable startup boost 131 | echo. [2] Disable the first run experience and splash screen 132 | echo. [3] Disable sponsored links in the new tab page 133 | echo. [4] Disable quick links in the new tab page 134 | echo. [5] Disable insider banner in the about page 135 | echo. 136 | echo. [9] Return to Main Menu 137 | echo. [0] Exit 138 | echo. 139 | echo Enter a menu option on the Keyboard [1,2,3,4,5,9,0] : 140 | choice /C:1234567890 /N 141 | set _erl=%errorlevel% 142 | if %_erl%==10 exit /b 143 | if %_erl%==9 goto MainMenu 144 | if %_erl%==5 cls & goto insiderbanner 145 | if %_erl%==4 cls & goto quicklinksnewtab 146 | if %_erl%==3 cls & goto sponsorednewtab 147 | if %_erl%==2 cls & goto firstrunoobe 148 | if %_erl%==1 cls & goto startupboost 149 | goto MainMenu 150 | 151 | :firstrunoobe 152 | set regd=HideFirstRunExperience 153 | echo Disabling the first run experience and splash screen... 154 | goto regchecks 155 | :browserimport 156 | set regd=ImportOnEachLaunch 157 | echo Disabling importing from other web browsers on launch... 158 | goto regchecks 159 | :defaultbrowser 160 | set regd=DefaultBrowserSettingEnabled 161 | echo Disabling setting as default browser... 162 | goto regchecks 163 | :gamermode 164 | set regd=GamerModeEnabled 165 | echo Disabling Gamer mode... 166 | goto regchecks 167 | :sidebar 168 | set regd=HubsSidebarEnabled 169 | set regd2=StandaloneHubsSidebarEnabled 170 | echo Disabling edge sidebar... 171 | goto regchecks 172 | :shoppingassist 173 | set regd=EdgeShoppingAssistantEnabled 174 | echo Disabling shopping assistant... 175 | goto regchecks 176 | :sponsorednewtab 177 | set regd=NewTabPageHideDefaultTopSites 178 | echo Disabling Sponsored links in new tab page... 179 | goto regchecks 180 | :quicklinksnewtab 181 | set regd=NewTabPageQuickLinksEnabled 182 | echo Disabling quick links in new tab page... 183 | goto regchecks 184 | :visualsearch 185 | set regd=VisualSearchEnabled 186 | echo Disabling visual search... 187 | goto regchecks 188 | :nosignin 189 | set regd=BrowserSignin 190 | set regd2=ImplicitSignInEnabled 191 | set regd3=SyncDisabled 192 | echo Disabling browser sign in and sync services... 193 | goto regchecks 194 | :insiderbanner 195 | set regd=MicrosoftEdgeInsiderPromotionEnabled 196 | echo Disabling insider banner in the about page... 197 | goto regchecks 198 | :userfeedback 199 | set regd=UserFeedbackAllowed 200 | echo Disabling submit user feedback option... 201 | goto regchecks 202 | :searchbar 203 | set regd=SearchbarAllowed 204 | set regd2=SearchbarIsEnabledOnStartup 205 | echo Disabling search bar... 206 | goto regchecks 207 | :guestmode 208 | set regd=BrowserGuestModeEnabled 209 | echo Disabling use of guest mode... 210 | goto regchecks 211 | :collections 212 | set regd=EdgeCollectionsEnabled 213 | echo Disabling collections feature... 214 | goto regchecks 215 | :startupboost 216 | set regd=StartupBoostEnabled 217 | echo Disabling startup boost... 218 | goto regchecks 219 | :uninstalledge 220 | echo Uninstalling Microsoft Edge web browser is coming soon... 221 | 222 | timeout 5 223 | goto MainMenu 224 | :uninstalledgewebview 225 | echo Uninstalling Microsoft Edge WebView2 is coming soon, check back later! 226 | 227 | timeout 5 228 | goto MainMenu 229 | :clearpolicies 230 | echo Clearing all registry policies set... 231 | reg delete HKLM\Software\Policies\Microsoft\Edge /f 232 | reg delete HKCU\Software\Policies\Microsoft\Edge /f 233 | timeout 5 234 | goto MainMenu 235 | 236 | :regchecks 237 | echo Checking if the registry policy already exists... 238 | reg query HKLM\Software\Policies\Microsoft\Edge\ /v %regd% >nul 2>&1 239 | if %ERRORLEVEL% == 0 goto existingregd 240 | if %ERRORLEVEL% == 1 goto notexistregd 241 | 242 | :existingregd 243 | echo. 244 | echo The registry policy (%regd) already exists, what would you like to do now? 245 | echo. 246 | echo. [1] Do nothing, go back to main menu 247 | echo. [2] Remove the registry policy. 248 | echo. 249 | echo Enter a menu option on the Keyboard [1,2] : 250 | choice /C:12 /N 251 | set _erl=%errorlevel% 252 | if %_erl%==2 cls & goto undoregd 253 | if %_erl%==1 cls & goto MainMenu 254 | goto MainMenu 255 | 256 | :notexistregd 257 | echo. 258 | echo Applying registry policy... 259 | Reg.exe add "HKLM\Software\Policies\Microsoft\Edge" /v "%regd%" /t REG_DWORD /d "0" /f 260 | IF "%regd2%"=="" goto donemenu 261 | Reg.exe add "HKLM\Software\Policies\Microsoft\Edge" /v "%regd2%" /t REG_DWORD /d "0" /f 262 | IF "%regd3%"=="" goto donemenu 263 | Reg.exe add "HKLM\Software\Policies\Microsoft\Edge" /v "%regd3%" /t REG_DWORD /d "1" /f 264 | 265 | :donemenu 266 | echo. 267 | echo What would you like to do now? 268 | echo. 269 | echo. [1] Return to main menu 270 | echo. [2] Undo change 271 | echo. 272 | echo. [3] Exit 273 | echo. 274 | echo Enter a menu option on the Keyboard [1,2,3] : 275 | choice /C:123 /N 276 | set _erl=%errorlevel% 277 | if %_erl%==3 exit /b 278 | if %_erl%==2 cls & goto undoregd 279 | if %_erl%==1 cls & goto MainMenu 280 | goto MainMenu 281 | :undoregd 282 | echo. 283 | echo Undoing registry change(s)... 284 | echo. 285 | reg delete HKLM\Software\Policies\Microsoft\Edge\ /v %regd% /f 286 | IF "%regd2%"=="" timeout 5 & goto MainMenu 287 | reg delete HKLM\Software\Policies\Microsoft\Edge\ /v %regd2% /f 288 | IF "%regd3%"=="" timeout 5 & goto MainMenu 289 | reg delete HKLM\Software\Policies\Microsoft\Edge\ /v %regd3% /f 290 | timeout 5 291 | goto MainMenu --------------------------------------------------------------------------------