Skip to content

Instantly share code, notes, and snippets.

@vovka
Last active December 28, 2016 11:38
Show Gist options
  • Save vovka/6806363 to your computer and use it in GitHub Desktop.
Save vovka/6806363 to your computer and use it in GitHub Desktop.
VK auto liker
var h=document.getElementsByClassName('post_like_icon'),u=[],i;for(i=0;i<h.length;i++){if(!h[i].className.match('my_like'))u.push(h[i])};console.log('unliked amount '+u.length);i=-1;function l(){i++;if(i<u.length){u[i].click();console.log('liked'+u[i]);setTimeout(l,1000)}};l()
@rmuratov
Copy link

👍

Только вот это вот:

console.log('liked' + u[i]);

выводит не очень информативное сообщение (в хроме например):

liked[object HTMLElement]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment