Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ENTERPRISE LINKED IMAGES BOOKMARKLET V2

Name: Anonymous 2009-12-16 0:52

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,'&amp;').replace(/>/g,'&gt;').replace(/</g,'&lt;').replace(/"/g,'&quot;');}function U(a){var r=[];o:for(var i=0,n=a.length;i<n;i++){for(var x=0,y=r.length;x<y;x++){if(r[x][0]==a[i][0])continue o;}r[r.length]=a[i];}return r;}var q,h,i,z=open().document;var a=[];z.write('<style type="text/css">img{max-width:100%}</style>'/*+'<p>Images linked to by '+hE(location.href)+':</p><hr>'*/);for(i=0;q=document.links[i];++i){h=q.href;if(h&&I(h))a.push([hE(h),q.innerHTML]);}a=U(a);for(i=0;q=a[i];++i){z.write('<p>'/*+q[1] --dangerous innerhtml-- +' ('+q[0]+')<br>'*/+'<img src="'+q[0]+'">');}z.close();})()

Derived from https://www.squarefree.com/bookmarklets/ - optimal for imageboards, shows all images in a rather comfortable fashion (no duplicates, big images are clamped to viewport width). There's some optional code commented out, default configuration is mostly minimal. Should work in all modern browsers.

Name: Anonymous 2009-12-17 15:38

>>18
There's no pat in my post you idiot

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List