Jump to content

On instagram.com, I am trying to unfollow 2500+ accounts, but clicking the button is getting very annoying. I wan't to use the browser's console to input a jquery command that will click all the "Unfollow" buttons for me, then scroll down, and do it again.

 

I have tried using:

$("button").click()

 

It returns "Undefined" and the only button on the webpage clicked is the "Change profile picture, remove current photo, ect" dialog that pops up.

 

I found this online:

//paste this first and press enter
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
jQuery.noConflict()

//paste this after the above code and press enter
window.setInterval(function(){
var x = 0;
$("button:contains('Following')").each(
function(){
if(x==3) return false;
$(this).trigger("click");
$('._4gt3b').scrollTop($('._4gt3b')[0].scrollHeight);
x++;
}
)
$('._4gt3b').scrollTop($('._4gt3b')[0].scrollHeight); console.log('loop');
}, 60000);

 

All it does is scroll down the page every minute, and return this:

Capture.PNG

 

Never actually unfollowing any accounts.

 

Computers r fun

Link to comment
https://linustechtips.com/topic/704789-click-buttons-from-browser-console/
Share on other sites

Link to post
Share on other sites

How have you followed 2500+ accounts in the first place damn...

i5 12600k | ASRock Z690M-ITX 32GB Corsair Vengeance LPX DDR4 3200MHz | EVGA 2080 Super Black | Samsung 970 EVO Plus 500GB + 980 1TB | Corsair RMx 650W | Thermaltake Tower 100 White

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×