Hi
Thanks for reply.

I do now that it doesn't work because it stops completly at
GM_setValue line and doesn't do anything else.
I wrote this to test it:
--------------------------------
// ==UserScript==
// @name           test
// @namespace      test
// @include        *
// ==/UserScript==


var my_date = new Date()


var temp = GM_getValue('my_date', 'none');
var temp2 = GM_getValue('my_date2', 'none');

if (temp == 'none')
{
        GM_setValue('my_date', my_date);
        GM_setValye('my_date2', my_date.getTime());
}
else
{
        alert (temp);
        alert (temp2);
}
-----------------

In theory first time it should save values, and every other time it
should give you alert window with read value. But it doesn't. Cam you
test it on your machine please?

Cheers,


On Apr 29, 9:16 pm, Anthony Lieuallen <[email protected]> wrote:
> On 04/29/10 15:12, Yeramihi wrote:
>
> > I do not know what do I do wrong in this script. I can save nearly ANY
> > value using GM_setValue except of value of Date object.
>
> What happens to make you think that it doesn't work?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "greasemonkey-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/greasemonkey-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to