That's the error I get. My script looks like this: Code (Text): GM_registerMenuCommand("Wise old King", { document.location.href = "http://www.neopets.com/medieval/wiseking.phtml"; enter; }); GM_registerMenuCommand("Crack a Joke- Grumpy old King", { document.location.href = "http://www.neopets.com/medieval/grumpyking.phtml"; enter; }); I get an "After Property ID" error for "enter;" and the document.location.href line. Searched google, didn't find an answer that makes sense. Whoever poses a solution gets +Rep.
What's enter? Code (Text): GM_registerMenuCommand("Wise old King", function(){ document.location.href = "http://www.neopets.com/medieval/wiseking.phtml"; }); GM_registerMenuCommand("Crack a Joke- Grumpy old King", function(){ document.location.href = "http://www.neopets.com/medieval/grumpyking.phtml"; });
I saw the use of enter in a seperate script. Off to go get rid of the enter thing. BRB. Edit: Problem not solved- the items still don't show up in the user scripts user script command menu. Am I using it right? Code (Text): GM_registerMenuCommand("Wise old King", { document.location.href = "http://www.neopets.com/medieval/wiseking.phtml"; }); GM_registerMenuCommand("Crack a Joke- Grumpy old King", { document.location.href = "http://www.neopets.com/medieval/grumpyking.phtml"; });
You missed the "function() { ... }" part... GM_registerMenuCommand("Wise old King", function() { document.location.href = "http://www.neopets.com/medieval/wiseking.phtml"; }); GM_registerMenuCommand("Crack a Joke- Grumpy old King", function() { document.location.href = "http://www.neopets.com/medieval/grumpyking.phtml"; });
You could've named the function elsewhere or used a generic function like I had posted in the first reply to your question
I now owe you 2 Reps, I need to "spread it around" first. (If it's alright with everyone here, I'ma go put in it DL section for like 10 points or something.) @Ricky: +Rep'd