; author: Karel Pavelka, http://www.webjob.wz.cz/pspad/ [JSTools] CSS on/off (IE&&MZ)=javascript:var%20i=0;if(document.styleSheets.length>0){cs=!document.styleSheets[0].disabled;for(i=0;i0){(function(){function%20to(c){var%20a,k;a=new%20Array;for(k=0;k"+(j==3?"third-party%20"+t:t)+"";N.parentNode.replaceChild(b,N);}}}catch(E){r=0}return%20r}R(self);var%20i,x;for(i=0;x=frames[i];++i)R(x)})() Linearize - Remove Tables (IE&&MZ)=javascript:(function(){var%20H=[],Y={TABLE:1,TR:1,TD:1,TH:1,CAPTION:1,DIV:1},d=[],p;%20function%20R(N){var%20a,x,i,t;%20if(t=N.tagName){%20t=t.toUpperCase();%20for%20(i=0;a=H[i];++i)if(N.getAttribute(a))N.removeAttribute(a);%20for(i=0;x=N.childNodes[i];++i)R(x);%20if%20(Y[t])d.push(N);%20}%20}%20R(document.documentElement);%20for%20(i=0;N=d[i];++i)%20{%20p=N.parentNode;%20while(N.firstChild)p.insertBefore(N.firstChild,N);%20p.removeChild(N);%20}%20})() -=- Show Style Sheet (IE)=javascript:var%20a=document.styleSheets;var%20s='

Style%20sheet%20info%20for%20'+location.href+'

';for%20(i=0;iStyle%20Sheet%20'+(i+1)+':%20'+ss.href+'';s+='

Media:%20'+ss.media;s+='%20|%20Title:%20'+ss.title+'

';s+='

Rules:

'+ss.cssText;s+='
';}var%20a=s.split('\n');s=a.join('');s=s.toLowerCase()+'';var%20cw=window.open('',%20'cw',%20'');cw.document.open();cw.document.write(s);cw.document.close(); View Partial Source (IE)=javascript:q=(document.frames.length?'':document.selection.createRange().htmlText);for(i=0;i/gi,'>').replace(/\n/gi,'
\n'));var%20m=window.open('',%20'm','');m.document.open();m.document.write('

Selection

'+t+'

Source%20Code

'+s+'');m.document.close() View Generated Source (IE)=javascript:(function(){%20function%20htmlEscape(s){s=s.replace(/&/g,'&');s=s.replace(/>/g,'>');s=s.replace(/'%20+%20htmlEscape('\n'%20+%20document.documentElement.innerHTML%20+%20'\n'));%20x.document.close();%20})(); Save as HTML (IE)=javascript:if(document.all)%7Bvoid(document.execCommand("SaveAs"))%7Delse%7Balert('Only%20for%20MSIE%204+');%7D -=- Show DIVs (IE&&MZ)=javascript:if(frames.length>1)alert('This%20bookmarklet%20does%20not%20work%20with%20frames.');else%20var%20t=document.getElementsByTagName('div');if(t.length=='')alert('No%20Div%20elements');else%20for(i=0;i'+b+'

'+h);void(t[i].style.border='1px%20dashed%20red');} Table Cell Order (IE&&MZ)=javascript:var%20b=0;t=document.getElementsByTagName('*');{for(i=0;i'+b+''+h);void(t[i].style.border='1px%20dashed%20red');}}}if(b==0)alert('No%20th%20or%20td%20Elements%20Used'); Show Images (IE)=javascript:var%20z=0,tag=new%20Array('img');for(n=0;nNoAlt!'}h=t[i].outerHTML;void(t[i].outerHTML='<'+tag[n]+'%20'+l+'>%20'+h);void(t[i].style.padding='3px',t[i].style.border='1px%20solid%20red');if(h!='')void(z=z+1);}}}if(z==0)alert('No%20Images'); AccessKeys=javascript:var%20z=0,tag=new%20Array('a','input','textarea','object','button','select','applet','embed');for(n=0;n""){void(t[i].outerHTML='%20Accesskey%20('+t[i].accessKey+')%20%20'+h);if(h!='')z=z+1;}}}if(z==0)alert('No%20Accesskey%20Attributes%20Found'); Frame Borders =javascript:var%20theEls=document.getElementsByTagName('frame');if(theEls.length==0){alert('No%20Frames%20Found')}else{for(i=0;i%3CtheEls.length;i++)%7Bvoid(theEls%5Bi%5D.style.border='dashed%203px%20#dc143c');void(theEls%5Bi%5D.style.margin='5px')%7D} Show Other Element(s) (IE&&MZ)=javascript:void(elName=prompt('Which%20elements?%20input,%20p,%20span%20...',''));void(brdrClr=prompt('What%20color?%20green,%20black,%20white...','red'));if(elName){theEls=document.getElementsByTagName(elName);if(theEls.length!=0){for(i=0;i%3ctheEls.length;i++){void(theEls[i].style.border='solid%202px%20red');void(theEls[i].style.borderColor=brdrClr)}}else{alert('no%20'+elName+'%20elements%20%20found')}} -=- Link List (IE)=javascript:var%20l=document.links.length;var%20s='';for%20(i=0;i';s+=''%20+%20lk.innerHTML%20+%20' ';s+=''%20+%20lk.title%20+%20' ';s+=''%20+%20lk.href%20+%20'';s+='';}s='Links%20for:%20'+document.location.href+'TextTitleURL'+s+'';var%20lw=window.open('',%20'lw',%20'');lw.document.open();lw.document.write(s);lw.document.close(); Frame Name/Title =javascript:var%20tag='frame';t=document.getElementsByTagName(tag);if(t.length==0){alert('No%20Frame%20Elements%20Found');}else{var%20s='';s='
    ';for(i=0;i'+tag+'-'+(i+1)+'
      %20
    • %20Name%20('+t[i].name+')
    • %20
    • Title%20('+t[i].title+')
    • %20
    • Src%20('+t[i].src+')
    ');}s+='
';var%20lw=window.open('','lw','');lw.document.open();lw.document.write(s);lw.document.close();} List Frames =javascript:(function(){var%20s='';function%20getF(w,lvl){try{if(lvl>0){s+='
  • ';if(w.name!='')s+=''+w.name+'
    \n';}else{s+=''+w.document.title+'
    \n';}s+=''+w.location.href+'\n';for(var%20i=0;F=w.frames[i];i++){getF(F,++lvl);}if(lvl>0)s+='
\n';}catch(e){s+='(IFRAME%20or%20cross-domain)\n';}}if(!frames.length)alert('No%20frames.');else{getF(window,0);w=open();w.document.write(s);w.document.close();}})() -=- Metadata information (IE)=javascript:var%20s='';var%20mt=document.getElementsByTagName('meta');for(i=0;i';s=s+''+mt[i].name+' ';s=s+''+mt[i].content+'';s=s+''+mt[i].httpEquiv+' ';s=s+'';}s='URL%20'+document.location.href+'

NameContentHttpEquiv'+s+'';var%20m=window.open('','m','');m.document.open();m.document.write(s);m.document.close(); Colours used (IE)=javascript:void(S=document.body.innerHTML.replace(/href="[^"]*"/g,'').replace(/&#[0-9]{3,6};/g,''),sS=document.styleSheets,w='',L=new%20Array());for(i=0;i '+K[k]+''}}void(window.open().document.write(w));}else{void(alert('No%20colors%20found.'))} -=- Greyscale (IE)=javascript:if(document.all)%7Bdocument.body.style.filter='gray()';void(null);%7Delse%7Balert('Only%20for%20MSIE%204+');%7D Negative (IE)=javascript:if(document.all)%0D%0A%7B%0D%0A%20%20document.body.style.filter='Xray()';%0D%0A%20%20void(null);%0D%0A%7D%0D%0Aelse%0D%0A%7B%0D%0A%20%20alert('Only%20for%20MSIE%204+');%0D%0A%7D Magnify 200% (IE)=javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)+100)+'%');}else%20s.setAttribute('zoom','200%'); Magnify 400% (IE)=javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)+100)+'%');}else%20s.setAttribute('zoom','400%'); Cataracts (IE)=javascript:if(document.all)%7Bdocument.body.style.filter='blur(PixelRadius=3,MakeShadow=false)';void(null);%7Delse%7Balert('Only%20for%20MSIE%204+');%7D -=- Encode E-mail=javascript:void(e=prompt('E-mail%20address',''));if(e)%7B%20var%20l=e.length;var%20c='';var%20c2='';var%20u='';for(var%20i=0;i%3Cl;i++)%7B%20c=e.charCodeAt(i);c2%20+='&#'+%20c.toString()%20+';';u+='%25'+c.toString(16);%7Dvar%20a='<a%20href=%22&#109;&#97;&#105;&#108;&#116;&#111;&#58;'+u+'%22%3E'+c2%20+'</a>';var%20r=window.open('',%20'r',%20'');r.document.open();r.document.write(a);r.document.close();%7D [WindowSize] IE 640x480=620x305 IE 800x600=780x448 IE 1024x768=1004x606 360x640=360x640 480x640=480x640 600x800=600x800 768x1024=768x1024 800x1280=800x1280 980x1280=980x1280 1290x600=1200x600 1920x900=1920x900