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
- LibraryLookup integrates Amazon.com with your local library.
- Annotate Google integrates Google and del.icio.us.
- Bloglines Tweaks adds an Expand button to article summaries in Bloglines to retrieve and display the full article.
- Flick Batch Enhancer uses
GM_xmlhttpRequestto add features to Flickr using Flickr's own REST API. - Hide Google Redirects reprograms Google Personal Search History to use normal
<a href="...">links, but still track clicks by callingGM_xmlhttpRequeston the appropriate tracking URL.