Basically i have a 500 line javascript file i made that runs in grease monkey (a add on for firefox ) I'm using vb.net to "compile" this script depending on certain check boxes.
So for example. (this is part of my script)
and so on. So if chkCapsEnforcer was not checked it would skip that part and go to chkRevealUrl and if that was checked would get that bit. Then once it has gone through all the checkboxes it would write the enabled bits to a text file.
make sense?
So for example. (this is part of my script)
VB.NET:
#RegionCapsEnforcer
var array=document.evaluate("//*[contains(@class, 'postbody')]", document, null, 6, null);
for(let i=0,item; (item=array.snapshotItem(i)); i++) item.innerHTML=item.innerHTML.toLowerCase()
#RegionRevealURLs
var postAs = document.querySelectorAll('.postbody a')
for(var i in postAs){
var c = postAs[i];
if(c.hasAttribute('href')){
var np = document.createElement('p');
np.innerHTML=c.getAttribute('href');
var p = c.parentNode;
var pl = c.nextElementSibling;
if(!pl){
p.appendChild(np);
}
else{
p.insertBefore(np, pl);
}
}
}
and so on. So if chkCapsEnforcer was not checked it would skip that part and go to chkRevealUrl and if that was checked would get that bit. Then once it has gone through all the checkboxes it would write the enabled bits to a text file.
make sense?