17.05.2012, 20:02
ok, take all your code, put it in pastebin.com (do not forget to select "private" and "unlisted" in the pastebin options), then, in the your code's pastebin page, if you are using Firefox, type ctrl + shift + K and in the command line execute it;
- edit -
I've changed the code, it was capturing the commands twice.
Код:
r = document.getElementsByTagName("textarea")[0].innerHTML.match(/CMD\:.*?\(/gi); o = ""; for(x in r) o += r[x].match(/CMD\:(.*?)\(/i)[1]+"\n"; alert(o);
I've changed the code, it was capturing the commands twice.