[Greasemonkey] Patterns

Jeremy Dunck jdunck at gmail.com
Thu Apr 14 18:09:23 EDT 2005


On 4/14/05, Prakash Kailasa <pk-moz at kailasa.net> wrote:
> The problem is it displays only the last line of code upon paste. But,
> once you hit ENTER, you should see all of the pasted code.

Hmm.  I do have trouble pasting more than one line...

This is on my clipboard:
"
function foo() {
  print('test');
}
"

This is what gets pasted:
"
function foo() {
"

and when I hit enter, this is what I get:
"
SyntaxError: missing } after function body
"

I'm interested to learn what i'm doing wrong...


More information about the Greasemonkey mailing list