[Greasemonkey] XMLHttpRequest dev script (was: GM_xmlHttpRequest
question)
Julien Couvreur
julien.couvreur at gmail.com
Fri Sep 2 16:15:52 EDT 2005
I finished writing a more powerful version of the script below. It now
replaces XMLHttpRequest within the page with a GM_xmlHttpRequest-based
implementation. This allows local tweaking of a web page without
needing to deploy it to a server to try it out, making the dev cycle
faster.
Note: it's purely for development purpose and should never be
configured to @include http urls.
If you're interested, you can get it at:
http://blog.monstuff.com/archives/images/XmlHttpRequest-BypassSecurity.user.js
Cheers,
Julien
On 9/1/05, Julien Couvreur <julien.couvreur at gmail.com> wrote:
> // ==UserScript==
> // @name XmlHttpRequest - Bypass Security
> // @namespace http://blog.monstuff.com/archives/cat_greasemonkey.html
> // @description Helps bypassing the "same domain" policy, during development.
> // @include file://*
> // ==/UserScript==
>
> window.setAttribute("GM_xmlhttpRequest", GM_xmlhttpRequest);
> document.title += " - using unsafe XMLHttpRequest";
More information about the Greasemonkey
mailing list