Page 1 of 1

[RESOLVED] How to enable new keystroke shortcuts?

Posted: Wed Nov 16, 2011 5:31 pm
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.

Re: How to enable new keystroke shortcuts?

Posted: Thu Nov 17, 2011 2:37 am
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: :)

Re: How to enable new keystroke shortcuts?

Posted: Sun Nov 20, 2011 4:54 pm
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.

Re: How to enable new keystroke shortcuts?

Posted: Mon Nov 21, 2011 12:22 am
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?

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

Posted: Mon Nov 21, 2011 12:33 am
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?

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

Posted: Mon Nov 21, 2011 5:19 am
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.

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

Posted: Mon Nov 21, 2011 9:39 am
by glnz
Thanks. Moved both to alt ctrl shift, and they seem to be working.

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

Posted: Mon Nov 21, 2011 10:20 am
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.

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

Posted: Tue Apr 08, 2014 4:36 am
by RobDownUnder
Thanks for info.
Can one add extra entries into the NoScript.keys about:config
Say one for "allow all this page"

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

Posted: Tue Apr 08, 2014 6:44 am
by Thrawn
I don't recommend using "Allow All This Page" so habitually that it needs a shortcut...

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

Posted: Tue Apr 08, 2014 1:32 pm
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.