Picasaweb Img Direct Links

By Markus_B Last update Jan 5, 2009 — Installed 711 times.

Small modification to show filenames

in
Subscribe to Small modification to show filenames 1 post, 1 voice

davidjroos User
Firefox

Hi there - thanks for writing this - saves me a ton of time.

To make it a bit ore useful, for me at least, I've written a quick modification to show the actual filenames for each link - helps me find the image I am after a little bit quicker.

I create a new variable after the link=link.substring(... line that takes the link and grabs the filename:

var imgTitle=link.substr(1+link.lastIndexOf("/"));

then when the new link element is created I use this variable rather than the generic 'direct link' + number:

a.appendChild(document.createTextNode(imgTitle));

Easy as :)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel