Last active
April 23, 2020 06:24
-
-
Save J3698/818556315c0c27de8aeb21ac615a7a6c to your computer and use it in GitHub Desktop.
Deletes the SIO popup
This file contains hidden or 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
function deletePopup() { | |
// check if the backdrop exists | |
var dialogBox = document.getElementsByClassName("gwt-DialogBox"); | |
if (dialogBox.length != 0) { | |
dialogBox = dialogBox[0]; | |
// if backdrop exists, check if message matches "have you spoken..." | |
caption = dialogBox.getElementsByClassName("Caption")[0].innerHTML; | |
if (caption == "Have You Spoken to Your Advisor?") { | |
// remove!!!!!!!! | |
dialogBox.parentNode.removeChild(dialogBox); | |
var backdrop = document.getElementsByClassName("gwt-PopupPanelGlass")[0]; | |
backdrop.parentNode.removeChild(backdrop); | |
} | |
} | |
} | |
// check for popup every 50 ms | |
setInterval(deletePopup, 50); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment