Created
June 17, 2019 15:58
-
-
Save marschr/fe80c79218fbbca014d0a6ddf729eb85 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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