With Intune moving to endpoint, they now require you to click another link to be able to manage Intune devices. This will now take you directly to endpoint when clicking the link.
With changes coming rapidly to Intune they made the decision to begin rebranding the Intune dashboard. They're now referring to it as Azure Endpoint. The annoyance, for us every day administrators, is that it now requires two clicks to be able to manage our MDM devices. This isn't acceptable! Every click is precious.
This is a extremely basic script. It creates a function that redirects the page once it's detected a certain document element has been clicked. That document element being: _weave_e_52. There is a 2-second delay in the script, that's purely due to how heavy the Azure Portal is.