K-Meleon
KMeleonWiki > Resources > MacroLibrary > 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=hrefsidx?.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='+hrefsidx?+'>
';}images='<html><body><center>'+images+'</center></body></html>';document.write(images);}"); }
Within the sections: DocumentPopup, DocumentImagePopup, FrameDocumentPopup & FrameDocumentImagePopup
macros(open_image_links)