$ wget http://malfela.blogspot.com | RSS: Main

Friday 9 November 2007

Edit sites to your will...

...by typing this into your address bar: javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

8 comments:

TheguywholikeselectronicsandLinux said...

it is a bookmarklet thingy,
if you do it and add it to bookmarks then you only have to click it! But it has to be on one line, use ";" to separate stuff and use ' instead of " otherwise it ends the bookmark to soon! (it is in " behind the scenes) and it will only keep the changes if you don't erase your cache.

TheguywholikeselectronicsandLinux said...

it works grate on the blog because of its custom drag and drop tags!

Colonel Panic said...

Me and mal have it bookmarked already. There's also one that swirls around all the images in a web page in a rly cool animation, but I can't remember the code (mal has it)

TheguywholikeselectronicsandLinux said...

there is one that makes all the images appear in a nice table with all the details alts and urls etc.

I could tell you if you like?

Colonel Panic said...

YE TELL ME!!! sorry for flaming but that sounds wicked.

Malachy said...

javascript:var imgWin,i,outText='',di=document.images;for (i=0;i<di.length;i++){if(outText.indexOf(di[i].src)<0){outText+='<tr><td><img src='+di[i].src+' /></td><td>'+di[i].height+'</td><td>'+di[i].width+'</td><td>'+di[i].src+'</td></tr>'}};if(outText==''){alert('No images!');}else{imgWin=window.open('','IW','width=800,height=600,scrollbars=yes');void(imgWin.document.body.innerHTML='<table border=1 cellpadding=10><tr><th>Image</th><th>Height</th><th>Width</th><th>URL</th></tr>'+outText+'</table>');}

Malachy said...

oh and here's the code for ImageSwirl:

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5 ); void(0)

TheguywholikeselectronicsandLinux said...

I can give you a whole list of them if you would like (when i have the time)