LegacyCollector

Home | Legacy Firefox Extensions | Content Policy | Contact

Enhanced Middle Click

Author(s):



Notice: Due to time constraints and extensive firefox addon api changes this addon has sadly not yet been converted to support multi process functionality. Thanks for understanding.

---

Middle mouse button is rarely used for anything more than opening and closing tabs. With this add-on you can assign additional action like displaying tab history menu, tab list menu or toggle various sidebars.

Enhanced middle click actions are triggered by middle clicking on an empty space of a web page or a document. It tries to be smart enough to ignore active areas like links, input fields, textareas, buttons...

Available actions
* Tab History menu
* Display menu of currently visible tabs
* Bookmarks menu
* Bookmarks Toolbar menu
* Search Selection
* Toggle History sidebar
* Toggle Bookmarks sidebar
* Toggle Tab Groups (Panorama)
* Close current tab
* Restore recently closed tabs
* Toggle tab at position #
* Run custom script // see below for examples

Custom script examples
Set Toogle tab position
Services.prefs.getBranch('extensions.enhancedmiddleclick.').setIntPref('favTabPosition',aWindow.gBrowser.visibleTabs.indexOf(aWindow.gBrowser.tabContainer.selectedItem));

Focus urlBar
aWindow.document.getElementById("urlbar").focus();

Go Back
if(aWindow.gBrowser.canGoBack) { aWindow.gBrowser.goBack(); }

more...

----
The Enhanced Middle Click won't work properly if you have "use autoscrolling" enabled in your preferences. You must first disable it in Preferences > Advanced > General > Use autoscrolling.

Add-on tries to disable general.autoScroll and middlemouse.contentLoadURL on install, but please check those settings if troubles with auto-scrolling and pasting url on middle click persist. Thank you

----
Please read Developer's Comments for more information.

Download files:

enhanced-middle-click-0.2.1.xpi
enhanced-middle-click-0.2.2.xpi
enhanced-middle-click-0.2.3.xpi
enhanced-middle-click-0.2.4.1-signed.xpi
enhanced-middle-click-0.2.xpi
enhanced-middle-click-0.3.1-signed.xpi
enhanced-middle-click-0.3.1.1-signed.xpi
enhanced-middle-click-0.3.2.1-signed.xpi
enhanced-middle-click-0.3.3.1-signed.xpi
enhanced-middle-click-0.4.0.1-signed.xpi
enhanced-middle-click-0.4.1.1-signed.xpi
enhanced-middle-click-0.4.10.xpi
enhanced-middle-click-0.4.11.xpi
enhanced-middle-click-0.4.2.1-signed.xpi
enhanced-middle-click-0.4.3.1-signed.xpi
enhanced-middle-click-0.4.4.1-signed.xpi
enhanced-middle-click-0.4.5.1-signed.xpi
enhanced-middle-click-0.4.6.1-signed.xpi
enhanced-middle-click-0.4.7.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.