I use
// @grant GM_getValue
// @grant GM_setValue
cause I am using those two values....
The issue is when I use those @grant for some reason my code won't go.
alert(GM_getValue("finished",0));
> if(GM_getValue("finished",0) == 0){
>
> if(td[30].getElementsByTagName("a")[0].getAttribute("onclick").toString()
> == "navAjax(14915)") {
> alert("hi");
> navAjax(14903);
> }
>
It alerts "0" and as well "hi", but if I put alert after the navAjax it
doesn't alert "hi".
navAjax is a function on the web page I am accessing. It will work if I
take out all the GM_* functions and put it back to @grant none
So what am I doing wrong?
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.