[RESOLVED] How to enable new keystroke shortcuts?

Ask for help about NoScript, no registration needed to post
User avatar
glnz
Junior Member
Posts: 25
Joined: Sat Sep 04, 2010 12:43 pm

[RESOLVED] How to enable new keystroke shortcuts?

Post by glnz »

In NoScript v 2.2, Mr. Maone says:

noscript.keys.tempAllowPage about:config preference to configure a keyboard shortcut for "Temporarily allow all this page"
noscript.keys.revokeTemp about:config preference to configure a keyboard shortcut for "Revoke temporary permissions"
noscript.menuAccelerators about:config preference to switch keyboard accelerators for "(Temporary) allow all this page" menu items on/off

I would like to implement keystroke shortcuts for these but don't know how to do it. I'm not a genius geekster like Mr. Maone. How do I do this? Yes, I have slightly modified the about:config page before, but only following step-by-step directions.

Who can guide me?

Thanks.

PS My wife does her browsing inside aol.com and thinks I'm a lunatic for focusing so much on security in Firefox. But sometimes lunacy can be fun.
Last edited by Tom T. on Mon Nov 21, 2011 12:25 am, edited 1 time in total.
Reason: mark as resolved
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: How to enable new keystroke shortcuts?

Post by Tom T. »

glnz wrote:In NoScript v 2.2, Mr. Maone says:

noscript.keys.tempAllowPage about:config preference to configure a keyboard shortcut for "Temporarily allow all this page"
noscript.keys.revokeTemp about:config preference to configure a keyboard shortcut for "Revoke temporary permissions"
noscript.menuAccelerators about:config preference to switch keyboard accelerators for "(Temporary) allow all this page" menu items on/off

I would like to implement keystroke shortcuts for these but don't know how to do it. I'm not a genius geekster like Mr. Maone. How do I do this? Yes, I have slightly modified the about:config page before, but only following step-by-step directions.

Who can guide me?
In about:config, type noscript.keys in the Filter Bar, to bring up these preferences.
Double-click on the ones you want to modify.
A box will pop up, with either a default value or a blank.
If blank, just type in your preferred shortcut. If not blank, select (highlight) the existing text, and just write over it. (or delete it first, if that is more comfortable.)
When done, click OK.
When finished with all, close about:config.
Done.

The format for entering your desired shortcuts is in FAQ 3.11.
As you can see, shortcuts are specified as a combination of some modifiers ("ctrl", "shift", "alt") followed by one character (e.g. "A", "1", "Z")
I would avoid the "virtual keycodes" and the pairing of them until you are more comfortable with this, or until it becomes necessary, if ever.
Thanks.
You're very welcome.
PS My wife does her browsing inside aol.com and thinks I'm a lunatic for focusing so much on security in Firefox. But sometimes lunacy can be fun.
Having one's computer infected is no fun at all. It can be inconvenient and expensive, especially after your identity is stolen or your bank account login credentials are used to drain your account. Even less fun is having your computer be "owned" (slang; "pwned'), by someone on a different continent (or across the street, for that matter), who *silently* operates your computer from his, sending spam from your address, logging every keystroke, ... or sends child porn from your machine, and the police come crashing through your door. :cry:

You are the rational one, not a lunatic. Random surveys have shown that at least 80-90% of home computers are infected with *at least* one form of malware, often several. (I have two friends who became infected. So I know personally that this happens often.)

Please try to persuade your wife to use Firefox + NoScript. She can still have IM, etc. There is a learning curve, but not that long, especially if you help her.
Also show her the NoScript Quick Start Guide, written in non-tech language, to see how simple it can be.

If she has problems or questions that you can't help her with, let her know that we are always glad to help. Thanks.

P. S:
I'm not a genius geekster like Mr. Maone.
Very few people on the planet are genius geeksters on Mr. Maone's level. :ugeek: :)
Last edited by Tom T. on Thu Nov 17, 2011 2:38 am, edited 1 time in total.
Reason: typo
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24
User avatar
glnz
Junior Member
Posts: 25
Joined: Sat Sep 04, 2010 12:43 pm

Re: How to enable new keystroke shortcuts?

Post by glnz »

Tom T: Thanks - looks good. I like being able to program this as requiring two keystrokes, by putting a dot between the keystrokes in the about:config entries.

Edit: alt shift r.alt shift r stopped working for revoke temporary permissions. So just changed that to alt shift k.alt shift k and it's working again.
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: How to enable new keystroke shortcuts?

Post by Tom T. »

You're very welcome. The only reason that I suggested avoiding the more complex ones (virtual, paired) was the modesty expressed in your OP, about not being comfortable in about:config. ;) Glad you have it down pat now, and will mark as Resolved.

GL with persuading the wife...

O/T, but might as well share: Were you aware that in Windows, you can create a keyboard shortcut to *any* program, folder, file, or anything else on the machine?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24
User avatar
glnz
Junior Member
Posts: 25
Joined: Sat Sep 04, 2010 12:43 pm

Re: [RESOLVED] How to enable new keystroke shortcuts?

Post by glnz »

Tom: A glitch. Now for the second time, my keystroke combo for revoke temporary permissions doesn't work all the time. It works on wsj.com (Wall Street Journal online) but does not work here for informaction.com. Is alt shift k used elsewhere?
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: [RESOLVED] How to enable new keystroke shortcuts?

Post by Tom T. »

glnz wrote:Tom: A glitch. Now for the second time, my keystroke combo for revoke temporary permissions doesn't work all the time. It works on wsj.com (Wall Street Journal online) but does not work here for informaction.com. Is alt shift k used elsewhere?
Yes, it clicks "Save draft" button here. Probably why it doesn't work here, but works elsewhere.
Also, alt shift r seemed to return me to the Board Index here. Didn't mention that before, because you'd already worked around it.

TBH, I don't use the NS keyboard shortcuts, although I use a lot of them in Windows. What your two issues have in common is using alt shift. Try ctrl shift + * and see if that produces fewer collisions.

I'll see if I can dig up the list of shortcuts used here.

ETA: Here are all of Firefox's keyboard shortcuts, with a note that
Note: Firefox does not provide any method of customizing keyboard shortcuts. In order to be able to do that, you need to update Firefox to its latest version and install the Customizable Shortcuts extension
By "update", they mean that I'm on 3.6.24, and the Customizable Shortcuts add-on requires Fx 4+. Some of the reviews were not too favorable, but it was updated Oct. 27, 2011, hopefully addressing those issues.

Otherwise, you'll have to keep that Firefox reference page handy, or copy as a text doc, to avoid collisions, it looks like.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24
User avatar
glnz
Junior Member
Posts: 25
Joined: Sat Sep 04, 2010 12:43 pm

Re: [RESOLVED] How to enable new keystroke shortcuts?

Post by glnz »

Thanks. Moved both to alt ctrl shift, and they seem to be working.
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: [RESOLVED] How to enable new keystroke shortcuts?

Post by Tom T. »

glnz wrote:Thanks. Moved both to alt ctrl shift, and they seem to be working.
Cool. :) The other combo that hasn't been mentioned in this thread is ctrl alt, although Windows uses that as a standard for those DIY shortcuts mentioned earlier. I have a lot of those, but if you don't, that might work also. Cheers.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24
RobDownUnder
Posts: 4
Joined: Mon Apr 07, 2014 6:27 am

Re: [RESOLVED] How to enable new keystroke shortcuts?

Post by RobDownUnder »

Thanks for info.
Can one add extra entries into the NoScript.keys about:config
Say one for "allow all this page"
Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: [RESOLVED] How to enable new keystroke shortcuts?

Post by Thrawn »

I don't recommend using "Allow All This Page" so habitually that it needs a shortcut...
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: [RESOLVED] How to enable new keystroke shortcuts?

Post by barbaz »

I think you would be better off using a hotkey only for "Temporarily allow all this page", and clicking "Make page permissions permanent" in the menu when you want to save those permissions.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
Post Reply