Skip to content

Instantly share code, notes, and snippets.

@line0
line0 / GM_XHR.js
Last active November 30, 2015 15:44 — forked from Acorn-zz/GM_XHR.js
allows using all Jquery AJAX methods in Greasemonkey
// allows using all Jquery AJAX methods in Greasemonkey
// originally inspired from http://ryangreenberg.com/archives/2010/03/greasemonkey_jquery.php
// works with jQuery 2.1.4
// (c) 2011 Martin Monperrus
// (c) 2010 Ryan Greenberg
// (updated) 2015 line0 to work with current jQuery and more closely mirror contemporary XHR implementations.
//
// Usage:
// $.ajax({
// url: '/p/',