User:JesseW/BookmarkletsUniversal

This is an old revision of this page, as edited by JesseW (talk | contribs) at 23:40, 6 May 2005 (Bookmarklets: adding donotgo's page(will add names later)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

While there are a lot of good bookmarklets out there, they are seperated onto many different sites, typically by creator. I want to remedy this, by listing all the bookmkarklets that I can find in one place, here. You are welcome to help(this is a wiki, after all.)

I'm going to start by listing all the bookmarklet containing sites that I can find, in the list below. Then I'll copy each of their bookmarklets below. I won't use line divisions, to make copying easier, which will unfortunetly make the page horribly wide. If anyone has a better idea how to handle this, I'd love to hear it. JesseW 03:08, 4 Dec 2004 (UTC)

Note The problem of bookmarklet windows being behind main windows in Mozilla has been solved. It currently requires a few small tweaks. See https://bugzilla.mozilla.org/show_bug.cgi?id=232605 for details. YAY!! JesseW 21:56, 10 Dec 2004 (UTC)

One nice tip I found (on gazingus.org) was regarding calling the bookmarklet from within itself, for various recursive purposes. This can be handled by the form: arguments.callee, which refers to the function being called.

Bookmarklet sites

Many bookmarklets

(above, quotes are from [1])

(above descriptions are from [2]

One (or so) bookmarklets

IE only

  1. http://www.trylookinghere.com/bookmarklets/bookmarkletintro.htm - "IE Win and IE Mac. Some bookmarklets are taken from other sites and lack attribution."

(quotes are from [3])

Bookmarklets

Gazingus.org

Scribbling.net

The ly detector

javascript:function hl(node,word,re){if(node.hasChildNodes) {var hi_cn;for (hi_cn=0;hi_cn<node.childNodes.length;hi_cn++) {hl(node.childNodes[hi_cn],word,re);}}if (node.nodeType == 3) { tempNodeVal = node.nodeValue.toLowerCase();tempWordVal = word.toLowerCase();if (re.test(tempNodeVal)) {pn = node.parentNode;if (pn.className != word) {nv = node.nodeValue;ni = tempNodeVal.indexOf(tempWordVal);before = document.createTextNode(nv.substr(0,ni));docWordVal = nv.substr(ni,word.length);after = document.createTextNode(nv.substr(ni+word.length));hiwordtext = document.createTextNode(docWordVal);hiword = document.createElement('span');hiword.className=word;hiword.style['backgroundColor']='yellow';hiword.appendChild(hiwordtext);pn.insertBefore(before,node);pn.insertBefore(hiword,node);pn.insertBefore(after,node);pn.removeChild(node);}}}}var lyRE=/(\w)(ly)(\b)/gim;hl(document.getElementsByTagName('body')[0],'ly',lyRE);

Description
A bookmarklet ... which will highlight all the words on a web page which end in -ly.
From
http://www.scribbling.net/the_ly_detector

javascript:var total = 0;var internal = 0;var external = 0;for (i=0;i<document.links.length;i++) {if (document.links[i].protocol=='http:'){if ( document.links[i].hostname == document.___domain)internal++;else {external++;}total++;}}var pctInternal = Math.round((internal*100)/total);var pctExternal = 100-pctInternal;alert(document.___location+'\nTotal document links: '+total+'\n'+pctInternal+'% internal links \n'+pctExternal + '% external links');

Description
Shows stats for # of links, % external, and % internal.
From
http://scribbling.net/analyze-web-page-links

Ftrain.com

The Passivator

javascript:var verbsRE=/(\b)(i\'m|it\'s|he\'s|here\'s|she\'s|that\'s|there\'s|they\'re|we\'re|what\'s|who\'s|you\'re|is|are|am|are|was|were|be|being|been|go)(\b)/gi;var lyRE=/(\w)(ly)(\b)/gim;function HL(node){if(node.hasChildNodes){var hi_cn;for(hi_cn=0;hi_cn<node.childNodes.length;hi_cn++){HL(node.childNodes[hi_cn]);}}if(node.nodeType==3){var tempNodeVal=node.nodeValue;if(verbsRE.test(tempNodeVal)){tempNodeVal=tempNodeVal.replace(verbsRE,"$1<span style='background-color:yellow;color:black;border:1px solid black;'>$2</span>$3");tempNodeVal=tempNodeVal.replace(lyRE,"$1<span style='background-color:#0ff;color:black;border:1px solid black;'>$2</span>$3");newNode=document.createElement('span');newNode.innerHTML=tempNodeVal;pn=node.parentNode;pn.replaceChild(newNode,node);}}}HL(window.document.getElementsByTagName('body')[0]);

Description
"A passive verb and adverb flagger for Mozilla-derived browsers, Safari, and Opera 7.5, with caveats." (quoted from source, see page for caveats and more details.)
From
http://www.ftrain.com/ThePassivator.html

Kryogenix.org

Tantek.com

Authoring

Multivalidator: HTML, CSS & HREFs all in one. - validate pages
Multivalidator

javascript:if (0) void('Multivalidator script (c)2002 Tantek Celik - last modified 2002.03.15');var p27=String.fromCharCode(37)+'27',d=document.___location,ft='%3Cframe ',fs=ft+'src=',fe='\' scrolling=\'auto\'>',fc=ft+'style=\'border:2px solid #ff0\' src=\'http://',fm='%3C/frameset>';var h=fs+'\'javascript:document.write('+p27+'%3C!DOCTYPE%20HTML%20PUBLIC%20%22-//W3C//DTD%20HTML%204.0//EN%22%3E%3Cbody%20style%3D%22margin:0;padding:2px%206px%22%3E';var h1='%3Ch1%20style%3D%22display:inline;font-size:18px;margin:0;%22%3E';var e='%3E%3C/body%3E'+p27+')\' scrolling=\'no\' noresize>';var q=String.fromCharCode(34);var r='%20results',v='%20validator'+r,w='validator.w3.org/check';var ds='%3C!DOCTYPE HTML PUBLIC '+q+'-//W3C//DTD HTML 4.0 Frameset//EN'+q+'>%3Chtml>%3Chead>%3Ctitle>Multivalidator%3C/title>%3C/head>%3Cframeset cols=\'50%,50%\'>%3Cframeset rows=\'24,*\'>';ds+=h+'%3Cdiv%3E'+h1+'Page:%3C/h1%3E'+d+'%3C/div'+e;e='%3C/h1'+e;h+='%3Ch1%20style%3D%22display:inline;font-size:18px;margin:0;%22%3E';ds+=h+'%3Cscript>document.___location=%22'+d+'%22%3C/script>'+e+fm+'%3Cframeset rows=\'24,*,24,*,24,*\'>';ds+=h+'HTML'+v+'%3Ca%20title%3D%22Refresh%20to%20remultivalidate.%20Click%20for%20more%20info%20on%20favelets.%20-Tantek%22%20href%3Dhttp://favelets.com/%20target%3Dhelp%20style%3D%22float:right;padding:1px;width:1em;font:10px%20Avant%20Garde,Chicago,Times,Arial,serif;text-decoration:none%22>@%3C/a>'+e;ds+=fc+w+'?uri='+d+fe;ds+=h+'CSS'+v+e;ds+=fc+'jigsaw.w3.org/css-validator/validator?uri='+d+fe;ds+=h+'HREF%20checker'+r+e;ds+=fc+w+'link?url='+d+fe;ds+=fm+fm+'%3C/html>';document.open();document.write(ds);document.close();void(20020315);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Multivalidator Window

javascript:if (0) void('Multivalidator script (c)2002 Tantek Celik - last modified 2002.03.15');var p27=String.fromCharCode(37)+'27',d=document.___location,ft='%3Cframe ',fs=ft+'src=',fe='\' scrolling=\'auto\'>',fc=ft+'style=\'border:2px solid #ff0\' src=\'http://',fm='%3C/frameset>';var h=fs+'\'javascript:document.write('+p27+'%3C!DOCTYPE%20HTML%20PUBLIC%20%22-//W3C//DTD%20HTML%204.0//EN%22%3E%3Cbody%20style%3D%22margin:0;padding:2px%206px%22%3E';var h1='%3Ch1%20style%3D%22display:inline;font-size:18px;margin:0;%22%3E';var e='%3E%3C/body%3E'+p27+')\' scrolling=\'no\' noresize>';var q=String.fromCharCode(34);var r='%20results',v='%20validator'+r,w='validator.w3.org/check';var ds='%3C!DOCTYPE HTML PUBLIC '+q+'-//W3C//DTD HTML 4.0 Frameset//EN'+q+'>%3Chtml>%3Chead>%3Ctitle>Multivalidator%3C/title>%3C/head>%3Cframeset cols=\'50%,50%\'>%3Cframeset rows=\'24,*\'>';ds+=h+'%3Cdiv%3E'+h1+'Page:%3C/h1%3E'+d+'%3C/div'+e;e='%3C/h1'+e;h+='%3Ch1%20style%3D%22display:inline;font-size:18px;margin:0;%22%3E';ds+=h+'%3Cscript>document.___location=%22'+d+'%22%3C/script>'+e+fm+'%3Cframeset rows=\'24,*,24,*,24,*\'>';ds+=h+'HTML'+v+'%3Ca%20title%3D%22Refresh%20to%20remultivalidate.%20Click%20for%20more%20info%20on%20favelets.%20-Tantek%22%20href%3Dhttp://favelets.com/%20target%3Dhelp%20style%3D%22float:right;padding:1px;width:1em;font:10px%20Avant%20Garde,Chicago,Times,Arial,serif;text-decoration:none%22>@%3C/a>'+e;ds+=fc+w+'?uri='+d+fe;ds+=h+'CSS'+v+e;ds+=fc+'jigsaw.w3.org/css-validator/validator?uri='+d+fe;ds+=h+'HREF%20checker'+r+e;ds+=fc+w+'link?url='+d+fe;ds+=fm+fm+'%3C/html>';var w = window.open('about:blank','Multivalidator','toolbar=yes,status=yes,resizable=yes');w.document.write(ds);w.document.close();w.focus();void(20020315);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
HTML
W3C beta validator

javascript:void(document.___location='http://validator.w3.org:8001/check?uri='+escape(document.___location))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
W3C HTML validator

javascript:void(document.___location='http://validator.w3.org/check?uri='+document.___location)

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
WDG HTML validator

javascript:void(document.___location='http://www.htmlhelp.com/cgi-bin/validate.cgi?url='+document.___location)

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
W3C HREF validator

javascript:void(document.___location='http://validator.w3.org/checklink?url='+document.___location)

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
CSS
W3C CSS validator

javascript:void(document.___location='http://jigsaw.w3.org/css-validator/validator?uri='+document.___location)

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Toggle CSS style sheets

javascript:var i=0;if(document.styleSheets.length>0){cs=!document.styleSheets[0].disabled;for(i=0;i<document.styleSheets.length;i++) document.styleSheets[i].disabled=cs;};void(cs=true);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Screen sizes
PocketPC, iPaq 240x320

javascript:void(window.resizeTo(240,320))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
TV safe 544x372

javascript:void(window.resizeTo(544,372))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
VGA 640x480

javascript:void(window.resizeTo(640,480))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
SVGA 800x600

javascript:void(window.resizeTo(800,600))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
XGA 1024x768

javascript:void(window.resizeTo(1024,768))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
SXGA 1280x1024

javascript:void(window.resizeTo(1280,1024))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
UXGA 1600x1200

javascript:void(window.resizeTo(1600,1200))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0

Learning

CSS
View style rules

javascript:if (false)void('View style rules script by Tantek Celik - last modified 1998.10.27');var whn = (window.___location.toString().replace(/[^a-z0-9]/gi,'_'))+'_sr';var imn = 0,ln = 0,isn = 0,undefined,r=String.fromCharCode(13),i=0,j=0;var st = '<HTML><HEAD><TITLE>'+document.title+' Style Rules</TITLE></HEAD><BODY STYLE=\'background:white;color:black;font:9pt FixedSys,Monaco,monospace;margin:3px 4px\'><PRE STYLE=\'background:white;color:black;font:9pt FixedSys,Monaco,monospace\'>'+r;st += '/* Style Rules For '+document.___location+' */'+r+r;function appendRules(ti,ss) {st += '/* '+ti+' */'+r+r;var j=0;for (j=0;j<ss.rules.length;j++){st+=ss.rules[j].selectorText + ' { ' + ss.rules[j].style.cssText + ' }'+r; }st += r+r;}function imf(im) { var k=0;for (k=0;k<im.imports.length;k++)void(imf(im.imports[k]));imn++;var imt = 'external (imported) style sheet '+imn+': '+im.href;void(appendRules(imt,im));}for (i=0;i<document.styleSheets.length;i++){var s = document.styleSheets[i];var tt = s.owningElement.title;for (j=0;j<s.imports.length;j++){void(imf(s.imports[j]));}if (s.owningElement.tagName == 'STYLE'){isn++;if (tt=='' || tt==undefined)tt = 'untitled inline style sheet '+isn;}else if (s.owningElement.tagName == 'LINK'){ln++;if (tt=='' || tt==undefined)tt = 'persistent external (linked) style sheet '+ln;else if (s.owningElement.rel.toString().indexOf('alternate')==-1)tt = 'preferred external (linked) style sheet \''+tt+'\'';else if (true)tt = 'alternate external (linked) style sheet \''+tt+'\'';tt += ': '+ s.href;}void(appendRules(tt,s));}st+=r+'</BODY></HTML>';var w = window.open('about:blank',whn,'menubar,resizable,scrollbars');w.document.write(st);w.document.close();w.focus();void(19981027);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
View style sheets

javascript:if (false)void('View style sheets script by Tantek Celik - last modified 1998.10.20 ');var whn = (window.___location.toString().replace(/[^a-z0-9]/gi,'_'))+'_ss';var imn = 0,ln = 0,isn = 0,sn = 0,undefined,i=0,j=0;for (i=0;i<document.styleSheets.length;i++){var s = document.styleSheets[i];var tt = s.owningElement.title;function imf(im) {var k=0;for (k=0;k<im.imports.length;k++)void(imf(im.imports[k]));sn++;imn++;var imt = 'imported style sheet '+imn;var w = window.open(im.href,whn+sn,'status,___location,menubar,resizable,scrollbars');w.document.title = imt;w.document.createStyleSheet('');w.document.styleSheets[0].addRule('BODY','background:white;color:black;font:9pt FixedSys,Monaco,monospace;margin:3px 4px');w.document.styleSheets[0].addRule('PRE','background:white;color:black;font:9pt FixedSys,Monaco,monospace');w.focus();}for (j=0;j<s.imports.length;j++){void(imf(s.imports[j]));}if (s.owningElement.tagName == 'STYLE'){sn++;isn++;if (tt=='' || tt==undefined)tt = 'untitled inline style sheet '+isn;var t = '<HTML><HEAD><TITLE>'+tt+'</TITLE></HEAD><BODY STYLE=\'background:white;color:black;font:9pt FixedSys,Monaco,monospace;margin:3px 4px\'><PRE STYLE=\'background:white;color:black;font:9pt FixedSys,Monaco,monospace\'>';for (j=0;j<s.imports.length;j++){t+='@import url('+s.imports[j].href+')<BR>';}for (j=0;j<s.rules.length;j++){t+=s.rules[j].selectorText + ' { ' + s.rules[j].style.cssText + ' } <BR>'; } t+='</BODY></HTML>'; var w = window.open('about:blank',whn+sn,'menubar,resizable,scrollbars');w.focus();w.document.write(t);w.document.close();}else if (s.owningElement.tagName == 'LINK'){sn++;ln++;var w = window.open(s.href,whn+sn,'status,___location,menubar,resizable,scrollbars');if (tt!= && tt!=undefined) w.document.title = tt;w.document.createStyleSheet();w.document.styleSheets[0].addRule('BODY','background:white;color:black;font:9pt FixedSys,Monaco,monospace;margin:3px 4px');w.document.styleSheets[0].addRule('PRE','background:white;color:black;font:9pt FixedSys,Monaco,monospace');w.focus();}}void(19981020);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
HTTP
View HTTP headers

javascript:void(document.___location='http://www.delorie.com/web/headers.cgi?url='+escape(document.___location))

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Scripts etc.
View scripts

javascript:if (false)void('View scripts script by Tantek Celik - last modified 1998.10.30');var whn = (window.___location.toString().replace(/[^a-z0-9]/gi,'_'))+'_sc';var ln = 0,isn = 0,sn = 0,undefined,i=0,j=0;for (i=0;i<document.scripts.length;i++){var s = document.scripts[i];var tt = s.title;if (s.src=='' || s.src==undefined){sn++;isn++;if (tt=='' || tt==undefined)tt = 'untitled inline script '+isn;var t = '<HTML><HEAD><TITLE>'+tt+'</TITLE></HEAD><BODY STYLE=\'background:white;color:black;font:9pt FixedSys,Monaco,monospace;margin:3px 4px\'><PLAINTEXT>';t+=s.outerHTML; var w = window.open('about:blank',whn+sn,'menubar,resizable,scrollbars');w.document.write(t);w.document.close();w.focus();}else{sn++;ln++;var w = window.open(s.src,whn+sn,'status,___location,menubar,resizable,scrollbars');if (tt!='' && tt!=undefined) w.document.title = tt;w.document.createStyleSheet('');w.document.styleSheets[0].addRule('BODY','background:white;color:black;font:9pt FixedSys,Monaco,monospace;margin:3px 4px');w.document.styleSheets[0].addRule('PRE,PLAINTEXT','background:white;color:black;font:9pt FixedSys,Monaco,monospace');w.focus();}}void(19981030);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
View images

javascript:if (false)void('View images script by Tantek Celik - modified 2003.02.11');var n = (window.___location.toString().replace(/[^a-z0-9]/gi,'_'))+'_im';var sn = 0,ud,i=0,r='\r';var ss = r;l=document.images.length;if (l==0) alert('No images to see here. Move along.');else for (i=0;i<l;i++){var s = document.images[i];var u = s.src;if (u!='' && u!=ud && ss.indexOf(r+u+r)==-1){ ss+=u+r;sn++;var w=window.open(s.src,n+sn,'height='+Math.max(s.height,32)+',width='+Math.max(s.width,32)+',status=no,___location,menubar,resizable,scrollbars');w.focus();}}void(20030211);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0

Reading

Translation
Babelfish French to English

javascript:void(document.___location='http://babelfish.altavista.com/babelfish/urltrurl?url='+escape(document.___location)+'&lp=fr_en&tt=url')

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Babelfish German to English

javascript:void(document.___location='http://babelfish.altavista.com/babelfish/urltrurl?url='+escape(document.___location)+'&lp=de_en&tt=url')

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Babelfish Spanish to English

javascript:void(document.___location='http://babelfish.altavista.com/babelfish/urltrurl?url='+escape(document.___location)+'&lp=es_en&tt=url')

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Babelfish Italian to English

javascript:void(document.___location='http://babelfish.altavista.com/babelfish/urltrurl?url='+escape(document.___location)+'&lp=it_en&tt=url')

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0
Babelfish Japanese to English

javascript:void(document.___location='http://babelfish.altavista.com/babelfish/urltrurl?url='+escape(document.___location)+'&lp=ja_en&tt=url')

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0

Enhanced User Interface

Choose style sheet

javascript:if (false)void('Choose style sheet... script (C)1998-2001 Tantek Celik - last modified 2001.09.13');var undefined,i=0;var sheets = ',',options = '<OPTION selected>document default';for (i=0;i<document.styleSheets.length;i++){var s = document.styleSheets[i];var tt = s.owningElement.title;if (tt != '' && tt != undefined){if (sheets.indexOf(','+tt+',')==-1) {sheets += tt+',';options += '<OPTION>'+tt;}}}var ds = '<!DOCTYPE HTML PUBLIC %22-//W3C//DTD HTML 4.0 Transitional//EN%22 %22http://www.w3.org/TR/REC-html40/loose.dtd%22><HTML><HEAD><TITLE>Choose style sheet</TITLE><STYLE>SELECT{width:144px; border:medium solid #339;background:#DDD;font:menu} BODY{overflow:hidden;margin:0;text-align:center;background:#CCC} .h{position:absolute;right:1px;top:1px;width:1em;text-align:right;font:10px Avant Garde,Chicago,Times,Arial,serif;text-decoration:none}</STYLE><SCRIPT>function choosess(tt) { var undefined; var d = window.opener.document; for (i=0; i<d.styleSheets.length; i++) { var s = d.styleSheets[i]; var ti=s.owningElement.title; if (ti!=\'\' && ti!=undefined && ti!=tt) s.disabled = true; else s.disabled=false; }}</SCRIPT></HEAD><BODY><CENTER>';ds += '<BR><SELECT ID=S1 SIZE=4 ONKEYPRESS=\'var k = event.keyCode; if (k==13 || k==3 || k==27) { window.close();}; \' ONCHANGE=\'if (this.selectedIndex!=-1) choosess(this.options[this.selectedIndex].text);\'>'+options+'</SELECT><BR>';ds += '<a href=\'http://favelets.com/\' target=help class=h>@</a><br>';ds += '</CENTER></BODY></HTML> ';var w = window.open('about:blank','ChooseStyleSheet','height=90,width=164');w.document.write(ds);w.document.close();w.focus();w.document.getElementById('S1').focus();void(19981023);

From
http://tantek.com/favelets/
License
CC 2.0 by license: http://creativecommons.org/licenses/by/2.0

Pixy.cz

http://www.pixy.cz/pixylophone/favelets/ (Also includes many bookmarklets from created by others)

  • Checking the Code
    • LynxView of the document
    • Simple Dom inspector of the document
  • Styles and Stylesheets
    • List computed (cascaded) styles - old and new version
  • Page Design
    • Set background to white
    • Clear background
  • Page Info
    • View HTPP (sic) headers
    • View HTPP transaction
    • View passwords on the page (by Jakub Vrana)
  • Browser Window
    • Resize to full screen
    • Create comparing windows (vertical) - i.e. tile two windows
    • Create comparing windows (horizontal) - i.e. tile two windows

Liorean.web-graphics.com

Sam-i-am.com

  • http://sam-i-am.com/work/bookmarklets/dev_debugging.html
    • View Source - replacement for the browser view-source command
    • Send as Text - similar, but slightly more so (uses a server at sam-i-am.com)
    • Show Tables - turns on table borders (uses a server at sam-i-am.com)
    • Zoom In - IE only
    • Zoom Out - IE only
    • Element Ancestry - makes everything bring up a dialog listing it's parents
    • View DOM
    • View DOM Fragment
    • Echo Form

Page Title & Url

javascript: void(prompt('link to this page',document.title + '\n' + ___location.href));

Description
Throws a prompt with the current page's title and url, selected for quick copying. Hit escape or return/enter to dismiss the prompt. I find this handy for quickly dropping a url into an email, or compiling a list of pages. compatible: tested in win32, mac NN3+, win32 IE4+; Mac ie5
From
http://sam-i-am.com/work/bookmarklets/misc.html

javascript: void(prompt('link to this page',unescape('%3Ca href=%22') + ___location.href + unescape('%22%3e') + document.title + unescape('%3c/a%3e')));

Description
In the same vein as Page Title & Url, this throws a prompt with the current page's title and url - formatted as a link (<a href="url">title</a>), selected for quick copying. Hit escape or return/enter to dismiss the prompt. compatible: tested in win32, mac NN3+, win32 IE4+; Mac ie5
From
http://sam-i-am.com/work/bookmarklets/misc.html

Samrod.com

http://samrod.com/

  • Web Search Engines
    • Google
    • Yahoo!
    • First.gov
  • Images
    • Google Images
    • Getty Images
  • Financial
    • Basic Quote
    • Detailed Quote
    • Business.com
    • Currency - convert currencies with Bloomberg.com
  • Shopping
    • Amazon.com
    • Buy.com
    • Shop Yahoo!
    • PriceWatch
    • PriceGrabber
    • PCPhotoReview
  • Software
    • VersionTracker
    • WindowsTracker
  • Shipping
    • UPS
    • FedEx
    • USPS
    • DHL
  • Reference
    • Google Maps
    • Dictionary - dictionary.com
    • Thesaurus - thesaurus.com
    • to French -altavista's babelfish
    • to Spanish -altavista's babelfish
    • to German -altavista's babelfish
    • to Italian -altavista's babelfish
    • ChemFinder - reg req.
  • Entertainment
    • Movies & TV - IMDB
    • Cast & Crew - IMDB
    • Musicians - Gracenote CDDB
    • Albums - Gracenote CDDB
    • Songs - Gracenote CDDB
  • Legal Research
    • U.S. Constitution
    • U.S. Codes
    • RegisterClub - register domains? seems to be broken as of Sat Apr 30 15:53:07 2005
    • TradeMark Search - US registered trademarks
    • Patent Search - US Patent office
    • CalBAR Search - california lawyers
    • Whois
  • Web Development
    • Document Info - like the browser window of the same name
    • Forms - pulls the forms out of the current page and lets you hack on them
    • Images - shows all images in a list including their dimensions
    • Find All - highlight search
    • Images 2a
    • Cookie - displays cookie info
    • Query String
    • Browser Info
    • Links
    • Referrer
    • Last Modified
    • Whois - of current ___domain
    • Validate - from w3c

Smokinggun.com

Printer

javascript:void(d=document);void(el=d.getElementsByTagName('a'));out='';for(i=0;i<el.length;i++){void(t = el[i].href.toLowerCase()); if(t.indexOf('print') > -1 && t.indexOf('edition') < 0) {void(document.___location=el[i].href)}};

Description
Tries to find the the printer version of an article. Tested on: NY Times, Salon, Washington Post, LA Times, The Guardian, The Economist(May not work in all areas of the site.), SF Gate, and The New Yorker.
From
http://www.smokinggun.com/code/bookmarklets.php

javascript:void(d=document);void(el=d.getElementsByTagName('a'));out='';for(i=0;i<el.length;i++){void(out=out+'<a href='+el[i].href+'>'+el[i].innerHTML+'</a><br><br>\r\r')};d.outerHTML=el.length+' link on the page<br><br>'+out;

Description
Shows only the links on a page. Includes a count of all the links.
From
http://www.smokinggun.com/code/bookmarklets.php

Clean Read

javascript:void(d=document);void(el=d.getElementsByTagName('p'));out='';for(i=0;i<el.length;i++){void(out=out+'<p>'+el[i].innerHTML+'</p>\r\r')};d.innerHTML=out;

Description
Removes non article text from news sites like CNN, NYTimes, Washington Post and News.com. The will not work on all pages
From
http://www.smokinggun.com/code/bookmarklets.php

Clean Read v1.2gh

javascript:void(d=document);void(el=d.getElementsByTagName('p'));out='';for(i=0;i<el.length;i++){void(out=out+'<p>'+el[i].innerHTML+'</p>\r\r')};d.innerHTML=out;'<table width=400><tr><td>'+out+'</td></tr></table>';

Description
Removes non article text from news sites like CNN, NYTimes, Washington Post and News.com. The will not work on all pages. Also sets the column width to 400 pixels. Thanks to Ben Winslow rain @ bluecherry o net for sending in a Mozilla compatible version.
From
http://www.smokinggun.com/code/bookmarklets.php

Zap v1.1

javascript:void(d=document);void(el=d.getElementsByTagName('iframe'));for(i=0;i<el.length;i++){void(el[i].style.display='none')};void(el=d.getElementsByTagName('img'));for(i=0;i<el.length;i++){void(el[i].style.display='none')};void(el=d.getElementsByTagName('a'));for(i=0;i<el.length;i++){void(el[i].style.textDecoration='none');}

Description
Removes underlines from links, images, iframes(these usually hold rich media ads).
From
http://www.smokinggun.com/code/bookmarklets.php

PDF

javascript:void(d=document);void(el=d.getElementsByTagName('a'));out='';function go(u){d.___location=u};a = new Array();for(i=0;i<el.length;i++){void(t = el[i].href.toLowerCase());if(t.indexOf('.pdf') > -1 && t.indexOf('javascript:') < 0) {void(a[a.length]=el[i].href);void(out=out+'<a href='+el[i].href+'>'+el[i].innerHTML+'</a> | <span style=\'color:#999999\'>'+el[i].href+'</span><br><br>\r\r')}};if (a.length == 0) alert('No PDFs Found');if (a.length == 1) go(a[0]);if (a.length > 1) d.innerHTML = out;

Description
Goes to a PDF file on a page, or will create a list of links to PDF's if more than one is on the page.
From
http://www.smokinggun.com/code/bookmarklets.php

Subsimple.com

  • http://subsimple.com/bookmarklets/collection_layout.asp
    • Clear Ads
    • Clear Geocities
    • Clear IntelliTxt
    • Clear Trails
    • Clear Layers
    • Allow Right-click
    • Drop-down to List
    • List to Drop-down
    • Bigger Text Areas
    • Resizable Frames
    • Clear - combines Clear Ads, Clear Geocities, Clear IntelliTxt, Clear Trails, Allow Right-click


Philburns.com

javascript:void(thislinks=document.links);for(linklen=0;linklen<thislinks.length;linklen++){thislinks[linklen]=open(thislinks[linklen].toString(),'','scrollbars,___location,toolbar,status,menubar,resizable');void(window.focus())}

Description
Opens all the links on the page in new windows and sends them to the background
From
http://www.philburns.com/bookmarklets.html
Split Frames into Windows

javascript:if(frames.length>0){for (i=0;i<frames.length;i++){fR=frames[i];void(window.open(fR.document.___location.href,fR.name+i,'width='+fR.innerWidth+',height='+fR.innerHeight+',scrollbars,___location,tooolbar,menubar,resizable,status'))}}else{alert('No frames!')}

Description
The windows will have the original frame size : from - bookmarklets.com.
From
http://www.philburns.com/bookmarklets.html
Open Previous in New Window

javascript:void(str=window.history.previous);if(str){open(href=str,'','scrollbars,___location,toolbar,status,menubar,resizable')}else{alert('There is no Previous Window......... Doh!')};void(null)

Description
Only works if the Previous is in the same ___domain
From
http://www.philburns.com/bookmarklets.html
Open Next in New Window

javascript:void(str=window.history.next);if(str){open(href=str,'','scrollbars,___location,toolbar,status,menubar,resizable')}else{alert('There is no next Window......... Doh!')};void(null)

Description
Only works if the Next is in the same ___domain
From
http://www.philburns.com/bookmarklets.html

Searching

Search this Domain.

javascript:void(str=prompt('String to search for at '+document.___domain,''));if(str){void(___location=('http://www.google.com/search?as_q='+str+'&as_sitesearch='+document.___domain));}

Description
Very cool. Promts for a string, then does a Google advanced search in current ___domain.
From
http://www.philburns.com/bookmarklets.html
Search ODP (New Window)

javascript:void(str=prompt('Search for:','Foobar'));if(str){void(open('http://207.200.81.135/cgi-bin/search?search='+escape(str).split('%20').join('+'),'','scrollbars,___location,toolbar,status,menubar,resizable'));}

Description
from - ODP (dmoz.org) editors bookmarklets.
From
http://www.philburns.com/bookmarklets.html
Search ODP in Background

javascript:void(str=prompt('Search for:','Foobar'));if(str){void(t3Wc6J2N=open('http://207.200.81.135/cgi-bin/search?search='+escape(str).split('%20').join('+'),'','scrollbars,___location,toolbar,status,menubar,resizable'));}(t3Wc6J2N.blur());

Description
from - Phil Burns.
From
http://www.philburns.com/bookmarklets.html
Search Hotbot (New Window)

javascript:void(str=prompt('Search for:','Foobar'));if(str){void(open('http://www.hotbot.lycos.com/?MT='+escape(str).split('%20').join('+'),'','scrollbars,___location,toolbar,status,menubar,resizable'));}

Description
from - Rijk Van Geijtenbeek.
From
http://www.philburns.com/bookmarklets.html

javascript:___location.href='http://www.altavista.com/cgi-bin/query?q=link:' + document.___location.href;

Description
from - Rijk van Geijtenbeek.
From
http://www.philburns.com/bookmarklets.html
Search for current page in www.archive.org

javascript:___location.href='http://web.archive.org/archive_request_ng?collection=web&url='+document.___location.href+'&Submit=Take+Me+Back%21';

Description
from - Tobias Boyd.
From
http://www.philburns.com/bookmarklets.html
Search google groups (New window)

javascript:void(str=prompt('Google Groups Search:',''));if(str){void(open('http://groups.google.com/groups?as_q='+str+'&lr=lang_en&num=50&as_scoring=d&hl=en'));}

Description
from - An opera.general poster I think
From
http://www.philburns.com/bookmarklets.html

Checking Code Validity

Validate at WDG

javascript:___location.href='http://www.htmlhelp.com/cgi-bin/validate.cgi?url=' + document.___location.href;

Description
from - Rijk van Geijtenbeek.
From
http://www.philburns.com/bookmarklets.html
Validate HTML at W3C

javascript:___location.href='http://validator.w3.org/check?uri=' + document.___location.href + '&doctype=Inline';

Description
from - Rijk van Geijtenbeek.
From
http://www.philburns.com/bookmarklets.html
Validate HTML at W3C (In Background)

javascript:void(str='http://validator.w3.org/check?uri=' + document.___location.href);if(str){abc123=open(href=str,'','scrollbars,resizable');}(abc123.blur());

Description
from - Me :).
From
http://www.philburns.com/bookmarklets.html
Validate all frames HTML W3C

javascript:if(frames.length>0){for (i=0;i<frames.length;i++){fR=frames[i];void(window.open('http://validator.w3.org/check?uri=' + fR.document.___location.href +'&doctype=Inline','','scrollbars,resizable'))}}else{alert('No frames!')}

Description
from - Me.
From
http://www.philburns.com/bookmarklets.html
Validate CSS for page at W3Cjavascript:

javascript:___location.href='http://jigsaw.w3.org/css-validator/validator?uri=' + document.___location.href;

Description
from - Phil Burns. Finally my own one :)
From
http://www.philburns.com/bookmarklets.html
Validate CSS for page at W3C (In Background)

javascript:void(str='http://jigsaw.w3.org/css-validator/validator?uri=' + document.___location.href);if(str){abc123=open(href=str,'','scrollbars,resizable');}(abc123.blur());

Description
from - Phil Burns. Another :)
From
http://www.philburns.com/bookmarklets.html
Validate all frames CSS W3C

javascript:if(frames.length>0){for (i=0;i<frames.length;i++){fR=frames[i];void(window.open('http://jigsaw.w3.org/css-validator/validator?uri=' + fR.document.___location.href,fR.name+i,'','scrollbars,resizable'))}}else{alert('No frames!')}

Description
from - Me.
From
http://www.philburns.com/bookmarklets.html
Validate HTML & CSS at W3C (In Background)

javascript:void(str='http://jigsaw.w3.org/css-validator/validator?uri=' + document.___location.href);if(str){abc123=open(href=str,'','scrollbars,resizable');}abc123.blur();(str='http://validator.w3.org/check?uri=' + document.___location.href + '&doctype=Inline');if(str){abc123=open(href=str,'','scrollbars,resizable');}abc123.blur();

Description
Opens two windows from - Phil Burns. Another :)
From
http://www.philburns.com/bookmarklets.html

Page Data

javascript:(function(){var i,c,x,h; for(i=0;x=document.links[i];++i) { h=x.getAttribute(%22href%22)+%22QBREAKQ%22; x.title+=%22 %22 + x.innerHTML; x.appendChild(document.createTextNode(h)); } })()

Description
Allows copying of name and href more easily. It marks the end of the href with the text "QBREAKQ" for easy spliting.
From
http://en.wikipedia.org/wiki/User:JesseW (based on one from squarefree)
Document Info

javascript:Wn7zG3=open('','Z6','width=400,height=400,scrollbars,resizable,menubar'); with(Wn7zG3.document){write('<basetarget=_blank>');{write('<h4>URL</h4><ahref="',document.___URL,'">',document.___URL,'<h4>Hostname</h4>',document.___location.hostname);};write('<h4>Frame URLs</h4>');var pw=parent;var i = 0;while (i<pw.length){aXz=pw.frames[i++].___location;write('<a HREF="',aXz,'">',aXz,'</a><br>');};{write('<h4>Document last modified</h4>',document.lastModified,'<h4>Referrer</h4>',document.referrer,'<h4>Cookie</h4>',document.cookie,'<h4>Hash</h4>',document.___location.hash,'<h4>Links</h4>');};var i =0;while(i<document.links.length){aXz=document.links[i++].href;write('<a HREF="',aXz,'">',aXz,'</a><br>');};{write('<h4>Images</h4>');};var i =0;while(i<document.images.length){aXz=document.images[i++].src; write('<a HREF="',aXz,'">',aXz,'</a><br>');};void(close())}

Description
Very nice... shows URL, hostname, the URLs of all frames (clickable), modification date, referrer, hash (both if provided only), lists all links and all images (both clickable), all in a new popup window. By - Roland Reck.
From
http://www.philburns.com/bookmarklets.html
Document Info 2

javascript:void(thiswin=top);void(siteinfo=window.open('','Z6','width=400,height=300,scrollbars,resizable,menubar'));with(siteinfo.document){open();write('<html><head><base target=_blank><title>Information</title></head><body>');write('<h4>URL</h4><a href="',thiswin.document.___URL,'">',thiswin.document.___URL,'</a><h4>Hostname</h4>',thiswin.document.___location.hostname); write('<h4>Frame URLs</h4>'); var pw=thiswin.parent;var i = 0;while (i <pw.length) {aXz=pw.frames[i++].___location; write('<a href="',aXz,'">',aXz,'</a><br />');}; {write('<h4>Last modified</h4>',thiswin.document.lastModified,'<h4>Referrer</h4>',thiswin.document.referrer,'<h4>Cookie</h4>',thiswin.document.cookie,'<h4>Hash</h4>',thiswin.document.___location.hash,'<h4>Links</h4>');};var i = 0;while(i<thiswin.document.links.length) {aXz=thiswin.document.links[i++].href;write('<a href="',aXz,'">',aXz,'</a><br />');};{write('<h4>Bilder</h4>');}; var i =0;while(i<thiswin.document.images.length){aXz=thiswin.document.images[i++].src; write('<a href="',aXz,'">',aXz,'</a><br />');};void(close())}

Description
Similar to the above but re-written by Roland for Opera 7
From
http://www.philburns.com/bookmarklets.html

javascript:if(document.cookie.length<1){alert('No cookie for this site.')}else{alert('Cookie for this site:'+document.cookie)}

Description
from - bookmarklets.com I think.
From
http://www.philburns.com/bookmarklets.html
Check Document Last Modified

javascript:if (document.lastModified==0) {alert('Date not available!');} else {alert('This document has been modified on: ' + document.lastModified); }

Description
from - Maurizio Berti & Rijk van Geijtenbeek.
From
http://www.philburns.com/bookmarklets.html
Who is

javascript:(function(){var h,p; h = ___location.host.split('.'); p = h.length; if (h[p-1].match(/com$|net$|org$|edu$/i)) { ___location = 'http://www.netsol.com/cgi-bin/whois/whois?SearchType=do&STRING=' + h[p-2] + '.' + h[p-1]; } else { alert('This bookmarklet can only look up owners for .com, .net, .org, and .edu domains.'); } void(0); })();

Description
from - Jesse Ruderman
From
http://www.philburns.com/bookmarklets.html
Check site server

javascript:___location = 'http://uptime.netcraft.com/up/graph?site='+escape(___location); void 0

Description
from - Jesse Ruderman
From
http://www.philburns.com/bookmarklets.html
Show HTTP headers

javascript:document.___location.href = 'http://webtools.mozilla.org/web-sniffer/view.cgi?url=' + escape(document.___location.href)

Description
from - Jesse Ruderman
From
http://www.philburns.com/bookmarklets.html

Window widgets

Resize Window to 1024 x 768

javascript:window.resizeTo(1024,768);window.moveTo(0,0);

Description
Me.
From
http://www.philburns.com/bookmarklets.html
Resize Window to 800 x 600

javascript:window.resizeTo(800,600);window.moveTo(0,0);

Description
Me.
From
http://www.philburns.com/bookmarklets.html
Resize Window to 640 x 480

javascript:window.resizeTo(640,480);window.moveTo(0,0);

Description
Me.
From
http://www.philburns.com/bookmarklets.html

Miscellaneous

Google Translate (English)

javascript:q=___location.href;if(q)___location.href='http://translate.google.com/translate_c?hl=en&u='+escape(q)

Description
from - Partially Correct
From
http://www.philburns.com/bookmarklets.html

javascript:eMlA='';for(iB2M=0;iB2M<document.links.length;iB2M++){if(document.links[iB2M].protocol=='mailto:'){Ju59=document.links[iB2M].toString();eMlA+=Ju59.substring(7,Ju59.length)+' '}};if(eMlA!=''){alert(eMlA)}else{alert('No mailto links on page!')}

Description
from - bookmarklets.com
From
http://www.philburns.com/bookmarklets.html

javascript:if(frames.length<1){alert('This page has ' + document.links.length + ' links.')}else{alert('The page has frames! Use version of bookmarklet for frames. (bookmarklets.com)')}

Description
from - bookmarklets.com
From
http://www.philburns.com/bookmarklets.html

javascript:void(___location.href=document.links[Math.round((document.links.length-1)*Math.random())])

Description
from - ODP (dmoz.org) editors bookmarklets.
From
http://www.philburns.com/bookmarklets.html

javascript:WN7z=open('','Z6','width=400,height=200,scrollbars,resizable,menubar');DL5e=document.links;with(WN7z.document){write('<base target=_blank>');for(lKi=0;lKi<DL5e.length;lKi++){write(DL5e[lKi].toString().link(DL5e[lKi])+'<br><br>')};void(close())}

Description
from - ODP (dmoz.org) editors bookmarklets.
From
http://www.philburns.com/bookmarklets.html
Send Location

javascript:___location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(___location.href)

Description
This one may be of particular interest to those that want to send pages by email. from - ODP (dmoz.org) editors bookmarklets.
From
http://www.philburns.com/bookmarklets.html
AutoFill Anonymous

javascript:function ROIoiW(){var i=0,j,A='anonymous',D,E,F=document.forms;while(i<F.length){E=F[i].elements;for(j=0;j<E.length;j++){D=E[j];if(D.type=='text'){D.value=(D.name.toUpperCase().indexOf('MAIL')!=-1)?A+'@example.com':A}}i++}}ROIoiW();void(null)

Description
Fills out forms as anonymous.
From
http://www.philburns.com/bookmarklets.html

from - ODP (dmoz.org) editors bookmarklets.

Bookmarklets Editor

javascript:W7=open('','A','width=480,height=340,resizable');W7.focus();with(W7.document){write('<center><form><textarea name=X rows=15 cols=54 wrap>javascript:</textarea><p><input type=button value=Run onclick=opener.___location=X.value>');void(close())}

Description
Creates a window to make and test your own bookmarklets in.
From
http://www.philburns.com/bookmarklets.html

from - ODP (dmoz.org) editors bookmarklets.

Show All Images in New Window

javascript:Ai7Mg6P='';for (i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){Ai7Mg6P+='<img src='+document.images[i7M1bQz].src+'><br>'};if(Ai7Mg6P!=''){fg=window.open();with(fg.document){write('<center>'+Ai7Mg6P+'</center>')};void(document.close())}else{alert('No images!')}

Description
- Modified from bookmarklets.com
From
http://www.philburns.com/bookmarklets.html
PAS Complaint

javascript:eMlA='';for(iB2M=0;iB2M<document.links.length;iB2M++){if(document.links[iB2M].protocol=='mailto:'){Ju59=document.links[iB2M].toString();eMlA+=Ju59.substring(7,Ju59.length)+','}};if(eMlA!=''){javascript:___location.href='mailto:'+eMlA+'?SUBJECT=Invalid Code at '+document.title+' - '+___location.href+'&BODY=The code on your webpage is not rendering well in my browser. For details please see http://www.htmlhelp.com/cgi-bin/validate.cgi?url='+escape(___location.href)}else{alert('No mailto links on page!')}

Description
- Send a complaint about a webpages code to all mailto links on a page ;-) from - Me
From
http://www.philburns.com/bookmarklets.html

Grants of redistribution