K-Meleon
KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > Open Image Links
Submitted by: jsnj
Notes:
Copy the text highlighted in gray.
open_image_links{ menu=Open Linked Images open("javascript:{var hrefs=document.getElementsByTagName('A'),images='';for(idx=0;idx<hrefs.length;idx++){href=hrefs[idx].href.toUpperCase(); if(href.indexOf('.GIF')>-1||href.indexOf('.BMP')>-1||href.indexOf('.JPEG')>-1||href.indexOf('.JPG')>-1||href.indexOf('.PNG')>-1)images+='<img src='+hrefs[idx]+'>
';}images='<html><body><center><h2>Images</h2>
'+images+'</center></body></html>';document.write(images);document.close();}"); }
Within the sections: DocumentPopup, DocumentImagePopup, FrameDocumentPopup & FrameDocumentImagePopup
macros(open_image_links)