Skip to content

Instantly share code, notes, and snippets.

@kristi
Created August 29, 2011 05:59
Show Gist options
  • Save kristi/1177853 to your computer and use it in GitHub Desktop.
Save kristi/1177853 to your computer and use it in GitHub Desktop.
Bookmarklet: See all Facebook group posts
javascript:(function(){var%20t=0;function%20moar(){var%20e=document.querySelectorAll(%22a.pam%22);if(e.length%3E0){e[0].onclick();var%20e=document.querySelectorAll(%22input.stat_elem%22);for(var%20i=0;i%3Ce.length;i=i+1){e[i].click();}}else{t=setInterval(expand,3000);}}function%20expand(){var%20e=document.querySelectorAll(%22input.stat_elem%22);for(var%20i=0;i%3Ce.length;i=i+1){e[i].click();}if(e.length==0){clearInterval(t);}}t=setInterval(moar,1500);})();
// Uncompressed code
// Compressed code created with
// http://chris.zarate.org/projects/bookmarkleter/
var t=0;
function moar() {
var e=document.querySelectorAll("a.pam");
if (e.length>0) {
e[0].onclick();
var e=document.querySelectorAll("input.stat_elem");
for(var i=0; i<e.length; i=i+1) {
e[i].click();
}
} else{
t=setInterval(expand,3000);
}
}
function expand() {
var e=document.querySelectorAll("input.stat_elem");
for(var i=0; i<e.length; i=i+1)
{
e[i].click();
}
if (e.length==0) {
clearInterval(t);
}
}
t=setInterval(moar,1500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment