Quick and dirty hack to add GM_log().
In bugs\bug001.user.js, add the function:
function GM_log(aMsg) {
setTimeout(function() { throw new Error("[GM_log] " + aMsg); }, 0);
}
Now if you use
GM_log("Foo"); the string "Foo" gets logged to the Error Console.
However it is logged as a JS Error. It would be nice to log as a Message. Does anyone know how to do that from a user script?
Edited 2 time(s). Last edit at 03/26/2013 08:32PM by Ian.M.