[Greasemonkey] Long literal strings of html

Julien Couvreur julien.couvreur at gmail.com
Wed Apr 20 18:03:24 EDT 2005

> Why are you escaping characters in the string?

Looked at your diff more. Got it.
Seems cleaner to avoid printing and escaping that script in a string,
since you can have it as a string object directly...

           win.GM_log (...)
           win.GM_getSelf = function() {
             return getContents(getScriptChrome(script.filename));
              "var GM_getSelf = window.GM_getSelf;"


More information about the Greasemonkey mailing list