Search code examples
javascriptnode.jsgreasemonkeytampermonkey

Does GM.setClipboard support line breaks?


I'm trying to copy some text and set it to the user's clipboard, but I want it to be a list. Yet everything I add to just makes it part of the string (ie. GM.setClipboard("hello\n"goodbye") = "hello\n"goodbye"). I want:

hello goodbye

Are line breaks supported?


Solution

  • Per the comment from wOxxOm:

    \r\n