Attempts to open the current webpage in the Microsoft Edge browser.
This bookmarklet provides a quick way to switch from your current browser to Microsoft Edge for viewing the same page. This can be useful for:
- Testing website compatibility or rendering in Edge.
- Accessing Edge-specific features or extensions.
- Working with sites that are optimized or required to be used with Edge.
- Simple Redirect: Prepends
microsoft-edge:to the current URL. - Protocol Handling: Relies on the operating system's ability to handle the
microsoft-edge:URL protocol.
- Easy Mode:
- Go to the Bookmarklet Installer
- Drag the generated link to your bookmarks bar.
- Hard Mode:
- Copy the entire JavaScript code from the edge.js file.
- Go to the generic Bookmarklet Installer.
- Paste the code into the installer.
- Name the bookmarklet (e.g., "Open in Edge").
- Drag the generated link to your bookmarks bar.
- Navigate to any webpage in a browser other than Edge.
- Click the "Open in Edge" bookmarklet.
- Your operating system should prompt you or automatically open the current URL in Microsoft Edge.
- It takes the current page's URL (
window.location.href). - It prepends the string
microsoft-edge:to this URL. - It then attempts to navigate to this new URL (e.g.,
microsoft-edge:https://www.example.com). - If Microsoft Edge is installed and the
microsoft-edge:protocol is correctly registered with the operating system, Edge will launch and open the original URL.
- Microsoft Edge browser must be installed on your system.
- The
microsoft-edge:URL protocol handler must be correctly registered with your operating system. This is typically done automatically when Edge is installed.
- This bookmarklet will only work if the
microsoft-edge:protocol is recognized by the system. If not, it may do nothing or show an error. - Its effectiveness can vary depending on the operating system and browser from which it's launched.
The full source code is available on GitHub:
javascript:(function() { window.location.href = "microsoft-edge:" + window.location.href; })();MIT License - See LICENSE
Created by Oskar Austegard