Hey fellow sufferees,
so this issue is seriously annoying and the fact that (as pointed out somewhere in this Thread) the dnsapi.dll actually contains a "msn.com" entry somewhere is just unbeleivable. Its a mystery how they had to remove their own products from windows a few
years ago but do not need to remove that msn.com exception from an API (Aplication Programming Interface).
Well for those of you who have some extension on their browser which just injects JavaScript to pages (instead of getting a full blown redirection plugin) here is another really short solution. It is derived from some 'insider' who replied earlier with a
link that logs you out and redirects to the login page (thx to you):
$('a[aria-label="Sign out"]').attr('href', 'https://login.live.com/logout.srf?ru=##encoded-url##').click(function() {});
The above will find the logout button on outlook.com and insert a link to the logout web site with the redirect url option set to ##encoded-url##. So you can use the provided logout function and still wont end up on that cancerous crime of a web page (Of course the ##encoded-url## will need to be replaced!!!).
DOES NOT WORK, the menu containing the logout button is created each time the menu is opened, so the above would only work with an open menu!
THIS WORKS in outlook.live.com at least:
window.replaceRedirect = function() {
$('a[aria-label="Sign out"]').attr('href', 'https://login.live.com/logout.srf?ru=##encoded-url##')[0].onclick = function() {};
};
$('button.o365cs-me-nav-item').click(function() { setTimeout(window.replaceRedirect, 500); });
A little explaining (i feel like ppl are just throwing plugins in each other faces in here and do not in the slightest try to clear things up for noobish users):
The "https://login.live.com/logout.srf?ru=" is the actual logout. It will call the logout service of "Windows live" and provide the redirect URL (ru -> Redirect Url) to the service as well. Normally
the service is called with the msn.com or no Redirect URL and therefore redirects to msn.com.
Step by Step:
However you access the Microsoft product (mail, account... whatever), just before you type in your name in the user box, copy the complete path in the AddressBar of your browser (it will show only login.live.com/login.srf, but if you click the address bar
a complete path should be presented, that's the one you should copy).
Then go to "http://urlencode.org/" and paste that copied address in there and hit the "encode button" (this will convert all characters on the given text into representations of those characters so the service won't try to actually parse them, for example
the colon sign must be encoded so that it won't be "translated into a command" [the easiest way i can put it]).
Then take the result and paste it behind
https://login.live.com/logout.srf?ru=
The result would be https://login.live.com/logout.srf?ru=##pasted-text## where ##pasted-text## obviously is replaced with the text you pasted. This address can then be used as a mean to log out
of the microsoft service you logged in to.
(side note: You somehow cannot remove the ID= part from the url, it will then always redirect to the msn.com page)
Of course you can also just use the above created URL and make a bookmark on your browser, if you do not have a possibility for javaScript injection.
(JavaScript injection is nothing to be concerned about
here, the above code only affects the html element itself and JavaScript is executed on the client (your own PC) Browser only, so you cannot do anything wrong with that and it will not harm your PC in any way (it wouldnt even be possible).
I hope these instructions are clear for everyone.
PS: do not bother to ask me which java script injection i use or what's it called or whatever, if you dont know how to find it yourself, you're probably better off using a bookmark anyways.
PSS: The actual redirection does not seem to be done by the logout service, only if the presented ru is a login.live url. Otherwise the service will just redirect to: https://login.live.com/gls.srf?**urlID=msnhome**&lc=1033 (marked the part
redirecting to the MSN Home Page bold)
PSSS: FFS it's unbeleivably difficult to edit texts in here, one doesn't even notice that the text is not updated after submitting the 1st edit, so the 2nd edit reverts it all!