Created
June 14, 2015 12:00
-
-
Save ibaaj/a3f121fb8432da37333b to your computer and use it in GitHub Desktop.
Unfollow all pages i've liked on facebook - Go to https://www.facebook.com/[YOURUSERNAME]/likes & Scroll down to show all pages & execute this script in the console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counter=0; var ids = []; | |
for(var i=0; i < document.getElementsByClassName('_42ft _4jy0 _5lzj _3spg _4jy3 _517h _51sy').length; i++){ | |
var d = document.getElementsByClassName('_42ft _4jy0 _5lzj _3spg _4jy3 _517h _51sy')[i]; | |
if(!/hidden_elem/g.test(d.className)){ | |
counter++; | |
ids.push(i); | |
} | |
} | |
console.log(counter); | |
var t = setInterval( function() { | |
if(ids.length==0) | |
clearInterval(t); | |
var s = ids.pop(); | |
document.getElementsByClassName('_42ft _4jy0 _5lzj _3spg _4jy3 _517h _51sy')[s].click(); | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment