Skip to content

Instantly share code, notes, and snippets.

@intenzemotion
Last active August 12, 2026 18:19
Show Gist options
  • Select an option

  • Save intenzemotion/02961f50b4ad4ffe46e91829ad729a73 to your computer and use it in GitHub Desktop.

Select an option

Save intenzemotion/02961f50b4ad4ffe46e91829ad729a73 to your computer and use it in GitHub Desktop.
Hide Edge v149 forced rounded corners. Additionally hide red dot on profile icon too.
# This script must be run as Administrator to update some shortcut paths. Checking it first...
$IsAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(
[Security.Principal.WindowsBuiltInRole]::Administrator
)
if (-not $IsAdmin) {
Write-Host "Not running as Administrator. Some shortcuts may fail to update." -ForegroundColor Yellow
Write-Host ""
}
# This is your Edge path, it should be installed here (if you're on Stable channel).
$EdgePaths = "${env:ProgramFiles(x86)}\Microsoft\Edge\Application\msedge.exe"
do {
Write-Host "1. Old workaround (msFeatureGroupNewLookAndFeelHoldout)"
Write-Host "2. New workaround (msForceNoRoundedCornerAndMargin)"
Write-Host "3. Restore to default"
$Choice = Read-Host "`nEnter choice"
if ($Choice -eq "1") {
# msFeatureGroupNewLookAndFeelHoldout is an older/broader workaround revert that ugly rounded corner.
# msShowSignInIndicator is to hide the red dot on the profile icon if you wish to not sign in.
$Options = '--disable-features="msShowSignInIndicator,msFeatureGroupNewLookAndFeelHoldout"'
}
elseif ($Choice -eq "2") {
# msForceNoRoundedCornerAndMargin is a newer option for removing rounded corners.
# Use this instead if msFeatureGroupNewLookAndFeelHoldout stops working or affects other UI.
$Options = '--enable-features="msForceNoRoundedCornerAndMargin" --disable-features="msShowSignInIndicator"'
}
elseif ($Choice -eq "3") {
# Restore default shortcut behavior by removing all arguments.
$Options = ''
}
else {
Write-Host "Invalid choice. Please try again.`n" -ForegroundColor Red
}
} until ($Choice -in @("1", "2", "3"))
# Use WScript (a script host) to modify shortcuts
$Shell = New-Object -ComObject WScript.Shell
# This is your Edge possible shortcut paths.
# If you have shortcuts placed anywhere else, put them in this list as well.
$ShortcutPaths = @(
"$env:Public\Desktop\Microsoft Edge.lnk",
"$env:UserProfile\Desktop\Microsoft Edge.lnk",
"$env:ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk",
"$env:AppData\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk",
"$env:AppData\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk",
"$env:AppData\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu\Microsoft Edge.lnk",
"$env:AppData\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Microsoft Edge.lnk"
)
foreach ($ShortcutPath in $ShortcutPaths) {
if (Test-Path -LiteralPath $ShortcutPath) {
try {
$Shortcut = $Shell.CreateShortcut($ShortcutPath)
$Shortcut.TargetPath = $EdgePaths
$Shortcut.Arguments = $Options
$Shortcut.WorkingDirectory = Split-Path $EdgePaths -Parent
$Shortcut.IconLocation = "$EdgePaths,0"
$Shortcut.Save()
Write-Host "Recreated: $ShortcutPath" -ForegroundColor Green
}
catch {
Write-Host "Failed to update: $ShortcutPath. Error: $($_.Exception.Message)" -ForegroundColor Red
}
}
else {
Write-Host "Skipped, not found: $ShortcutPath" -ForegroundColor Yellow
}
}
Write-Host "`nPress any key to exit..."
$Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | Out-Null
powershell -NoExit -NoLogo -Command "Set-Location -LiteralPath '$PSScriptRoot'"
@lucaspestana

lucaspestana commented Jun 7, 2026

Copy link
Copy Markdown

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --enable-features=msForceNoRoundedCornerAndMargin --disable-features=msOmniboxFocusRingRoundEmphasize
image

for anyone interested, not only does the first argument combo get us rid of rounded corners and those awful thick margins/borders, but the second one also restores the rounded rectangular omnibox (address bar), instead of the Chrome-like pill-shaped one that replaced it (this trick is three years old, but surprisingly, it still works!).

⚠ make sure to not only change the shortcut on your Start Menu, but to also unpin and then repin Edge to your taskbar again, to ensure Edge will always launch from the newer, modified shortcut. (replace the shortcut elsewhere where applicable in your case -- on your Desktop, other app launchers, etc.)

@TheDeeGee

TheDeeGee commented Jun 7, 2026

Copy link
Copy Markdown

Sadly the script does not work for me.

It briefly pops up a blue Powershell window which closes itself and that's it. When i launch Edge it still has the rounded frame.

Ended up manually adding --enable-features=msForceNoRoundedCornerAndMargin to the taskbar shortcut in the AppData\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar folder :)

@ganlvtech

Copy link
Copy Markdown
  • Run PowerShell as Administrator (Hold Ctrl+Shift and click PowerShell icon)
  • Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
  • .\hide-edge-v149-rounded-corners.ps1

@TheDeeGee

Copy link
Copy Markdown
  • Run PowerShell as Administrator (Hold Ctrl+Shift and click PowerShell icon)

    • Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

    • .\hide-edge-v149-rounded-corners.ps1

Kinda figured that was the case, just couldn't figure out how to run it as admin from the ps1 file.

@intenzemotion

Copy link
Copy Markdown
Author

I could not make the script bypass PowerShell execution policy by itself. There are other methods, but uglier, and compiling it into an .exe would be overkill and people should not just trust random .exe. I have updated the instructions instead.

I also updated the script to use numbered options, so user can easily choose workaround style, or reset shortcut to default.

@ganlvtech

Copy link
Copy Markdown

It seems that msForceNoRoundedCornerAndMargin also removes the margin between Favorites Bar and web content.

@TheDeeGee

Copy link
Copy Markdown

It seems that msForceNoRoundedCornerAndMargin also removes the margin between Favorites Bar and web content.

That's a small price to pay really, i can deal with that.

@ganlvtech

Copy link
Copy Markdown

It seems that msForceNoRoundedCornerAndMargin also removes the margin between Favorites Bar and web content.

That's a small price to pay really, i can deal with that.

Use --disable-features=msFeatureGroupNewLookAndFeelHoldout, this feature don't remove Favorites Bar margin. Microsoft has become Microslop

@TheDeeGee

Copy link
Copy Markdown

It seems that msForceNoRoundedCornerAndMargin also removes the margin between Favorites Bar and web content.

That's a small price to pay really, i can deal with that.

Use --disable-features=msFeatureGroupNewLookAndFeelHoldout, this feature don't remove Favorites Bar margin. Microsoft has become Microslop

That one brings back the highlight bug in light theme, and it prevents webpages from opening images in the same tab.

@slashboxxx

Copy link
Copy Markdown

is there any way to the the same on MacOS?

@zjkal

zjkal commented Jun 10, 2026

Copy link
Copy Markdown

This is very helpful to me, thank you.

@AhmedAyachi

AhmedAyachi commented Jun 13, 2026

Copy link
Copy Markdown

is there any way to the the same on MacOS?

open terminal and run:
open -a "Microsoft Edge" --args --disable-features=msFeatureGroupNewLookAndFeelHoldout

Now never totally close the opened edge app, you can close all its windows though, all new windows won't have the stupid rounded corners.
That's what Ive done.

@moseon7580

Copy link
Copy Markdown

Thank you so much!
Edge's rounded corners are such a fucking ugly UI. It was so disgusting.

@intenzemotion

Copy link
Copy Markdown
Author

Check out the new GUI tool, can optionally restore sidebar for anyone interested!

@Thorsten7701

Copy link
Copy Markdown

Is there a way to change the colour of the blue border ? or even disable i? thank you in advance Thorsten

@intenzemotion

Copy link
Copy Markdown
Author

Sorry, which blue border?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment