[robots] [Greasemonkey] slightly ot: xmlhttprequest in opera user scripts?

Nikolas Coukouma lists at atrus.org
Mon Nov 21 06:14:39 EST 2005


Kirinyaga wrote:
>> I don't usually write user scripts for opera but I am writing one that I
>> am attempting to make as cross-browser compatible as possible.
>> Does opera have a GM_xmlhttpRequest like function that will let me send
>> requests to other domains?  Googling hasn't helped me find any.
>>     
>
> Someone wrote a compatibility library, aagmfunctions :
> http://www.howtocreate.co.uk/operaStuff/userJavaScript.html
>
> I remember I had to do some modifications for the thing to be really
> compatible with GM, and I didn't test everything. Anyway it's a good basis
> to start from. Here is the version I'm using :
> http://igsee.l9c.org/ressources/aagmfunctions.js
>
> I write scripts for peoples using FF+GM at 99%, but I use opera myself. So
> far it works fine.
That's pretty handy. Unfortunately:

GM_xmlhttpRequest
    Synonym for the XMLHttpRequest constructor. With Greasemonkey, this
    has no cross domain restrictions. I cannot replicate that behaviour
    here.

-Nikolas


More information about the Greasemonkey mailing list