Skip to content

Instantly share code, notes, and snippets.

@marvk
Created March 19, 2019 20:49
Show Gist options
  • Save marvk/2f96e3e5377c8160e13f6d3cca6b5584 to your computer and use it in GitHub Desktop.
Save marvk/2f96e3e5377c8160e13f6d3cca6b5584 to your computer and use it in GitHub Desktop.
Lichess load all online group members
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