Created
March 19, 2019 20:49
-
-
Save marvk/2f96e3e5377c8160e13f6d3cca6b5584 to your computer and use it in GitHub Desktop.
Lichess load all online group members
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
let lnCounter = 0; | |
let removeOffline = function () { | |
while (document.getElementsByClassName('offline')[0]) { | |
document.getElementsByClassName('offline')[0].parentElement.remove(); | |
} | |
} | |
let loadOnline = setInterval(function(){ | |
lnCounter++; | |
removeOffline(); | |
document.getElementsByClassName('inf-more')[0].click(); | |
if (lnCounter >= 250) { | |
clearInterval(looper); | |
} | |
}, 1000); | |
loadOnline(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment