Double left/right or triple left clicks on WEBPAGE (not tab) to close tab. Reopen tab by shiftKey + DC/TC. Optional: an icon to…

Latest Version

Version
1.0.9
Update
June 28, 2013
Size
28.6KiB
Developer
mingyi.org
Category
Users
10,000+
Rating
2.71986 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
Tabs
Http://*/*
Https://*/*
See more

Double Click Closes Tab Extension

VERY IMPORTANT NOTE: After installation, double click on the WEB PAGE (NOT TAB!) to close the tab (OR to be safer: change the options to use double right click or triple left click on page) - it's actually faster than clicking on tabs. details see below.

To those wanting \"double click on tab to close\" - Google now made its own extension to do that and more. It uses a plugin mechanism that uses compiled binary code and presents a security risk unless you're sure you can trust the author (of course coming from Google it's likely fine). Without using such mechanism, Chrome extensions cannot receive tab events. Google's extension is called Chrome Toolbox. As for the guy asking me why ChromePlus could do it - answer's simple, ChromePlus is NOT Chrome. It has extra binary code too, and it's not from Google.

To those wanting \"double right click\" - Chrome now fixed their silly issue that prevented this feature, and I put it in DCCT v1.0.8. Please download & enjoy!

This extension offers the following functionalities:
1. Double left click or double right click anywhere inside web page to close the tab (faster than middle click on tab and beats ctrl-w when your left hand's holding a phone or food). Important: if you double left click to select a word, DCCT will not close the tab - no interference with Google Dictionary etc. Double right click always closes tab.
2. An icon that, when clicked, closes current tab. Option's provided to change to duplicate current tab when icon's clicked or hide the icon altogether.
3. No accidental closing of Chrome - option provided to disable closing the last tab of the last Chrome window (Note: click the \"x\" on top right corner of the last window to close Chrome).
4. A feature by user request (optional): Revert the browser behavior when one clicks or ctrl+clicks on a link - clicking link would open link in new background tab instead, while ctrl+click opens link in current tab.

Misc.:
1. If double click is not ideal for you, use the Options page to switch to Triple Clicks. Note: Unlike double-click, triple-click will close the tab even if you triple-clicked on a word.
2. If you accidentally closed a tab - use shift-key + double-click (or triple-click if chosen) to reopen the tab.
3. The icon shows red checkmark if Chrome disabled ALL mouse/keyboard-interacting extensions. A green checkmark's displayed otherwise.
4. Mouseover icon will give you some tips/info.

Known issues:
1. Reverting click/ctrl-click has problems with links with javascripts (on themselves or their parents) - e.g., yahoo mail. It's a very tricky issue and I haven't found a way to deal with it. Maybe a blacklist?
2. If the \"do not close last tab\" feature seems to be unstable for you, try this first - Go to Chrome \"Options\"->\"Basics\" and change \"Home Page\" from \"New Tab\" to \"http://google.com\". Then \"OK\" then try to close the last tab again. It should hopefully
Read more

Source Manifest.json

{ "background": { "page": "background.html", "persistent": false }, "content_scripts": [ { "all_frames": true, "js": [ "js/closetab.js" ], "matches": [ "http://*/*", "https://*/*", "ftp://*/*" ], "run_at": "document_end" } ], "default_locale": "en", "description": "__MSG_extDesc__", "icons": { "128": "icons/128.png", "16": "icons/16.png", "32": "icons/32.png", "48": "icons/48.png" }, "name": "__MSG_extName__", "options_page": "dcct_options.html", "page_action": { "default_icon": "icons/no.png" }, "permissions": [ "tabs", "http://*/*", "https://*/*" ], "update_url": "http://clients2.google.com/service/update2/crx", "version": "1.0.9", "manifest_version": 2}
Read more