Name: Anonymous 2006-12-09 10:46
Try this on an /s/ thread.
For extra points, make it a bookmark and use wisely.
javascript:(function(){function I(u){var t=u.split('.'), e=t[t.length-1].toLowerCase();return {gif:1,jpg:1,jpeg:1,png:1,mng:1}[e]}function hE(s){return s.replace(/&/g,'&').replace(/>/g,'>').replace(/</g,'<').replace(/%22/g,'"');}function notcontains(arr, url ){var i;for( i=0; i<arr.length; i++ ){if( arr[i] == url )return 0;}return 1;}var q,h,i,z=open().document;var a = new Array();z.write('<p>Images linked to by <a href="'+hE(location.href)+'">'+hE(location.href)+'</a>:</p><hr>');for (i=0; q=document.links[i]; ++i){h=q.href;if(h&&I(h)&& notcontains(a,h)){z.write('<p><img src=%22'+hE(h)+'%22>');a.push(h);}}z.close();})()
For extra points, make it a bookmark and use wisely.
javascript:(function(){function I(u){var t=u.split('.'), e=t[t.length-1].toLowerCase();return {gif:1,jpg:1,jpeg:1,png:1,mng:1}[e]}function hE(s){return s.replace(/&/g,'&').replace(/>/g,'>').replace(/</g,'<').replace(/%22/g,'"');}function notcontains(arr, url ){var i;for( i=0; i<arr.length; i++ ){if( arr[i] == url )return 0;}return 1;}var q,h,i,z=open().document;var a = new Array();z.write('<p>Images linked to by <a href="'+hE(location.href)+'">'+hE(location.href)+'</a>:</p><hr>');for (i=0; q=document.links[i]; ++i){h=q.href;if(h&&I(h)&& notcontains(a,h)){z.write('<p><img src=%22'+hE(h)+'%22>');a.push(h);}}z.close();})()