Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 4 of 4
Search took 0.02 seconds.
Search: Posts Made By: scnerd
Forum: JavaScript programming 01-31-2013, 10:07 PM
Replies: 9
Views: 206
Posted By scnerd
For future reference, working in GM, where can I...

For future reference, working in GM, where can I get said console? In firefox, does the Web Dev -> Web Console do what you're talking about? Or does GM have its own debugging console? Thnx
Forum: JavaScript programming 01-31-2013, 10:02 PM
Replies: 9
Views: 206
Posted By scnerd
Thanks, I'd thought that it'd return an empty...

Thanks, I'd thought that it'd return an empty array, not just null.
Forum: JavaScript programming 01-31-2013, 10:01 PM
Replies: 9
Views: 206
Posted By scnerd
Right, I got that there was an error, but I'm...

Right, I got that there was an error, but I'm literally running the code above. Besides the conditions and the "alert" calls, I'm actually doing nothing (everything else is commented out), and the...
Forum: JavaScript programming 01-31-2013, 09:39 PM
Replies: 9
Views: 206
Posted By scnerd
Cool GM, not getting past if statement

So I the following code is my greasemonkey script:

var msg = document.body.innerHTML;

if(msg.match(/Big monster/gi).length > 0)
{
alert("attack");
//Do stuff
}
alert("got...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT +1. The time now is 05:20 AM.