views:

221

answers:

1

Is there a way to store state of user script in opera? In GreaseMonkey one can use GM_SetValue/GM_GetValue. I saw one script that emulates them in opera using cookies but I don't like this idea for several reasons(mainly for limitied size of cookies). Is there another way to store state?

+1  A: 

I have 2 idea:

1. Google Gears

Google Gears has Database API. You can store & get data with SQL.
I know it's over spec for your purpose, but I suppose this way is simply one.

2. SharedObject (Flash)

Flash can be stored data to local using SharedObject.
It's similar to cookie, but larger than cookie.

  • cookie: 4kb
  • SharedObject: 100kb (default)
kuy