Tab Badges

This extension adds number badges to tabs when CTRL-ALT is pressed.

什么是Tab Badges?

Tab Badges是由Bassam Alshamali开发的Chrome扩展程序,该扩展的主要功能是“This extension adds number badges to tabs when CTRL-ALT is pressed.”。

扩展截图

screenshot
screenshot
screenshot

下载Tab Badges扩展crx文件

下载Tab Badges扩展crx格式的文件,手动将Chrome插件安装到浏览器中,也可以将crx文件分享给朋友,轻松安装Chrome插件。

扩展使用说明

                        Tabs a great resource that let you have all your pages consolidated into one window. However, tabs get tedious to navigate when there are a lot open. This extension will add number badges to the tabs' title as such: " {#} - original_title ". The purpose of the number badges is to easily identify the index of the tab you would like to navigate to by using keyboard shortcuts, such as CMD-# on MAC and CTRL-# on WINDOWS. 

To use this extension:
--------------------------------
1. Download the extension.
2. Open a couple of tabs and navigate to web pages.
3. Click on the badge icon next to the address bar to enable tab badges.
4. Press CTRL-ALT while on any of the tabs to toggle state of badges on all tabs.
5. Click on the badge icon next to the address bar to disable tab badges if you want to disable CTRL-ALT to toggle badge state.
Tab badge states can be toggled. If you press CTRL-ALT while the badges are not visible, they will be displayed. If the badges are visible, they will be hidden. 

Note: This extension only works on tabs that have a web page loaded (so if you create a new tab but do not navigate to a website, CTRL-ALT will not show badges on that page).
Also make sure to close the open tabs before downloading the extension to have badges show up on them :)

Further development
-----------------------------

Please let me know if you would like to add anything to this extension! I would be glad to help out. Feel free to email me at [email protected]

Improvements
-------------------

Version 1.1 :
The badge state is disabled initially as indicated by a red badge color. To enable click on the extension, changing its color to the original black badge. Then the alt-ctrl keys are activated to toggle between badged and unbadged tab titles. Remember, to activate click on the *extension* (the black badge next to the address bar). To disable re-click on the extension.

Version 1.2 :
Bug Fix: When multiple instances of browser windows are open, turning the extension off/on may or may not disable/enable the keyboard shortcut (ctrl-alt) to show/hide badges in other windows. Now, if the extension is off or on, all browser windows will have the same behavior.

Version 1.3 :
Feature addition: keeps tabs persistent when opening a new tab and refreshing an existing tab.

Version 1.4 :
Adds a new badge state (temporary) that will allow you to see the badges as long as the ctrl key is pressed. When the ctrl key is released the badges wil disappear. You can activate this badge state by clicking on the extension icon twice until it turns blue. The red (off) state and the black (on) state still have the same behavior as version 1.3. Please see the new attached picture for more information on the different states.

Also, this version fixes some race conditions in which tab titles did not change when you activate/de-activate badge using ctrl-alt quickly. In order to fix this, I had to lag the change in the tab title by a fraction of a second. Thus, when you activate the badges using ctrl-alt (in the persistent case, black badge color) and ctrl in the temporary badge state (blue badge color) you will have to do it a little slower (specifically 350 ms ;)) than usual. Patience is a virtue :D

Any feedback is highly appreciated!

Version 1.5 :
Bug fix: Temporary badge state didn't use to work well on Windows platform because of the way the keydown events are fired in chrome.

Version 1.5.1 :
Bug fix: Much more efficient way of handling keydown events that used to caused inconsistent behavior in showing/hiding badges. 

Version 1.5.2 :
Bug Fix : Store badge state when chrome is closed and reopened so that the image of badge state reflects correct keyboard interaction. Thanks to Pablo Cantero for pointing this out.                    

扩展基本信息

名称 Tab Badges Tab Badges
ID jkbgceecolmgoiokonofdejdhmbhlhee
官方URL https://chromewebstore.google.com/detail/tab-badges/jkbgceecolmgoiokonofdejdhmbhlhee
简介 This extension adds number badges to tabs when CTRL-ALT is pressed.
文件大小 5.55 MB
安装次数 64
当前版本 1.5.2
更新时间 2013-02-20
上架时间 2013-02-19
评分 2.33/5 共3次评分
开发者 Bassam Alshamali
付费类型 free
支持的语言 en
manifest.json
{
    "update_url": "http:\/\/clients2.google.com\/service\/update2\/crx",
    "name": "Tab Badges",
    "version": "1.5.2",
    "manifest_version": 2,
    "description": "This extension adds number badges to tabs when CTRL-ALT is pressed.",
    "icons": {
        "128": "images\/icon.png"
    },
    "browser_action": {
        "default_title": "CTRL-ALT to see your badges!",
        "default_icon": "images\/off.png"
    },
    "background": {
        "scripts": [
            "js\/badges.js"
        ]
    },
    "web_accessible_resources": [
        "images\/icon.png",
        "images\/off.png",
        "images\/temporary.png"
    ],
    "content_scripts": [
        {
            "matches": [
                ""
            ],
            "js": [
                "js\/capture_keyboard_events.js"
            ]
        }
    ],
    "permissions": [
        "tabs"
    ]
}