Minimal Greasemonkey GM_*Value functions

By keesc Last update Jun 6, 2009 — Installed 339 times.


Script Summary: This script emulates GM_setValue and GM_getValue functions in Opera (or other userscript enabled browsers).

To use Greasemonkey scripts in Opera, you will have to make sure that JavaScript is enabled in Opera. Go to Tools > Preferences > Advanced > Content and click on the JavaScript Options button. There is a form at the end called User JavaScript Files that points to the directory that contains all the custom JavaScript files. If you got more than one put them all in that directory. I suggest you create a new folder in the Opera directory and name it userscripts or something like that.

Now download any Greasemonkey script that you like and store it in that directory.

IMPORTANT NOTE!

Any Greasemonkey script that uses Greasemonkey functions will NOT work in Opera. BUT.... by downloading and installing this JavaScript file with minimal Greasemonkey GM_*Value function emulation, at least the GM_setValue and GM_getValue are available.

Note that this emulated GM_setValue function stores values as a cookie. Deleting your cookies will also delete these stored values. These cookies normally expire after a year.