Close Duplicate Tabs EN
igorlogius · Firefox
Shows how many duplicate tabs there are in your window and closes them with one click.
截图
简介
Shows how many duplicate tabs there are in your window and closes them with one click. The tab you are looking at, or otherwise the right-most copy, is always kept.
Quick start
- Look at the badge on the toolbar button. The orange number is the count of duplicate tabs in your current window. No badge means there are no duplicates.
- Click the toolbar button to close all of them. Hover over the button to see the same count in the tooltip ("Close 3 Duplicates").
You can also assign a keyboard shortcut to the toolbar button in the Add-ons Manager (Manage Extension Shortcuts).
What counts as a duplicate
Two tabs are duplicates when all of this is true:
- they are in the same window
- they are in the same container (a tab in a container is never a duplicate of a tab outside of it, or in another container)
- they have the same address
When addresses are compared, the part after the # is ignored, and the order of the parameters does not matter. These addresses are all the same page:
https://example.com/list?sort=asc&page=2
https://example.com/list?page=2&sort=asc
https://example.com/list?page=2&sort=asc#top
Addresses with different parameter values are different pages.
The following tabs are never counted or closed:
- pinned tabs
- hidden tabs
- tabs that are still loading
Only the window that you used last is checked. Tabs in other windows are left alone.
Which tab is kept
Of a group of identical tabs:
- the tab you are looking at is kept, if it is one of them
- otherwise the right-most one is kept
All other copies are closed, so the left-most copies go first.
Good to know
- The count is refreshed every 5 seconds. A click closes the tabs that were counted at the last refresh.
- If there are no duplicates, a click does nothing.
- Closing is done in one step and the tabs are not saved anywhere. If you need a tab back, use "Undo Close Tab" in the tab context menu of Firefox or the history.
Custom toolbar icon
You can replace the icon of the toolbar button with your own picture.
- Right click the toolbar button and choose "Set custom icon".
- On the page that opens, click "Choose Image" and pick a JPG or PNG file.
- The picture is resized to 128 by 128 pixels and the toolbar icon changes right away. A preview is shown on the page. A square picture avoids stretching.
The icon is remembered and restored whenever the browser starts. Choose another image any time to change it again.
Permissions and privacy
- tabs: read the addresses of the tabs to compare them, and close the duplicates.
- cookies: read the container of each tab, so that tabs in different containers are not mixed up.
- storage: keep your custom icon on your computer.
- menus: add "Set custom icon" to the menu of the toolbar button.
The add-on does not collect or transmit any data. Your custom image never leaves your computer.
Close Duplicate Tabs 是做什么的
Close Duplicate Tabs 是一款面向 Firefox 的实用工具类扩展,主要用来解决浏览器里某类具体的小问题。官方对它的介绍是:Shows how many duplicate tabs there are in your window and closes them with one click.在Firefox 附加组件商店(AMO)上,它当前版本 1.0.36,评分 4.38(16 人评价),约 533 名用户。
适合什么人用
从功能定位看,Close Duplicate Tabs 更适合想补上浏览器原生缺失功能的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 Close Duplicate Tabs
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Close Duplicate Tabs 是免费的吗?
Close Duplicate Tabs 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Close Duplicate Tabs 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Close Duplicate Tabs 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Close Duplicate Tabs?
在扩展管理页找到 Close Duplicate Tabs,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 4
cookiesmenusstoragetabs
