Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marschr/fe80c79218fbbca014d0a6ddf729eb85 to your computer and use it in GitHub Desktop.
Save marschr/fe80c79218fbbca014d0a6ddf729eb85 to your computer and use it in GitHub Desktop.
let els;
function set_els (els_class) {
els = Array.prototype.slice.call(document.getElementsByClassName(els_class));
}
function click_els (els) {
for (var i = els.length - 1; i >= 0; i--) {
els[i].click();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment