Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

GM_log

supahgreg edited this page · 6 revisions

Description

This function sends messages to the Error Console, as well as either the Firebug Console or Web Console.

GM_log is an alias for console.log(...) and only exists for backwards and Greasemonkey compatibility.

Note: If you aren't seeing anything, go to about:config and make sure that javascript.options.showInConsole and javascript.options.strict are both set to true.

Arguments

Object message, ...

One or more messages to be displayed in the console.

Returns

undefined

Example

GM_log('something broke here...', {a:1, b:3} /*, ... */);
Something went wrong with that request. Please try again.