Toggle Azure DevOps URL between dev.azure.com/{org} and {org}.visualstudio.com
This userscript adds a small button to the Azure DevOps top navigation bar that lets you instantly switch between the two official Azure DevOps URL formats:
https://dev.azure.com/{organization}/...
https://{organization}.visualstudio.com/...
The toggle preserves the full path, including project, repository, pull request, and query parameters, so you stay on the exact same page.
One click toggle directly from the header menubar
Works both directions between URL formats
Safe and lightweight, no external dependencies
Handles Azure DevOps SPA navigation and header re-renders
Does not modify page content or make network requests
Some links, extensions, or internal tools still prefer one URL format over the other. This script removes the need to manually edit URLs or reload pages through bookmarks.
This script runs entirely in the browser. It does not collect, store, or transmit any data.