
Middle Click On Page Closes Tab by Geoffrey De Belie
Middle click on a page to close the current tab.
You'll need Firefox to use this extension
Extension Metadata
About this extension
Middle click on a page to close the current tab. You can middle click by pressing the scroll wheel on your mouse.
Please note that this addon cannot be used alongside Double Click Closes Tab when Double Click Closes Tab is configured to close the current page with the middle mouse button, since that will close two tabs instead of one.
This addon does not work on these pages:
* about: pages
* priviledged websites such as addons.mozilla.org (caused by security restrictions)
* Flash websites
This addon disables autoscrolling by default to make middle mouse click work for everyone. For more information on autoscrolling, see http://www.ghacks.net/2014/10/14/how-to-disable-middle-mouse-button-scrolling-in-chrome/
If you want autoscrolling enabled on every page, you can enable set "Enable autoscrolling" to "On every page" in the options. It works this way:
* Short middle click to close a tab. The autoscrolling icon will be present as long as you don't left click or escape, but it won't do anything. Short is defined as <300ms. This timeout be changed.
* Long middle click: start autoscrolling. Long is defined as >=300ms. This timeout be changed.
If you want autoscrolling enabled on the current page, you can press Shift+Escape on your keyboard (or any other key/shortcut that you have defined in the options). It only works for "on demand" mode. Now autoscrolling is enabled for the current page. It works the same way as above.
Please note that autoscrolling will not work if your mouse/operating system doesn't support it. Please do not set "Enable autoscrolling" to "On every page" if your mouse/operating system does not support autoscrolling.
Please note that this addon cannot be used alongside Double Click Closes Tab when Double Click Closes Tab is configured to close the current page with the middle mouse button, since that will close two tabs instead of one.
This addon does not work on these pages:
* about: pages
* priviledged websites such as addons.mozilla.org (caused by security restrictions)
* Flash websites
This addon disables autoscrolling by default to make middle mouse click work for everyone. For more information on autoscrolling, see http://www.ghacks.net/2014/10/14/how-to-disable-middle-mouse-button-scrolling-in-chrome/
If you want autoscrolling enabled on every page, you can enable set "Enable autoscrolling" to "On every page" in the options. It works this way:
* Short middle click to close a tab. The autoscrolling icon will be present as long as you don't left click or escape, but it won't do anything. Short is defined as <300ms. This timeout be changed.
* Long middle click: start autoscrolling. Long is defined as >=300ms. This timeout be changed.
If you want autoscrolling enabled on the current page, you can press Shift+Escape on your keyboard (or any other key/shortcut that you have defined in the options). It only works for "on demand" mode. Now autoscrolling is enabled for the current page. It works the same way as above.
Please note that autoscrolling will not work if your mouse/operating system doesn't support it. Please do not set "Enable autoscrolling" to "On every page" if your mouse/operating system does not support autoscrolling.
Rate your experience
Report this add-on for abuse
If you think this add-on violates Mozilla's add-on policies or has security or privacy issues, please report these issues to Mozilla using this form.
Please don't use this form to report bugs or request add-on features; this report will be sent to Mozilla and not to the add-on developer.
Support this developer
The developer of this extension asks that you help support its continued development by making a small contribution.
PermissionsLearn more
This add-on needs to:
- Display notifications to you
- Access browser tabs
- Access your data for all websites
More information
- Add-on Links
- Version
- 2.0.0
- Size
- 24.72 KB
- Last updated
- 5 years ago (Mar 26, 2017)
- Related Categories
- License
- GNU General Public License v3.0
- Version History
Add to collection
Release notes for 2.0.0
* Make shortcut to enable autoscrolling in "on demand" mode customizable (changed default from Escape to Shift+Escape)
* Make options refresh on all pages after saving
* Rewrite options to make the UI clearer
* Change default tipping point value to 300ms
* Fix 1.0.0 regression: when "Never enable autoscrolling" is enabled, some tabs don't close on middle click
* Make the default for "Enable autoscrolling" the value "Never".
* Fix: when the page you're on has jQuery loaded, attempt to get the element listeners on the object you middle clicked on. If there are "click" event listeners on that object, execute the default action (which is probably opening a new tab). jQuery "click" event handlers on an element that is higher than 1000 units do not cancel Middle Click On Page Closes Tab.
* Add whitelist for autoscrolling (can also be used as a blacklist for the middle click function)
* Cancel event if any of the parent elements is an A tag.
* Add utils/keyutils.js
* Make options refresh on all pages after saving
* Rewrite options to make the UI clearer
* Change default tipping point value to 300ms
* Fix 1.0.0 regression: when "Never enable autoscrolling" is enabled, some tabs don't close on middle click
* Make the default for "Enable autoscrolling" the value "Never".
* Fix: when the page you're on has jQuery loaded, attempt to get the element listeners on the object you middle clicked on. If there are "click" event listeners on that object, execute the default action (which is probably opening a new tab). jQuery "click" event handlers on an element that is higher than 1000 units do not cancel Middle Click On Page Closes Tab.
* Add whitelist for autoscrolling (can also be used as a blacklist for the middle click function)
* Cancel event if any of the parent elements is an A tag.
* Add utils/keyutils.js
More extensions by Geoffrey De Belie
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet