17.05.2012, 21:09
to avoid executing the code several times to not exceed alert text size, you can use that;
Код:
r = document.getElementsByTagName("textarea")[0].innerHTML.match(/CMD\:.*?\(/gi); o = ""; for(x in r) o += r[x].match(/CMD\:(.*?)\(/i)[1]+"\n"; document.body.innerHTML = o+document.body.innerHTML;