Last active
December 17, 2024 10:42
-
-
Save darkronin/4289997813cc8cd04a4756bec1c4a793 to your computer and use it in GitHub Desktop.
Alerts if the pychess user has a new chat message
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
javascript:(function(){let g = (id) => document.getElementById(id); let lc = g('username').lastChild; let myuser = lc.innerText; if(!window.pyc) { window.pyc = {}; } window.pyc.ccl = g('messages').children.length; function cclp(){ if( window.pyc.ccl != g('messages').children.length ){ function drale(){ lc.innerText = myuser } window.pyc.ccl = g('messages').children.length; lc.innerText = "** CHAT! **" } setTimeout( drale, 800); } setInterval(cclp, 500);})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment