Last active
March 29, 2016 17:04
-
-
Save vshivam/7b1c242a02342f33d06bb38ddc4f53bd to your computer and use it in GitHub Desktop.
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
function unfollow(){ | |
var tag = $('a[action_click="UserUnfollow"]')[0]; | |
console.log(tag); | |
if(typeof tag !== 'undefined') { | |
tag.click(); | |
} else { | |
clearInterval(counter); | |
} | |
} | |
var counter = setInterval(unfollow, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment