As Microsoft MVPs, we share a lot of Microsoft Learn articles with the community. To track our impact and contributions, we can add our unique contributor ID to the end of the URL (for example, adding ?WT.mc_id=M365-MVP-5004644).
There is a handy browser extension that does this automatically. But what if you are working on a company laptop where IT blocks you from installing extensions?
Doing this manually every time gets annoying. You have to copy the URL, paste it into your post, remember your ID, and type it out at the end of the link. I wanted a fast way to handle this without needing admin rights or installing any add-ons, so I set up a simple browser bookmark trick.
The Solution
Instead of pointing to a website, you can create a bookmark that runs a tiny piece of JavaScript. When you are reading a post on Microsoft Learn, you just click the bookmark. It automatically grabs the current page URL, attaches your MVP ID to the end of it, and opens the ready-to-share link in a new tab.
Here is the code I use:
javascript:((function() {
var u = new URL(window.location.href);
u.searchParams.set('WT.mc_id', 'M365-MVP-5004644');
window.open(u.toString(), '_blank');
})())
How to set it up
You can add this to Edge, Chrome, or any standard browser in just a few steps:
- Right-click on your browser’s bookmarks bar and choose Add page (or Add site).
- Give it a name that makes sense to you, like “Get MVP Link”.
- In the URL or Web Address field, paste the JavaScript code provided above.
- Find my ID (
5004644) in the code and replace it with your own MVP ID. - Save the bookmark.
How to use it
The next time you find a great Microsoft Learn article that you want to share on LinkedIn, Bluesky, or X:
- Click your new bookmark in the bookmarks bar.
- A new tab will open with the exact same article, but your MVP ID will now be attached in the address bar.
- Copy the URL from that new tab and paste it directly into your post.
It is a very simple workaround, but it removes friction and saves time when you are working in an environment where browser extensions are blocked.