macrozilla 
| resources: | Home Mailing List Installation Source Code Screenshots |
|---|
Documentation and Draft Notes
Basic Script ExamplesThis sample works with macrozilla version 0.04. Note that this version integrates the dumparea which allows your script to generate results. The following script navigates through a set of web sites (defined in the sites array) and collects the JS code to the dumparea.
sites=['http://taboca.com','http://geckonnection.com','http://www.livesidebar.com','http://www.bradesco.com.br'];
var ii=0;
function keepnext() {
if(ii!=0) {
if(parent.parent.__contentDocument.getElementsByTagName('script').length) {
for(var j=0;j<parent.parent.__contentDocument.getElementsByTagName('script').length;j++) {
parent.document.getElementById("dumparea").value+="============\nsite:"+sites[ii]+ "\n=============\n";
parent.document.getElementById("dumparea").value+="\n"+parent.parent.__contentDocument.getElementsByTagName('script').item(j).innerHTML;
}
}
}
if(ii<sites.length) {
__loadSiteCallback(sites[ii],"keepnext()");
ii++;
} else {
}
}
keepnext();