Allow Scripts Globally

Ask for help about NoScript, no registration needed to post
Yuri

Allow Scripts Globally

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
Steev

Re: Allow Scripts Globally

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
RogueSpear
Posts: 1
Joined: Thu Nov 04, 2010 1:18 am

Re: Allow Scripts Globally

Post 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.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Firefox/3.6.12
Post Reply