Dive Into Greasemonkey

Teaching an old web new tricks

6.3. Integrating data from other sites

Greasemonkey defines a function, GM_xmlhttpRequest, that allows user scripts to GET data from any URL or POST data to any URL.

See GM_xmlhttpRequest for more details and examples.

This function was introduced in Greasemonkey 0.2.6. You should test whether it exists and degrade gracefully if it does not.

Further reading

← Adding items to the menubar
Compiling your user script into an extension →