Page 1 of 1

Allow Scripts Globally

Posted: Wed Nov 03, 2010 10:03 am
by Yuri
Is there a way to have that option removed? just people who are using my system have realised its use but of course theres no way for me to password protect the addon or anything of the sort just glad they havn't realised the disable addon yet.

Re: Allow Scripts Globally

Posted: Wed Nov 03, 2010 1:51 pm
by Steev
If you hover over the NoScript icon in the bottom right corner of your browser, and then click on options-> appearance, you can deselect the Allow Scripts Globally (remove the check mark), and it doesn't show in the context menu anymore.

Try that.

Re: Allow Scripts Globally

Posted: Thu Nov 04, 2010 1:42 am
by RogueSpear
I've had some enterprising users discover their way around hiding the option. Some even went so far as to check the box to trust all bookmarked sites. I've been putting together a Firefox installer for a couple of years now and have been messing with Firefox 4 lately. Unfortunately it seems that lockPref either doesn't work properly or is intentionally disabled during the beta, but either way I needed to come up with something. In the end I found that editing the file noscriptOptions.xul which is located in the noscript.jar file did the trick for me. Just locate the line that defines the interface option you want to hide and insert a hidden="true" in the line. An example would be:

Code: Select all

<checkbox id="jsglobal" label="&noscriptGloballyEnabled;" />
which is the line responsible for showing the option to allow scripts globally. Change it to:

Code: Select all

<checkbox id="jsglobal" label="&noscriptGloballyEnabled;" hidden="true" />
I've also been hiding the options allow entire page, temp allow entire page, and the context menu option allow globally. It often feels as though I spend most of my time figuring out how to protect users from themselves and simultaneously keep upper management happy by not locking things down too tight.