Last active
December 10, 2015 18:38
-
-
Save creotiv/4475510 to your computer and use it in GitHub Desktop.
Pinterest friends adder and liker
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 urls = $('.convo .ImgLink'); | |
urls = $.makeArray(urls); | |
setTimeout(follow,300); | |
function follow() { | |
var a = urls.pop(); | |
if(!a) return; | |
var h = a.href; | |
if(h!='http://pinterest.com/30artworks/') { | |
$.ajax({url:h+'follow/',type:'POST'}); | |
console.log(h); | |
setTimeout(follow,300); | |
return; | |
} | |
follow(); | |
} | |
likebutton | |
//------------------------------------------------------------------------ | |
var likes = $('.likebutton'); | |
likes = $.makeArray(likes); | |
setTimeout(like,300); | |
function like() { | |
var a = likes.pop(); | |
if(!a) return; | |
var h = $(a).data('id');; | |
$.ajax({url:'http://pinterest.com/pin/'+h+'/like/',type:'POST'}); | |
console.log(h); | |
setTimeout(like,300); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment