Skip to content

Instantly share code, notes, and snippets.

@khanhicetea
Last active December 11, 2017 12:48
Show Gist options
  • Save khanhicetea/78d3900b93ccf71da17f to your computer and use it in GitHub Desktop.
Save khanhicetea/78d3900b93ccf71da17f to your computer and use it in GitHub Desktop.
Unlike all fanpages on Facebook
  1. Go to FB Wall > View Activity Log > Likes > Pages and Interests
  2. Scroll to the end of log (more log more pages could be unliked)
  3. Open Console (F12 > Tab Console)
  4. Paste this code to console and Enter.
var links = $$('._42ft._42fu._4-s1._2agf._p._42gx');
var i = 0;

unlike_all = function () {
  links[i].click();
  setTimeout(function() {
    var ul = $$('a._54nc');
    for (var j = 0; j < ul.length; j++) {
      if (ul[j].getAttribute('ajaxify').indexOf('remove_content.php?action=unfan_fbpage') > 0) {
        ul[j].click();
      }
    }
  }, 500);
  i++;
}
setInterval(unlike_all, 2000);

Enjoy automatic robot ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment