Last active
August 24, 2018 13:05
-
-
Save XtinaSchelin/63cf30f627e59ee0fcd9a9509227a3d6 to your computer and use it in GitHub Desktop.
Adds a link to re-login to Outlook.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Re-Login to Outlook | |
// @namespace https://xtinas.org | |
// @version 0.2 | |
// @description Add a "Log Into Outlook" "button" to the god damn logout page for OWA. | |
// @author Xtina S. | |
// @match https://login.microsoftonline.com/login.srf?wa=wsignoutcleanup1.0* | |
// @match https://outlook.office.com/owa/?path=/mail/inbox&authRedirect=true | |
// @grant none | |
// ==/UserScript== | |
// You can change this to whatever you want. | |
var linkText = "Log Into Outlook"; | |
// Set up the div that'll contain much of the style. | |
var linkDiv = document.createElement("div"); | |
linkDiv.setAttribute("style", "margin-top: 40px;"); | |
// Set up the new link. | |
var newLink = document.createElement("a"); | |
newLink.setAttribute("href", "https://outlook.office.com/owa/"); | |
newLink.appendChild(document.createTextNode(linkText)); | |
// Set up the style for said link. | |
var newStyle = "background-color: #0078d7; color: white; border-radius: 2px; border: 2px solid #0078d7; font-size: 18px; padding: 4px 8px;"; | |
newLink.setAttribute("style", newStyle); | |
// Append the link to the notification box header bit. | |
document.getElementById("login_workload_logo_text").parentNode.appendChild(newLink); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment