Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laocoi/c63e98a84bfd7ff47ce05fe4a69d0c61 to your computer and use it in GitHub Desktop.
Save laocoi/c63e98a84bfd7ff47ce05fe4a69d0c61 to your computer and use it in GitHub Desktop.

How to use

  • Open the facebook post URL
  • Click to show all people like this post
  • Open Developer tool on chrome (Press Shift + Ctrl + I)
  • Choose tab Console, paste below code and press Enter
var layiduser = document.querySelectorAll("a._42ft._4jy0._4jy3._517h._51sy");
for (var i = 0; i < layiduser.length; i++) {
  (function(i){
    window.setTimeout(function(){
	layiduser[i].click();
	console.log('Thành công ' + i + ' Người đã invite');      
    }, i * 1000);
  }(i));
}
var layiduser = document.querySelectorAll("a._42ft._4jy0._4jy3._517h._51sy");
for (var i = 0; i < layiduser.length; i++) {
(function(i){
window.setTimeout(function(){
layiduser[i].click();
console.log('Thành công ' + i + ' Người đã invite');
}, i * 1000);
}(i));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment