[Greasemonkey] Re: Closing firefox tabs
Bill Donnelly
donnelly at snowcrest.net
Tue Jun 20 12:42:54 EDT 2006
you would need:
netscape.security.PrivilegeManager.enablePrivilege
("UniversalBrowserWrite");
http://www.mozilla.org/projects/security/components/signed-scripts.html#privs
the problem is, this ALWAYS pops up an alert notifying the user and
asking for
Okay/Cancel to allow the additional privileges -- normally you should
ALWAYS Cancel
when you see this alert, except when you know you really want to allow
it for
a TRUSTED script --- the point is that, one way or the other, you always
get an alert
(the person who stated elsewhere that top.close() works is incorrect --
the window
they were closing was apparently an owned window that was opened from a
script)
Vectorspace wrote:
> What kind of extra privileges can a GM script request, and how is it
done?
>
> Bill Donnelly wrote:
>> unless you request and allow 'extra privileges' which tends to be a pain
More information about the Greasemonkey
mailing list