Skip to content

Instantly share code, notes, and snippets.

@OJ7
Created February 9, 2023 18:26
Show Gist options
  • Save OJ7/d4d563fe6057a793d10cb9cc8bfbc934 to your computer and use it in GitHub Desktop.
Save OJ7/d4d563fe6057a793d10cb9cc8bfbc934 to your computer and use it in GitHub Desktop.
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