Last active
April 15, 2020 06:58
-
-
Save JulienHe/ccacaa19ec8a120787401630db570372 to your computer and use it in GitHub Desktop.
IG Followers
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
function eventFire(el, etype){ | |
if (el.fireEvent) { | |
el.fireEvent('on' + etype); | |
} else { | |
var evObj = document.createEvent('Events'); | |
evObj.initEvent(etype, true, false); | |
el.dispatchEvent(evObj); | |
} | |
} | |
setInterval(function(){eventFire(document.getElementById('click'), 'click');}, 800); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment