Last active
August 25, 2017 12:07
-
-
Save dr-dimitru/ace4a2b264c863b4fef1 to your computer and use it in GitHub Desktop.
Like all posts on page at vk.com
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
// Better to execute this in Google Chrome | |
// 0. Go to vk.com on page where you would like to like all posts | |
// 1. Right click on any place of page | |
// 2. Inspect Element | |
// 3. In opened panel - choose "console" tab | |
// 4. Copy-paste code you se below and hit "Enter" key | |
(function(){ | |
var newscript = document.createElement('script'); | |
newscript.type = 'text/javascript'; | |
newscript.async = true; | |
newscript.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'; | |
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript); | |
})(); | |
$('.post_like_icon').each(function(){ | |
if(!$(this).hasClass('my_like')){ | |
$(this).click(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment