Page Info
Parsed HTML
function doUpdateWT() { var W = open('','','width=780,height=580,resizable,scrollbars'); with(W.document) { write(''); write('
Parsed HTML
'); write('
HTML document:
' + document.location.href + '
'); write('
Title:
' + document.title + '
'); write('
HTML:
' +document.documentElement.outerHTML+ '
'); close(); } } doUpdateWT();
Selected HTML
function doUpdateWT() { if (document.selection.type != 'None') { var txt=document.selection.createRange().htmlText; if (txt!='') { var W = open('','','width=780,height=580,resizable,scrollbars'); with(W.document) { write(''); write('
Selected HTML
'); write('
HTML document:
' + document.location.href + '
'); write('
Selection Type:
' + document.selection.type + '
'); write('
Selection Type Detail:
' + document.selection.typeDetail + '
'); strTxt = document.selection.createRange(); strTxt = strTxt.text.replace(/\s/g,' ').replace(/ {2,}/g,' ').replace(/ $|^ /g,'').split(' '); if (strTxt!='') write('
Word Count:
' + strTxt.length + '
'); write('
HTML Source:
' +txt+ '
'); write('
HTML:
' +txt); write('
Selected Text Editor:
<' + 'form name="frmMain"><' + 'textarea rows=10 cols=60 name=txaText>' +document.selection.createRange().text+ '' + 'textarea>'); write('
Update page
'); close(); } } } } doUpdateWT();
Images
function doUpdateWT() { var str = '
'; str += '
Object
Src
Align
Alt Text
Size Kb
Height
Width
H-Space
V-Space
Id
'; for (var i=0; i
'; var obj = document.images[i]; str += '
' + obj.outerHTML + '
'; str += '
' + obj.src + '
'; str += '
' + obj.align + '
'; str += '
' + obj.alt + '
'; str += '
' + obj.fileSize/1024 + '
'; str += '
' + obj.height + '
'; str += '
' + obj.width + '
'; str += '
' + obj.hspace + '
'; str += '
' + obj.vspace + '
'; str += '
' + obj.id + '
'; str += ''; } str += '
'; var W = open('','','width=780,height=580,resizable,scrollbars'); with(W.document) { write(''); write('
Images Information
'); write('
HTML document:
' + document.location.href + '
'); write('
Document size (Kb):
' + Number(document.fileSize)/1024 + '
'); var sizeI = 0; for (var i=0; i
Total Images size (Kb): ' + sizeI/1024 + '
'); write('
Images:
' + i + '
'); write('
' +str); close(); } } doUpdateWT();
Links
function doUpdateWT() { var str = '
'; str += '
Object
View Source
Href
Id
'; for (var i=0; i
'; var obj = document.links[i]; str += '
' + obj.outerHTML + '
'; str += '
View Source
'; str += '
' + obj.href + '
'; str += '
' + obj.id + '
'; str += ''; } str += '
'; var W = open('','','width=780,height=580,resizable,scrollbars'); with(W.document) { write(''); write('
Links Information
'); write('
HTML document:
' + document.location.href + '
'); write('
Links:
' + i + '
'); write('
' +str); close(); } } doUpdateWT();
Scripts
function doUpdateWT() { var s = document.scripts; var str = ''; for (var i=0; i
Script Event:
' +s[i].event+ '
'; str += '
Script HTML For:
' +s[i].htmlFor+ '
'; str += '
Script Language:
' +s[i].language+ '
'; str += '
Script Source:
' +s[i].src+ '
'; str += '
Script Block:
' + s[i].text + '
'; } var W = open('','','width=780,height=580,resizable,scrollbars'); with(W.document) { write(''); write('
Script Block Information
'); write('
HTML document:
' + document.location.href + '
'); write('
Script Blocks:
' + i + '
'); write(str); close(); } } doUpdateWT();
Frames
function doUpdateWT() { var str='', strDiv='', num=0, fCount=0; var H,W,L,T; function gogetFrame(w) { var sp=''; for(var j=0; j<4*num; j++) sp += ' '; H = w.document.documentElement.offsetHeight; W = w.document.documentElement.offsetWidth; L = w.screenLeft; T = w.screenTop; Lo = w.screenLeft - w.top.screenLeft +12; To = w.screenTop - w.top.screenTop +436; str += '
'; str += '
' +fCount+ '
'; str += '
' +sp + w.name+ '
'; str += '
View Source
'; str += '
' +w.location.href.link(w.location.href)+ '
'; str += '
' +H+ '
'; str += '
' +W+ '
'; str += '
' +L+ '
'; str += '
' +T+ '
'; str += '
'; strDiv += '
'; strDiv += '
'; strDiv += '
Frame ' +fCount+ ' ' +w.name+ '
'; num++; fCount++; for(var i=0; i
body, td, xmp{font-family: Verdana,sans-serif; font-size: 10px}'); write('div{position:absolute; border:1px black solid;}'); write('
Frames Information
'); write('
HTML document:
' + document.location.href + '
'); write('
Frames:
'); write('
'); write('
Number
Name
View Source
URL
Height
Width
Left
Top
'); write(str); write('
'); write(strDiv); close(); } } doUpdateWT();
Doc Properties
function doUpdateWT() { var i; var sizeI = 0; var sizeE = 0; var sizeD = 0; var size = 0; sizeD = Number(document.fileSize); size += sizeD; for (i=0; i
body, td, xmp{font-family: Verdana,sans-serif; font-size: 10px}'); write('
Document Properties
'); write('
HTML document:
' + document.location.href + '
'); write('
Title:
' + document.title + '
'); write('
File Created Date:
' + document.fileCreatedDate + '
'); write('
File Modified Date:
' + document.fileModifiedDate + '
'); write('
Language:
' + navigator.browserLanguage + '
'); write('
Referer:
' + document.referrer + '
'); write('
Protocol:
' + document.protocol + '
'); write('
Cookie:
' + document.cookie + '
'); write('
Document Type:
' + document.doctype + '
'); write('
Document size:
' + sizeD/1024 + 'Kb
'); write('
Total images size:
' + sizeI/1024 + 'Kb
'); write('
Total embeds size:
' + sizeE/1024 + 'Kb
'); write('
Total size:
' + size/1024 + 'Kb
'); write('
'); write('
Screen Size:
' + screen.width + ' x ' +screen.height+ ' pixels
'); write('
Screen Font Smoothing:
' +screen.fontSmoothingEnabled+ '
'); write('
User Agent:
' + navigator.userAgent + '
'); write('
Browser Name:
' + navigator.appName + '
'); write('
Browser Version:
' + navigator.appVersion + '
'); write('
Browser Minor Version:
' + navigator.appMinorVersion + '
'); write('
Color Depth:
' + Math.pow(2,screen.colorDepth) + '
'); close(); } } doUpdateWT();
Forms
function doUpdateWT() { var str=''; for (var i=0; i
Form Name:
' + document.forms[i].name + '
'; str += '
Form Action:
' + document.forms[i].action + '
'; str += '
Form Method:
' + document.forms[i].method + '
'; str += '
'; str += '
Name
Type
Value
Object
HTML
'; for (var ii=0; ii
'; var obj = document.forms[i].elements[ii]; str += '
' + obj.name + '
'; str += '
' + obj.type + '
'; str += '
' + obj.value + '
'; str += '
' + obj.outerHTML + '
'; str += '
' + obj.outerHTML + '
'; str += ''; } str += '
'; } var W = open('','','width=780,height=580,resizable,scrollbars'); with(W.document) { write(''); write('
Form Information
'); write('
HTML document:
' + document.location.href + '
'); write('
Forms:
' + i + '
'); write('
' +str); close(); } } doUpdateWT();
Stylesheets
function doUpdateWT() { var str=''; for (var i=0; i
StyleSheet Title:
' + document.styleSheets(i).title + '
'; str += '
StyleSheet Href:
' + document.styleSheets(i).href + '
'; str += '
StyleSheet Type:
' + document.styleSheets(i).type + '
'; str += '
StyleSheet Media:
' + document.styleSheets(i).media + '
'; str += '
' + document.styleSheets(i).cssText + '
' } var W = open('','','width=780,height=580,resizable,scrollbars'); with(W.document) { write(''); write('
StyleSheet Information
'); write('
HTML document:
' + document.location.href + '
'); write('
StyleSheets:
' + i + '
'); write('
' +str); close(); } } doUpdateWT();
Document Tree
Watch
Navigate
Go to URL
if (frames.length>0) alert("Sorry, this doesn't work with frames"); else { sfehkgh=document.selection.createRange().text; if (sfehkgh!=''){ urlKKKK = sfehkgh.replace(/\042/g,'').replace(/\047/g,'').replace(/^www/,'http://www'); reRTRT = /^www|^http/; if (!reRTRT.test(url)){ urlKKKK = 'http://www.' + urlKKKK; } location.assign(urlKKKK); } else alert('Select some text on page like: http://www.iconico.com'); }
Up directory
location.href = location.href.substring(0,location.href.substring(0,location.href.length-1).lastIndexOf('/')+1);
Change Page
640 x 480
resizeTo(640,460)
800 x 600
resizeTo(800,580)
1024 x 768
resizeTo(1024,748)
Hide Images
for (JIOP44=0; JIOP44
Text-Only
document.body.bgColor='transparent'; document.body.background='none'; for (JIOP44=0; JIOP44
Image borders
function doUpdateWT() { strTagName = 'Img'; var objColl = document.all.tags(strTagName); for (var i=0; i
Cell borders
function doUpdateWT() { strTagName = 'Td'; var objColl = document.all.tags(strTagName); for (var i=0; i
Table borders
function doUpdateWT() { strTagName = 'Table'; var objColl = document.all.tags(strTagName); for (var i=0; i
Div borders
function doUpdateWT() { strTagName = 'Div'; var objColl = document.all.tags(strTagName); for (var i=0; i
Expand All
function doUpdateWT() { var strTagName; for (var j=0; j<3; j++) { switch (j) { case 0: strTagName = 'Table'; break; case 1: strTagName = 'Td'; break; case 2: strTagName = 'Div'; break; } var objColl = document.all.tags(strTagName); for (var i=0; i
Show Hidden
function doUpdateWT() { var objColl = document.all; for (var i=0; i
Edit Frames
function doUpdateWT() { function gogetFrame(w) { for(var i=0; i
Find
Mark All
function doUpdateWT() { var r,i,s; if (document.selection.type == 'Text') s = document.selection.createRange().text; if (!s) s = prompt('Find text:', ''); if (s) { if (document.body.tagName!='FRAMESET') { r = document.body.createTextRange(); for(i=0; r.findText(s); i++) { r.execCommand('BackColor', '', 'yellow'); r.collapse(false); } } else alert('Sorry, this does not work for frames.'); } } doUpdateWT();
Web Search
varSTRRR = document.selection.createRange().text; if (!varSTRRR) varSTRRR=prompt('Enter Search Phrase:',''); if(varSTRRR)location.href='http://www.google.com/search?q='+escape(varSTRRR)
Whois
var WindWind = open('','','width=780,height=580,resizable,scrollbars'); WindWind.location.href = 'http://www.internic.com/cgi/whois?whois_nic=' + document.domain.replace('www.', '') + '&type=domain';
Netcraft
var WindWind = open('','','width=780,height=580,resizable,scrollbars'); WindWind.location.href = 'http://uptime.netcraft.com/up/graph?site=' + document.domain;