Pages

Make greasemonkey scripts to work with opera

# Step 1: Configuring folder to store GreaseMonkey Script (Need to do this once only)

* Create a directory to store greasemonkey scripts. (e.g. C:\GM_opera)
* Go to Tools >> Preferences, it will open a window




* Navigate to Advanced Tab, then click on Content option in left menu.
* Click on JavaScript Options. It will open another window



* Click on Choose button to create a folder or select a folder to store GreaseMonkey scripts!



# Step 2: Adding GreaseMonkey scripts… (for every script…)

* Click on any GreaseMonkey script link. (URLs ending with .user.js extension)
* You will see a plaintext file getting opened in browser without any install pop-up as you usually see in firefox!
* Go to File >> Save as opera menu option. When prompted location to save script, navigate to the folder you selected in Step-1!
* Thats it! Just by saving GreaseMonkey scripts to preconfigured folder you can use them in opera!



#Few Notes…

* To Uninstall: Just delete the script from folder or move script file to some other location!
* To enable/disable: You can’t. Only Install/Uninstall options are available. Or you can move files to different folder.
* To change sites script works on: Open script in any text-editor and change @include and @exclude directive manually in script file.



#Compatibility Issues…

Most GreaseMonkey scripts will work without any modification as they do not make use of GreaseMonkey APIs. But for those who make use of API you can install Emulate GreaseMonkey functions opera userscript. Installation method is same as mentioned in step-2.
It may not works always but its really worth trying. So installing above script is highly recommended.

As an example our Facebooks Ignore ALL button script just works fine but Block ALL script is not working as it makes use of GM_xmlhttpRequest call which even above emulator script failed to implement! This may be bad news for orkut users as all scrap all scripts makes use of GM_xmlhttpRequest call.


Resource:


http://www.opera.com/support/tutorials/userjs/http://userjs.org/scripts/

0 comments:

Post a Comment