Perhaps some "this site is trying to detect greasemonkey, allow/deny"
interface of dubious complexity, evaluates false unless GM is
installed AND they click allow, and avoid any tricks that using typeof
would reveal a function call... can one fire a 'browser level' event
when a JavaScript variable is accessed?  (which is processed before
that variable is "returned" for evaluation by JavaScript?)  Its a
tricky problem that I'm sure has some low level solution however
detecting GM (other than the version) is not extremely useful however
the download page on my site would be a lot nicer if I could indicate
people should go to step 3 if GM is installed correctly.  Possibly
only possible in the future, and its a lot easier to detect a specific
script exists (and if your script exists, then they must have
greasemonkey, so there is no sense popping up the dialog unless your
script is not detected).  From within the script scope I wish there
was a gmversion variable or something that could be provided for page
scripts if desired.  The annoyingness of the dialog is probably
dependent on how cute the icon is :)  It should probably be one of
those yellow bar things that you can deal with whenever although thats
obviously impossible without a page reload... and then how do you
withdraw a sites privileges, so its obviously a new layer of
complexity of questionable usefulness although I would certainly make
use of it.

On Jul 6, 5:46 pm, Anthony Lieuallen <[email protected]> wrote:
> On 7/6/2009 5:04 PM, Jason Bunting wrote:
>
> > On Mon, Jul 6, 2009 at 1:23 PM, Anthony Lieuallen
> > <[email protected]> wrote:
> >> ...Greasemonkey intentionally does not act this way.
> > While true, it wouldn't be that hard to create a property in the
> > global scope to indicate such. Granted, it pollutes the global scope,
> >  but surely one simple boolean property wouldn't hurt anything...
>
> As I said, GM *intentionally* does not do this.  We don't want site
> owners to be able to (i.e.):
>
> if (window.GreasemonkeyInstalled) {
>    document.location.replace(
>      '/you_cant_use_greasemonkey_with_this_site.html'
>    );
>
>
>
> }
--~--~---------~--~----~------------~-------~--~----~
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