Skip to content

Instantly share code, notes, and snippets.

@B0yma
Last active August 18, 2020 18:32
Show Gist options
  • Save B0yma/e4f2d7ba127048906ba4796b1fcffb2a to your computer and use it in GitHub Desktop.
Save B0yma/e4f2d7ba127048906ba4796b1fcffb2a to your computer and use it in GitHub Desktop.
YasivAddUserList
var items = [
'567',
'2346'
];
var i = 0;
function myLoop() {
setTimeout(function() {
document.getElementById('pageAddress').value = items[i];
document.getElementById('add').click();
i++;
if (i < items.length) {
myLoop();
}
}, 3000)
}
myLoop();
-----------
document.getElementsByClassName("author").forEach(function(item, i, arr) {
console.log(item.getAttribute("href"))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment