Script for Image Gallery

38 views
Skip to first unread message

Richard

unread,
Feb 1, 2012, 2:32:33 PM2/1/12
to greasemon...@googlegroups.com
Hello,
I often visit a site with a click-thru (next/previous image etc.)
gallery, which I find quite tedious. So I made myself a custom html
(saved on my desktop), to see all images in just one page.
For example the gallery URL is:
www.example.com/1234567890/galleryname/
my html looks like this (I'm a html noob):
<code>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>example.com pics</title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<div id="photo"><img
src="http://static.example.com/content/1234567890/1.jpg"></div>
<div id="photo"><img
src="http://static.example.com/content/1234567890/2.jpg"></div>
<div id="photo"><img
src="http://static.example.com/content/1234567890/3.jpg"></div>
...
..
.
</body>
</html>
</code>

In this html I change then manually (via replace all) the gallery
number to the appropriate number. Even tho this is much faster than
the click-thru, it gets also annoying after some time, so I was
wondering if this could also be done with a userscript? (and how?)

Thanks
Tom

PS:
I posted this also on the forum (http://userscripts.org/topics/97420).

Reply all
Reply to author
Forward
0 new messages