Created
April 15, 2017 05:28
-
-
Save vanduc1102/d385fd401f8abdf804ec397238751440 to your computer and use it in GitHub Desktop.
facebook auto like, Open console with F12 and Paste the code.
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
var arr= Array.prototype.slice.call(document.querySelectorAll('.UFILikeLink')); | |
var index = 0; | |
setInterval(function(){ | |
var a = arr.shift(); | |
if(a.className.indexOf("UFILinkBright") < 0){ | |
console.log("like : ",++index); | |
a.click(); | |
} | |
if(arr.length == 0){ | |
document.querySelectorAll('a.UFIPagerLink')[0].click(); | |
console.log("finish a pack, loading another pack"); | |
arr= Array.prototype.slice.call(document.querySelectorAll('a.UFILikeLink')); | |
} | |
},1000); |
6JViSMeQ5HGU.js?_nc_x=lphY6DB8pg1&_nc_eui2=AeHHOuhB7kHSLi9wwINzlVj0mUtcAAodlB6ZS1wACh2UHro3Uba52s2z8C4Bfrqq9kyCj8FqxrgX8X3jTG7eRFXQ:58 ErrorUtils caught an error:
Cannot read properties of undefined (reading 'className')
Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is className modified for?