Skip to content

Instantly share code, notes, and snippets.

Avatar
👕
Trying to settle with the new normal.

Ghazi Khan mgks

👕
Trying to settle with the new normal.
View GitHub Profile
@mgks
mgks / facebook_unliker.js
Created May 18, 2019
Auto Unlike Facebook Pages with JavaScript
View facebook_unliker.js
//First select all Liked buttons
var buttons = document.getElementsByClassName('PageLikedButton');
//Launch pop for Liked button
for(let button of buttons){
button.click();
};
//Select Unlike button parent to prevent timeline button clicks
var unlikes = document.getElementsByClassName('InterestListMenuDisconnect');
You can’t perform that action at this time.