Keyconfig extension: Firefox: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
mNo edit summary
Line 4: Line 4:


==Firefox Functions==
==Firefox Functions==
{|
 
|'''Open Location'''
===Open Location===
|-
''Menu:'' File -> Open Location
|''Menu:'' File -> Open Location
 
|-
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Open Location", "!][][][gBrowser.loadURI('http://www.mozilla.org/');");</div>
| <div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Open Location", "!][][][gBrowser.loadURI('http://www.mozilla.org/');");</div>
 
|-
===Extensions===
|'''Extensions'''
''Menu:'' Tools -> Extensions
|-
 
|''Menu:'' Tools -> Extensions
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Extensions", "!][][][BrowserOpenExtensions('extensions');");</div>
|-
 
| <div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Extensions", "!][][][BrowserOpenExtensions('extensions');");</div>
===Themes===
|-
''Menu:'' Tools -> Themes
|'''Themes'''
 
|-
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Themes", "!][][][BrowserOpenExtensions('themes');");</div>
|''Menu:'' Tools -> Themes
 
|-
===Bookmarks Manager===
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Themes", "!][][][BrowserOpenExtensions('themes');");</div>
''Menu:'' Bookmarks -> Manage Bookmarks
|-
 
|'''Bookmarks Manager'''
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Manage Bookmarks", "!][][][toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');");</div>
|-
 
|''Menu:'' Bookmarks -> Manage Bookmarks
===Next Tab===
|-
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Next Tab", "!][][][gBrowser.mTabContainer.advanceSelectedTab(1);");</div>
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Manage Bookmarks", "!][][][toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');");</div>
 
|-
===Previous Tab===
|'''Next Tab'''
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Previous Tab", "!][][][gBrowser.mTabContainer.advanceSelectedTab(-1);");</div>
|-
 
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Next Tab", "!][][][gBrowser.mTabContainer.advanceSelectedTab(1);");</div>
===Reload All Tabs===
|-
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Reload All Tabs", "!][][][gBrowser.reloadAllTabs();");</div>
|'''Previous Tab'''
 
|-
===Close Tab and Focus to the left Tab===
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Previous Tab", "!][][][gBrowser.mTabContainer.advanceSelectedTab(-1);");</div>
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Close Tab & Focus to the left", "!][][][var tab = gBrowser.mCurrentTab; if(tab.previousSibling) gBrowser.mTabContainer.selectedIndex--; gBrowser.removeTab(tab);");</div>
|-
 
|'''Reload All Tabs'''
===Close Tab and Focus to the right Tab===
|-
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Close Tab & Focus to the right", "!][][][var tab = gBrowser.mCurrentTab; if(tab.nextSibling) gBrowser.mTabContainer.selectedIndex++; gBrowser.removeTab(tab);"); </div>
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Reload All Tabs", "!][][][gBrowser.reloadAllTabs();");</div>
 
|-
===Close current Tab===
|'''Close Tab and Focus to the left Tab'''
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">var tab = gBrowser.mCurrentTab;
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Close Tab & Focus to the left", "!][][][var tab = gBrowser.mCurrentTab; if(tab.previousSibling) gBrowser.mTabContainer.selectedIndex--; gBrowser.removeTab(tab);");</div>
|-
|'''Close Tab and Focus to the right Tab'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Close Tab & Focus to the right", "!][][][var tab = gBrowser.mCurrentTab; if(tab.nextSibling) gBrowser.mTabContainer.selectedIndex++; gBrowser.removeTab(tab);"); </div>
|-
|'''Close current Tab'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">var tab = gBrowser.mCurrentTab;
gBrowser.removeTab(tab);</div>
gBrowser.removeTab(tab);</div>
|-
|'''Bookmark Keyword'''
|-
|Opens the bookmark with the specified keyword. Replace the string KEYWORD with your bookmark's keyword.
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Keyword 1", "!][][][if(window.loadURI) loadURI(getShortcutOrURI('KEYWORD',{}));");</div>
|-
|'''Back Menu'''
|-
| Similar to the menu that appears when right-clicking the Back Button. If the menu is too low, decrease the 25 in the following line; if it is too high, increase it.
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Back Menu", '!][][][var elm = document.getElementById("back-button"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height + 25; document.getElementById("backMenu").showPopup(elm, x, y, "popup", null, null);');</div>
|-
|'''Forward Menu'''
|-
| Similar to the menu that appears when right-clicking the Forward Button. If the menu is too low, decrease the 25 in the following line; if it is too high, increase it.
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Forward Menu", '!][][][var elm = document.getElementById("forward-button"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height + 25; document.getElementById("forwardMenu").showPopup(elm, x, y, "popup", null, null);');</div>
|-
|'''Focus Content'''
|-
|Activate the selected content, as if you clicked on it. You need this, for example, if you want to scroll with the cursor keys and nothing happens.
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Focus Content", "!][][][_content.focus();");</div>
|-
|'''Scroll Page Down'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Page Down", "!][][][goDoCommand('cmd_scrollPageDown');");</div>
|-
|'''Scroll Page Up'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Page Up", "!][][][goDoCommand('cmd_scrollPageUp');");</div>
|-
|'''Scroll to the Bottom'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Scroll Bottom", "!][][][goDoCommand('cmd_scrollBottom');");</div>
|-
|'''Scroll to the Top'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Scroll Top", "!][][][goDoCommand('cmd_scrollTop);");</div>
|-
|'''Scroll Line Down'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Scroll Line Down", "!][][][goDoCommand('cmd_scrollLineDown);");</div>
|-
|'''Scroll Line Up'''
|-
|<div style="font-family: monospace; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em;">user_pref("keyconfig.main.xxx_key__Scroll Line Up", "!][][][goDoCommand('cmd_scrollLineUp);");</div>
|}


===Bookmark Keyword===
Opens the bookmark with the specified keyword. Replace the string KEYWORD with your bookmark's keyword.
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Keyword 1", "!][][][if(window.loadURI) loadURI(getShortcutOrURI('KEYWORD',{}));");</div>
===Back Menu===
Similar to the menu that appears when right-clicking the Back Button. If the menu is too low, decrease the 25 in the following line; if it is too high, increase it.
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Back Menu", '!][][][var elm = document.getElementById("back-button"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height + 25; document.getElementById("backMenu").showPopup(elm, x, y, "popup", null, null);');</div>
===Forward Menu===
Similar to the menu that appears when right-clicking the Forward Button. If the menu is too low, decrease the 25 in the following line; if it is too high, increase it.
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Forward Menu", '!][][][var elm = document.getElementById("forward-button"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height + 25; document.getElementById("forwardMenu").showPopup(elm, x, y, "popup", null, null);');</div>
===Focus Content===
Activate the selected content, as if you clicked on it. You need this, for example, if you want to scroll with the cursor keys and nothing happens.
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Focus Content", "!][][][_content.focus();");</div>
===Scroll Page Down===
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Page Down", "!][][][goDoCommand('cmd_scrollPageDown');");</div>
===Scroll Page Up===
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Page Up", "!][][][goDoCommand('cmd_scrollPageUp');");</div>
===Scroll to the Bottom===
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Scroll Bottom", "!][][][goDoCommand('cmd_scrollBottom');");</div>
===Scroll to the Top===
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Scroll Top", "!][][][goDoCommand('cmd_scrollTop);");</div>
===Scroll Line Down===
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Scroll Line Down", "!][][][goDoCommand('cmd_scrollLineDown);");</div>
===Scroll Line Up===
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Scroll Line Up", "!][][][goDoCommand('cmd_scrollLineUp);");</div>
===Zap Images===
Based on [http://www.squarefree.com/ Jesse Ruderman]'s [http://www.squarefree.com/bookmarklets/ bookmarklet] [http://www.squarefree.com/bookmarklets/zap.html#zap_images Zap Images]
<div style="font-family: monospace; font-size: small; border: 1px dashed #2f6fab; color: black; padding: 1em; background-color: #f9f9f9; line-height: 1.5em; margin-bottom: 2em;">user_pref("keyconfig.main.xxx_key__Zap Image", "!][][][(function(){\n  function toArray (c){\n    var a, k;\n    a=new Array;\n    for (k=0; k < c.length; ++k) a[k]=c[k];\n    return a;\n  }\n  var images, img, altText;\n  images=toArray(content.document.images);\n  for (var i=0; i < images.length; ++i){\n    img=images[i];\n    altText=content.document.createTextNode(img.alt);\n    img.parentNode.replaceChild(altText, img)\n  }\n})();][chrome://browser/content/browser.xul");</div>


==Extensions==
==Extensions==

Revision as of 23:24, 19 October 2005

These are a series of preferences you can add to your prefs.js file in your profile folder (but NOT the user.js file; see the Keyconfig extension page for why) to add more functions that you can map to keyboard shortcuts using the Keyconfig extension.

Firefox Functions

Open Location

Menu: File -> Open Location

user_pref("keyconfig.main.xxx_key__Open Location", "!][][][gBrowser.loadURI('http://www.mozilla.org/');");

Extensions

Menu: Tools -> Extensions

user_pref("keyconfig.main.xxx_key__Extensions", "!][][][BrowserOpenExtensions('extensions');");

Themes

Menu: Tools -> Themes

user_pref("keyconfig.main.xxx_key__Themes", "!][][][BrowserOpenExtensions('themes');");

Bookmarks Manager

Menu: Bookmarks -> Manage Bookmarks

user_pref("keyconfig.main.xxx_key__Manage Bookmarks", "!][][][toOpenWindowByType('bookmarks:manager', 'chrome://browser/content/bookmarks/bookmarksManager.xul');");

Next Tab

user_pref("keyconfig.main.xxx_key__Next Tab", "!][][][gBrowser.mTabContainer.advanceSelectedTab(1);");

Previous Tab

user_pref("keyconfig.main.xxx_key__Previous Tab", "!][][][gBrowser.mTabContainer.advanceSelectedTab(-1);");

Reload All Tabs

user_pref("keyconfig.main.xxx_key__Reload All Tabs", "!][][][gBrowser.reloadAllTabs();");

Close Tab and Focus to the left Tab

user_pref("keyconfig.main.xxx_key__Close Tab & Focus to the left", "!][][][var tab = gBrowser.mCurrentTab; if(tab.previousSibling) gBrowser.mTabContainer.selectedIndex--; gBrowser.removeTab(tab);");

Close Tab and Focus to the right Tab

user_pref("keyconfig.main.xxx_key__Close Tab & Focus to the right", "!][][][var tab = gBrowser.mCurrentTab; if(tab.nextSibling) gBrowser.mTabContainer.selectedIndex++; gBrowser.removeTab(tab);");

Close current Tab

var tab = gBrowser.mCurrentTab; gBrowser.removeTab(tab);

Bookmark Keyword

Opens the bookmark with the specified keyword. Replace the string KEYWORD with your bookmark's keyword.

user_pref("keyconfig.main.xxx_key__Keyword 1", "!][][][if(window.loadURI) loadURI(getShortcutOrURI('KEYWORD',{}));");

Back Menu

Similar to the menu that appears when right-clicking the Back Button. If the menu is too low, decrease the 25 in the following line; if it is too high, increase it.

user_pref("keyconfig.main.xxx_key__Back Menu", '!][][][var elm = document.getElementById("back-button"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height + 25; document.getElementById("backMenu").showPopup(elm, x, y, "popup", null, null);');

Forward Menu

Similar to the menu that appears when right-clicking the Forward Button. If the menu is too low, decrease the 25 in the following line; if it is too high, increase it.

user_pref("keyconfig.main.xxx_key__Forward Menu", '!][][][var elm = document.getElementById("forward-button"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height + 25; document.getElementById("forwardMenu").showPopup(elm, x, y, "popup", null, null);');

Focus Content

Activate the selected content, as if you clicked on it. You need this, for example, if you want to scroll with the cursor keys and nothing happens.

user_pref("keyconfig.main.xxx_key__Focus Content", "!][][][_content.focus();");

Scroll Page Down

user_pref("keyconfig.main.xxx_key__Page Down", "!][][][goDoCommand('cmd_scrollPageDown');");

Scroll Page Up

user_pref("keyconfig.main.xxx_key__Page Up", "!][][][goDoCommand('cmd_scrollPageUp');");

Scroll to the Bottom

user_pref("keyconfig.main.xxx_key__Scroll Bottom", "!][][][goDoCommand('cmd_scrollBottom');");

Scroll to the Top

user_pref("keyconfig.main.xxx_key__Scroll Top", "!][][][goDoCommand('cmd_scrollTop);");

Scroll Line Down

user_pref("keyconfig.main.xxx_key__Scroll Line Down", "!][][][goDoCommand('cmd_scrollLineDown);");

Scroll Line Up

user_pref("keyconfig.main.xxx_key__Scroll Line Up", "!][][][goDoCommand('cmd_scrollLineUp);");

Zap Images

Based on Jesse Ruderman's bookmarklet Zap Images

user_pref("keyconfig.main.xxx_key__Zap Image", "!][][][(function(){\n function toArray (c){\n var a, k;\n a=new Array;\n for (k=0; k < c.length; ++k) a[k]=c[k];\n return a;\n }\n var images, img, altText;\n images=toArray(content.document.images);\n for (var i=0; i < images.length; ++i){\n img=images[i];\n altText=content.document.createTextNode(img.alt);\n img.parentNode.replaceChild(altText, img)\n }\n})();][chrome://browser/content/browser.xul");

Extensions

Enhanced Bookmark Search

Search Bookmarks
Menu: Bookmarks -> Search Bookmarks
user_pref("keyconfig.main.xxx_key__Search Bookmarks", "!][][][window.openDialog('chrome://bcpm/content/findBookmark.xul', 'FindBookmarksWindow', 'dialog=no,centerscreen,resizable=no,chrome,dependent');");


Googlebar

Clear search history
Googlebar Button -> Clear search history
user_pref("keyconfig.main.xxx_key__Googlebar - Clear search history", "!][][][googlebarClearHistory( true )");
Up a directory
Like pressing the button "Up a directory"
user_pref("keyconfig.main.xxx_key__Googlebar - Up a directory", "!][][][googlebarUp(event)");
Up a directory (Popup Menu)
Opens the popup menu of the button "Up a directory"
user_pref("keyconfig.main.xxx_key__Googlebar - Up a directory (Popup Menu)", '!][][][var elm = document.getElementById("up-dir-popup"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height + 25; document.getElementById("up-dir-popup").showPopup(elm, x, y, "popup", null, null);');
Highlight search terms (Toggle)
user_pref("keyconfig.main.xxx_key__Googlebar - Highlight search terms (Toggle)", "!][][][googlebarHighLightInPage()");


Highlighter

Highlight selected text
user_pref("keyconfig.main.xxx_key__Highlighter - Highlight selected text", "!][][][Highlighter.highlightDoc()");
enable "Instant Highlight" (Toggle)
Selecting any text will automatically highlight it
user_pref("keyconfig.main.xxx_key__Highlighter - enable Instant Highlight", "!][][][Highlighter.toggleInstantHighlight()");


Menu Editor

Open Preferences for Menu Editor
Menu: Tools -> Extensions -> Menu Editor -> Options
user_pref("keyconfig.main.xxx_key__Menu Editor Preferences", "!][][][openDialog('chrome://menuedit/content/menueditprefs.xul',, 'resizable');");


miniT or Tab Mix

Move Tab to the end of the tab bar
user_pref("keyconfig.main.xxx_key__Move Tab to the End", "!][][][gBrowser.moveTabTo(gBrowser.mCurrentTab,gBrowser.mTabContainer.childNodes.length-1);");
Move Tab to the left
user_pref("keyconfig.main.xxx_key__Move Tab to the Left", "!][][][if(gBrowser.mCurrentTab.previousSibling) gBrowser.moveTabTo(gBrowser.mCurrentTab,gBrowser.mCurrentTab.ordinal-1);");
Move Tab to the right
user_pref("keyconfig.main.xxx_key__Move Tab to the Right", "!][][][if(gBrowser.mCurrentTab.nextSibling) gBrowser.moveTabTo(gBrowser.mCurrentTab,gBrowser.mCurrentTab.ordinal+1);");
Move Tab to the start of the tab bar
user_pref("keyconfig.main.xxx_key__Move Tab to the Start", "!][][][gBrowser.moveTabTo(gBrowser.mCurrentTab,0);");


Mouse Gestures

Duplicate Tab
user_pref("keyconfig.main.xxx_key__Mouse Gestures - Duplicate Tab", "!][][][mgB_DuplicateTab()");
Duplicate Window
user_pref("keyconfig.main.xxx_key__Mouse Gestures - Duplicate Window", "!][][][mgB_DuplicateWindow()");


SessionSaver

Capture Default Session
Menu: File -> Capture
user_pref("keyconfig.main.xxx_key__SessionSaver - Capture Default Session", "!][][][SessionSaver.hiddenObserver.observe(null, 'SessionSaver-CaptureAll', null);");
Restore Default Session
Menu: File -> Restore Session
user_pref("keyconfig.main.xxx_key__SessionSaver - Restore Default Session", "!][][][SessionSaver.sessionRecall(null, SessionSaver.prefBranchStatic + SessionSaver.staticBranchDefault)");
Capture New Session
Menu: Tools -> SessionSaver -> New
user_pref("keyconfig.main.xxx_key__SessionSaver - Capture New Session", "!][][][SessionSaver.sessionPrompt();");
SnapBack Tab
Menu: Tools -> SnapBack Tab
(works in SessionSaver 0.2 d1 nightly 26 and up)
user_pref("keyconfig.main.xxx_key__SessionSaver - SnapBack Tab", "control shift][W][][SessionSaver.snapBackTab(SessionSaver.snapback_noFX, SessionSaver.snapback_willFocus)");


Show Anchors

Show Anchors (Toggle)
Like right-clicking and selecting "Show Anchors"
user_pref("keyconfig.main.xxx_key__Show Anchors Toggle", "!][][][Objshowanchors.change();");


Undoclosetab enhanced

Retrieve closed tabs (Popup Menu)
Like clicking on the button "Retrieve tabs that you've closed". The button must be visible.
user_pref("keyconfig.main.xxx_key__Undoclosetab - Retrieve closed tabs (Popup Menu)", '!][][][var elm = document.getElementById("undoclose-popup"); var x = elm.boxObject.x; var y = elm.boxObject.y + elm.boxObject.height;

document.popupNode=elm;

document.getElementById("undoclose-popup").showPopup(elm, x, y, "popup", null, null);');