I won’t sit here and proclaim myself to be some god of Grease Monkey but I do know a thing or two about Java Script. Basically, for those of you who are clueless as to what Grease Monkey is, it’s a plugin for Firefox that allows you to manipulate certain pages you visit using Java Script. Now that we know what it is and have tons of ideas flowing through our heads, let’s just do something kinda cool.
Today we’re going to beat up on certain gallery pages that use images of the format “imageName.sized.jpg”. What I mean by this is – we’re going to take the page (which is usually filled with junk) and replace everything with just the full size image and the caption.
Let’s get some assumptions out of the way:
You know SOME Java Script, the site you’re visiting also has the non-sized images in the same directory as the sized images, and you don’t care what else is on the web page. We’re also assuming there is only one caption with no “id” and we only have a style class to work with.
Ok? Ok. Let’s go.