Console Coding [ Facebook ex: JS ]



Auto Like with auto-scroll ready code




document.getElementsByClassName("hasLeftCol _2yq")[0].onscroll = function() {
    var unlikePosts = document.getElementsByClassName('_6rk2 img');
    var unlikePosts_length = unlikePosts.length
//     console.log(unlikePosts_length);
    if(unlikePosts_length > 5){
        document.getElementsByClassName('_6rk2 img')[0].click();
        console.log("Liked");
    }
};
setInterval(function(){
//     console.log("Auto Scrolling.");
    window.scrollBy(0,50); 
}, 10)






document.getElementsByClassName("hasLeftCol _2yq")[0].onscroll = function() {
    var unlikePosts = document.getElementsByClassName('_6rk2 img');
    var unlikePosts_length = unlikePosts.length
    console.log(unlikePosts_length);
    if(unlikePosts_length > 5){
        document.getElementsByClassName('_6rk2 img')[0].click();
        console.log("Liked");
    }
};
setInterval(function(){
    console.log("Auto Scrolling.");
    window.scrollBy(0,5); 
}, 10)




for Facebook timeline's post auto like:
Code:


document.getElementsByClassName('_6rk2 img sp_ddXiTdIB8vm_1_5x sx_383372')[0].click();


Loop:
for(i=0;i<20;i++){document.getElementsByClassName('_6rk2 img sp_ddXiTdIB8vm_1_5x sx_383372')[0].click();}


Detect Facebook Body Scrolling:
document.getElementsByClassName("hasLeftCol _2yq")[0].onscroll = function() {console.log("scroll")};

Count of unlike posts:
document.getElementsByClassName("hasLeftCol _2yq")[0].onscroll = function() {console.log(document.getElementsByClassName('_6rk2 img sp_ddXiTdIB8vm_1_5x sx_383372').length)};
😈😈😈😈😈😈😈😈😈😈😈😈😈😈😈😈

Ready Code:- just copy-paste the code to the console and run then just scroll :D 


document.getElementsByClassName("hasLeftCol _2yq")[0].onscroll = function() {
    var unlikePosts = document.getElementsByClassName('_6rk2 img sp_ddXiTdIB8vm_1_5x sx_383372');
    var unlikePosts_length = unlikePosts.length
    console.log(unlikePosts_length);
    if(unlikePosts_length > 5){
        document.getElementsByClassName('_6rk2 img sp_ddXiTdIB8vm_1_5x sx_383372')[0].click();
    }
};

For Any Friends timeline:

document.getElementsByClassName("hasLeftCol _2yq")[0].onscroll = function() {
    var unlikePosts = document.getElementsByClassName('_6rk2 img sp_ddXiTdIB8vm_1_5x sx_383372');
    var unlikePosts_length = unlikePosts.length
    console.log(unlikePosts_length);
    if(unlikePosts_length > 5){
        document.getElementsByClassName('_6rk2 img sp_ddXiTdIB8vm_1_5x sx_383372')[0].click();
        console.log("Liked");
        
    }
};



Linkdin 

el = document.getElementsByClassName('artdeco-button__text react-button__text');
el_like = document.getElementsByClassName("artdeco-button__text react-button__text react-button__text--like");

for(i=0;i<=10;i++){
if(!el[i].classList.contains('react-button__text--like')){
   
        el[i].click();
        console.log("like");

}

}


Instagram:

var scroll;
var liked = 0;
document.body.classList.add("x");
document.getElementsByClassName("x")[0].onscroll = function() {
for(i=0;i<=100;i++){
var  obj = document.getElementsByClassName("_8-yf5 ")[i];
    if(obj.getAttribute("aria-label") == "Like"){
    obj.parentElement.click();
console.log(liked);
liked++;
        if(liked> 50){
        clearInterval(scroll);
            console.log("done liking !");
        }
}
}
    
};
scroll = setInterval(function(){
//     console.log("Auto Scrolling.");
    window.scrollBy(0,100); 
}, 20)


var scroll;
var liked = 0;
document.body.classList.add("x");
document.getElementsByClassName("x")[0].onscroll = function() {
for(i=0;i<=100;i++){
var  obj = document.getElementsByClassName("_8-yf5 ")[i];
    if(obj.getAttribute("aria-label") == "Like" && obj.getAttribute("height") == 24){
    obj.parentElement.click();
console.log(liked);
liked++;
        if(liked> 50){
        clearInterval(scroll);
            console.log("done liking !");
        }
}
}
    
};
scroll = setInterval(function(){
//     console.log("Auto Scrolling.");
    window.scrollBy(0,100); 
}, 20)





মন্তব্যসমূহ

এই ব্লগটি থেকে জনপ্রিয় পোস্টগুলি

SEO [Search Engine Optimization ] (সার্চ ইঞ্জিন অপ্টিমাইজেশান)

Web Scraping With PHP