This file contains 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
javascript: | |
function run(){ //function run wraps all the code into one run() function | |
var like = document.querySelector(".stats-label"); //select like button | |
var next = document.querySelector(".shot-nav-next"); //select next page | |
function simulateClick (elem) { //core of simulate click function | |
var evt = new MouseEvent('click', { | |
bubbles: true, | |
cancelable: true, |