Skip to content

Instantly share code, notes, and snippets.

@panekj
Last active July 14, 2021 12:04
Show Gist options
  • Save panekj/fc6fb5befc0eb2e12d5b606f2957ec8f to your computer and use it in GitHub Desktop.
Save panekj/fc6fb5befc0eb2e12d5b606f2957ec8f to your computer and use it in GitHub Desktop.
// SSPR Button Start
function ssprButton() {
$("a#loginBtn").ready(function(){
$('a#loginBtn').after('<br><a id="ssprBtn" href="https://passwordreset.microsoftonline.com/?whr=domain.tld" target="_blank" class="button forms-authentication-button last-child default">Password Reset</a>');
});
setTimeout(function(){
if(document.getElementById('ssprBtn') != null){
clearInterval(timer);
}
}, 500);
}
var timer = setInterval(ssprButton, 2000);
// SSPR Button End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment