Created
February 9, 2023 18:26
-
-
Save OJ7/d4d563fe6057a793d10cb9cc8bfbc934 to your computer and use it in GitHub Desktop.
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
const orig = Array.from(document.getElementsByClassName('messageListItem-ZZ7v6g')); | |
setInterval(() => { | |
const curr = Array.from(document.getElementsByClassName('messageListItem-ZZ7v6g')); | |
const remaining = curr.filter( | |
(i) => { | |
return !orig.find(el => el.id === i.id) && i.outerText.toLowerCase().indexOf('tears') >= 0; | |
} | |
); | |
if (remaining.length) { | |
var win = window.open("", "Title", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=200,top="+(screen.height-400)+",left="+(screen.width-840)); | |
win.document.body.innerHTML = "Check Wario64 Discord! Script ended, please refresh Discord and re-run if needed"; | |
} | |
}, 5000); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment