User:Joshurtree/test.js

//

function noRefSize { var text = document.getElementById('wpTextbox1').value; var index = text.indexOf(' 5 ? text.indexOf('<ref', endIndex) : -1; }

size += text.length - text.lastIndexOf(' ') + 6; alert('Size of document without refs is ' + size / 1024 + 'k (' + text.length / 1024 + 'k)'); }

addOnloadHook(function {   addPortletLink('p-tb', 'javascript:noRefSize', 'No Ref Size'); }); //