[Greasemonkey] (no subject)

gilles mailling.listes at gmail.com
Thu Jun 8 18:44:22 EDT 2006


why the state is changing ? Something to see with the load event ofcourse,
but why is it different after clicking ?

the user Script :
unsafeWindow.navigator.__defineGetter__("appName", function() {
    return "My Value";
});
the web page :
<html>
  <head>
    <script>
        var isOk = (navigator.appName=="My Value");
        if(isOk)
        {
            firsttime = "???????";
        }
        else
        {
            firsttime = "!!!!!!!!!!!!!";
        }
    </script>
  </head>
  <body>
    <div>
    <a target="_self" href="test_onload.html">
        <script>
            document.write(firsttime);
        </script>
    </a>
    </div>
  </body>
</html>


More information about the Greasemonkey mailing list