Last active
August 29, 2015 14:05
-
-
Save DanBUK/558ed611276cbc6b01d7 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
var unfav = document.getElementsByClassName('with-icn unfavorite js-tooltip')[0]; | |
var fav = document.getElementsByClassName('with-icn favorite js-tooltip')[0]; | |
var count = 0; | |
var max_count = 100; | |
var timInterval = setInterval(function () { | |
fav.click(); | |
setTimeout(function () { | |
unfav.click(); | |
count++; | |
if (count == max_count) clearInterval(timInterval); | |
}, 1000); | |
}, 2500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment