Skip to content

Instantly share code, notes, and snippets.

@ivanmem
Created December 4, 2019 06:34
Show Gist options
  • Save ivanmem/735dd8ecec168b5c77b462763e93fdc7 to your computer and use it in GitHub Desktop.
Save ivanmem/735dd8ecec168b5c77b462763e93fdc7 to your computer and use it in GitHub Desktop.
const b = document.getElementsByClassName("nim-dialog--close _im_dialog_close");
for(let _b of b) {
_b.click()
}
const fTemp = document.getElementsByClassName("flat_button");
const f = [];
for(_f of fTemp) {
if(_f.innerHTML !="Удалить" && _f.innerHTML !="Выйти из беседы") {
console.log(_f)
} else {
f.push(_f)
}
}
let ml = 350;
for(let _b of f) {
setTimeout( () => { _b.click() },
ml
);
ml+=350;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment