LegacyCollector

Home | Legacy Firefox Extensions | Content Policy | Contact

My Keyboard Navigator

Author(s):



*** Version 0.8.3 is a hybrid WebExtension ***
Until Mozilla extend the relevant WebExtension APIs, this addon can only remain as a hybrid WebExtension. Hybrid WebExtension addons are supported up to Firefox 56.


Keyboard Button
This nice keyboard image is created by IconDB.

* * * * *
SHIFT-key is the default hot-key.
Hotkey can be changed to using function keys F1 - F12. (screenshot 4)

Hints for links/forms/textboxes on websites.
********************
1. Press hot-key. Hints will appear, as seen in screenshot 1.
2. Typing the hint's number will open them in a new tab.
3. To change how links will act, type R to show this list:
- RR - Go to
- RE - Open link on current page
- RW - Open link on a new tab
- RQ - Open and switch to a new tab
4. Type the hot-key again to remove the hints.

Hints numbering, keywords and colors can be changed in about:my-keyboard-navigator. This feature can also be enabled-disabled as seen in screenshot 2.

Note: mode will deactivate on mouse move, page unload or when Esc, Enter, Ctrl, Alt keys are used

Other features
********************
A) Create shortcuts for menus and toolbar-buttons.
To set up, go to about:my-keyboard-navigator...
- Menu Bar Pane: Type in keywords for the menus that we need (screenshot 3)
- Tabs Bar Pane: Type in keywords for the toolbar-buttons that we need.
- Navigation Toolbar Pane: Type in keywords for the toolbar-buttons that we need.
- Keyword Pane: A summary of all the keywords created above. (screenshot 4)

Tip: Use more than one letter as keywords so that the info box will show all shortcuts having the same initial letters, as seen in screenshot 1.

To use:
1. Type the hot-key.
2. Type the keyword created above to activate the shortcut.

Note: Mac users won't have this feature since Firefox interface is different in Mac-OS. The pages for these panes will be blank.

B) Create customized codes with Javascript.
The Advanced pane in about:my-keyboard-navigator can be used to create any keyboard shortcuts imaginable for the Firefox browser. Screenshot 5 shows some of these possibilities. For users using the error console, if the codes don't work, see if there are any messages there with the format [My Keyboard Navigator] + message.

Code Examples

---------------------------------

// Exit Firefox
window.goQuitApplication();


---------------------------------

// Enable-Disable (restartless) add-on
// One way to find the AddonID is to use the add-on "Foxy Detective" and hover over the extension in about:addons.
window.AddonManager.getAddonByID('AddonID', function(aAddon) { aAddon.userDisabled = !aAddon.userDisabled; });


---------------------------------

// Enable-Disable (non-restartless) add-on
// One way to find the AddonID is to use the add-on "Foxy Detective" and hover over the extension in about:addons.
window.AddonManager.getAddonByID('AddonID', function(aAddon) { aAddon.userDisabled = !aAddon.userDisabled; });

// Restart Now
window.BrowserUtils.restartApplication();


---------------------------------

// First input box on page [ Focus ]
var doc = window.content.document;
var textbox = doc.evaluate('//input[@type="text"]', doc, null, window.content.XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null).snapshotItem(0);
textbox.focus();


---------------------------------

// Cookies [ Remove All ]
window.Services.cookies.removeAll();


---------------------------------

// Switch between English (en-US) and Chinese (zh-CN)

var prefs = window.Services.prefs.getBranch("general.useragent.");
var current = prefs.getCharPref("locale");
prefs.setCharPref("locale", current == "en-US" ? "zh-CN" : "en-US");

// Restart Now
window.BrowserUtils.restartApplication();

---------------------------------


Download files:

my-keyboard-navigator-0.2.5.xpi
my-keyboard-navigator-0.3.5.xpi
my-keyboard-navigator-0.4.1.1-signed.xpi
my-keyboard-navigator-0.4.9.1-signed.xpi
my-keyboard-navigator-0.6.2.1-signed.xpi
my-keyboard-navigator-0.6.5.1-signed.xpi
my-keyboard-navigator-0.6.7.xpi
my-keyboard-navigator-0.7.0.xpi
my-keyboard-navigator-0.7.3.xpi
my-keyboard-navigator-0.7.5.xpi
my-keyboard-navigator-0.7.7.xpi
my-keyboard-navigator-0.8.1.xpi
my-keyboard-navigator-0.8.2.xpi
my-keyboard-navigator-0.8.3.xpi




This page is part of the LegacyCollector website.
Disclaimer: All material on this site is property of their respective owners and available under
open licenses to the best of our knowledge. If you are an author and would like anything removed,
then please write an e-mail to legacy [at] collector dot org.