A way to show all CMD: lines
#4

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;

Код:
r = document.getElementsByTagName("textarea")[0].innerHTML.match(/CMD\:.*?\(/gi);
o = "";
for(x in r)
     o += r[x].match(/CMD\:(.*?)\(/i)[1]+"\n";
alert(o);
- edit -
I've changed the code, it was capturing the commands twice.
Reply


Messages In This Thread
A way to show all CMD: lines - by milanosie - 17.05.2012, 19:56
Re: A way to show all CMD: lines - by FalconX - 17.05.2012, 19:58
Re: A way to show all CMD: lines - by milanosie - 17.05.2012, 20:00
Re: A way to show all CMD: lines - by Mandrakke - 17.05.2012, 20:02
Re: A way to show all CMD: lines - by milanosie - 17.05.2012, 20:27
Re: A way to show all CMD: lines - by miley1 - 17.05.2012, 20:31
Re: A way to show all CMD: lines - by milanosie - 17.05.2012, 21:03
Re: A way to show all CMD: lines - by Mandrakke - 17.05.2012, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)