putting script on page
|
|
I want to just stick this script on a page but see that it calls two gm functions, GM_log and GM-xmlhttprequest. Without uploading the whole greasemonkey.jar archive I was wondering if you had an alternative xmlhttprequest function that may work. e.g. I have a hebrew blog that I want to have the tooltip appear on for anyone with ff safari or chrome |
|
|
As far as I know, security restrictions will deny any xmlhttprequests you will try to make to different domains, if your script is simply running from a web page and not from the chrome environment, so I don't really see how it's possible to enable this script for a single web page. |
|
|
Looks like cross-site XMLHttpRequest might be supported in Firefox 3.5 and onwards, but I don't know if that will help you with Opera and Safari, etc. The best route would be to install a small script on your server, maybe written in perl, that can fetch translations. You still need to use XMLHttpRequests, but then they won't be cross-site. I imagine that all modern browsers support XMLHttpRequest by now. |