This is a Google Chrome extension that allows you to do a one-time configuration to save a desired tracking parameter you would like appended to Microsoft Learn URLs, then easily copy the URL for any Microsoft Learn page, with previous tracking parameters replaced with your desired one.
This extension is not yet available in the Chrome extension store, so will have to be side-loaded. Here is a CNET article that explains how to.
There are no specific permissions you have to authorize for the extension to run, but the application itself uses the following Chrome permissions:
- activeTab - allows the extension to obtain the URL of the currently viewed web page after click on the extension icon
- clipboardWrite - allows the extension to put the URL into clipboard
- contextMenus - allows the extension to add 'Copy Page URL' and 'Copy Frame URL' items to the context menu
- storage - allows the extension to store extension settings in the browser storage
After clicking on the extension icon in the browser UI, or selecting the copy option in a right-click context menu, the extension obtains the URL of a currently viewed webpage or a webpage frame, optionally removes some parts of the URL, and places the URL into the clipboard. The extension does not handle the URL in any other way, and does not handle any other user data.
- [v0.7.0] Add info here.
- Add a (multi) input so users can input their own tracking parameter (one-time) in the settings for it to use going forward.
- Add a picker, so if they’ve inputted multiple parameters they may want to use - they can easily toggle for which one they want.
- UI improvements
- Port to Edge
- Upload to Chrome/Edge extension libraries.
- Add validation to not have it work on non-Learn sites.
- Strip locale during copy
Code: MIT