$(document).ready(function () { if ( $("#navbar").length !=0) { $(".nav-account").hide(); $(".skip-to-content").hide(); $("#external-login-heading").hide(); $("#search").hide(); $(".divider-vertical").hide(); $("[aria-label='Sign in']").hide(); } $(".pva-embedded-web-chat").hide(); if ($("button[title='Azure AD']")) $("button[title='Azure AD']").hide(); if ($("button[title='Register']").length > 0) { } var query = window.location.search.substring(1) if(query.length) { if (window.location.pathname.indexOf('ExternalLoginCallback')>0) { window.location.href = window.location.origin; } } });