Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Facebook All Images

Removes the multiple pages when viewing photos

The script places all images in an album or 'view more photos' section on one page so you don't need to flick through a bunch of pages.






Jul 29, 2008
Compass User

Any chance of a fix for new.facebook.com
It just shows one page of 20 photos and hides the pages, so you can't navigate through photos as usual

Thanks

 
Jun 4, 2008
nathaniel_hi... Scriptwright

I can't seem to get this to work. I'm using Greasekit if that matters. It just hides the pagination but shows the normal # of photos. Is there anything specific I need to do? Thanks for any help.

 
Apr 26, 2008
Bakahashi User

Back to its stalker greatness :] thanks very much. Combine this with "FB Album" and commence stalking! LOL, just kidding. Thanks once again.

 
Apr 26, 2008
Paul Giannaros Script's author

OK, fixed it. There was a silly bug in there.

 
Apr 26, 2008
Bakahashi User

It seems to have broke with the new Facebook layout.

 
Apr 25, 2008
Paul Giannaros Script's author

I've never actually seen these comments, so thanks to Cody Walker who -- in true stalkerish fashion -- found me on Facebook and got me to fix it. The updated version should work just fine now, regardless of number of photos or starting page.

Enjoy!

 
Apr 19, 2008
Bakahashi User

Goes great with FB Album, thanks!

 
Jan 28, 2008
Martin Sve User

// ==UserScript==
// @name Facebook All Images
// @description Shows all photos in an album on one page so you don't have to keep clicking through
// @author Paul Giannaros
// @version 1.0
// @include http://*.facebook.com/photo_search.php*
// @include http://*.facebook.com/album.php*
// ==/UserScript==

var pageLinks = document.getElementById("pag_nav_links");
if(pageLinks) {
var j = 0;
// remove the links to the multiple pages
while(document.getElementById("pag_nav_links")) {
var l = document.getElementById("pag_nav_links");
l.style.display = "none";
l.id = "hidden_pag_nav_links" + i++;
}
// and change the "Photos 1 - 20 out of N" to "N photos"
var photosHeader = document.getElementsByTagName("h4")[0];
var t = photosHeader.childNodes[0].nodeValue.split(/ /);
photosHeader.childNodes[0].nodeValue = (t[t.length - 1]) + " photos";

var listItems = pageLinks.getElementsByTagName("li");

var pages = ( t[t.length - 1].replace(/,/g,"") ) / 20;

if (pages > Math.floor(pages)) pages = Math.floor(pages) + 1;
else pages = Math.floor(pages);

for(var i = 2; i <= pages; ++i) {

var nextPageUrl = window.location.href + "&page=" + i;

GM_xmlhttpRequest({
method: "GET",
url: nextPageUrl,
onload: function(response) {
var s = response.responseText;
var albumStart = s.indexOf('id="album"');
var stuffWeWantStart = s.indexOf('<tr>', albumStart);
var stuffWeWantEnd = s.indexOf('', stuffWeWantStart);

var imagesMarkup = s.substring(stuffWeWantStart, stuffWeWantEnd);
var album = document.getElementById("album");
album.getElementsByTagName("table")[0].innerHTML += imagesMarkup;

}
});
}
}

An updated version of the script. Supports unlimited number of images (i think).</tr>

 
Dec 18, 2007
Cody Walker User

this would be AWESOME if it wasn't limited to 100 photos. Seems like you could get the info from every 5th page to open the next 5 pages until it ran out. No? or even if I could view 100 pics per page would be great too. Any ideas guys? I think the dev is gone for good, 7 months sense update.

 
Oct 23, 2007
ryguy1233 User

Can anyone get this script to work with the other scripts (fac3book, THICKfacebook, etc.)? I love this one and would love it to work perfectly!

 
Sep 29, 2007
cwacht User
Looking through the code, it seems that the limiting factor in the number of images is that facebook only shows links for the first 5 pages(5*20=100).
We just need to find a way to determine the actual number of pages.
 
Aug 16, 2007
Stew User

I really wish this could show more photos!

 
Jul 9, 2007
matthew balo... User

This is a great idea save for the lack of Greased Lightbox functionality and for group photo pools of 100+.

 
Jul 3, 2007
ryguy1233 User

I agree with all the rest. This is a great script. If I'm not mistaken, i had 124 on a single page... I only counted once, and real quick but still, there were more in the album. Again, just reiterating, Thickfacebook and InYoFac3book does not work in while i have this script active. I'm not complaining, i just figured the more requests, the better. Plus, I'm complimenting. :-)

 
Jun 25, 2007
brand dub User

this is a good script but its limited to viewing 100 pics in group folders and has no link to see the rest

A user photo album is limited to 60 but a group album has no limits that I've seen yet..

although this script is meant to defeat this purpose but this script could use a "next (page one/two/three) button after 100 iimages

 
Jun 20, 2007
Rich User

This script is great, but I use inYoFaceBook and GreasedLightBox... I really think you should develop this script as it is a great idea and you have most of the hard work done.

 
Jun 14, 2007
Stew User

I also notice the limited number of photos that show up. When looking at someone's photos and they have more than 100, I can't look at any more than 100. Maybe this is easily fixable.

 
Jun 5, 2007
Jeremy Cohen User

Well, I got it to do what I wanted it to intentionally at first, but it only worked once. I wanted to utilize this script with the view all photos in an album script so when I viewed a pic in an album from a person that I wasn't friends with I wouldn't have to view each one individually, instead I could view the entire photo album on one page. If you could somehow fix that it would be great.

 
May 24, 2007
Kieran User

Hi. Very useful script although I noticed that instead of showing all of the images it shows only up to 100.

Not really a huge problem, but if, for instance, I was browsing images of a person that had 450 images, chances are I wouldn't need to see more than the first 100, it's just the fact that the removal of the 'next page' links mean there's no easy way to see any more than the first 100.

Get me?

 
May 22, 2007
Grant Bivens User

This is a good idea and does what it says but it does render "InYoFacebookToo" image hover capabilities useless. I'm pretty fond of that script so ya...

-Grant

You could comment on this script if you were logged in.