Instagram Hacked

Help, my Instagram account was hacked! I’m now following hundreds of accounts. On top of that, Instagram throttles unfollows, so I can’t unfollow them easily. This did the trick:

var gotOne = false;

var myFunc = function() {
try {
document.querySelectorAll('button._0mzm-').forEach(function(elem, index) {
if (elem.innerHTML == 'Following' && index > 9) {
console.log(index);
elem.click();
throw 'Halt';
}
});
} catch (e) {
gotOne = true;
}
};

var counter = 0;

var looper = setInterval(function() {
counter++;
console.log("Counter is: " + counter);
gotOne = false;
myFunc();
if (gotOne) {
console.log("Got One!");
}

if (counter >= 60) {
clearInterval(looper);
}

}, 60000 + Math.floor((Math.random() * 1000) + 1));

It’s a code snippet you can paste into your browser console that slowly clicks “unfollow” on your Instagram friend list. NOTE: It might not work forever as Instagram alters their markup. But it worked for me now!

Leave a Comment

Your email address will not be published. Required fields are marked *