javascript:if(!document.location.href.match(/sites/)){ alert("Must run at http://www.wikidot.com/account/sites, click OK to redirect"); window.location.href="http://www.wikidot.com/account/sites"; }else{usageStruct = [];function tobytes(a){if(a.match(/ kB$/)){b = parseFloat(a.replace(/ kB$/,""))*1000;}else if(a.match(/ MB$/)){b = parseFloat(a.replace(/ MB$/,""))*1000*1000;}else if(a.match(/ GB$/)){b = parseFloat(a.replace(/ GB$/,""))*1000*1000*1000;}else if(a.match(/ TB$/)){b = parseFloat(a.replace(/ TB$/,""))*1000*1000*1000*1000;}else{b = parseFloat(a.replace(/ Bytes$/,""));}return b;}$j(".site-traffic .show").each(function(){usageStruct.push({"site":$j.trim($j(this).parent().parent().parent().find(".url").text()),"usage":tobytes($j.trim($j(this).text())),"usagestr":$j.trim($j(this).text())});});usageStruct.sort(function(a,b) { return parseFloat(b.usage) - parseFloat(a.usage) } );usageList = "
Site | Usage |
---|---|
"+v.site + " | " + v.usagestr +" |