提供元: David "Kravimir" S.
Inspect and view changes in Close Current Tab Button source codes across current and past versions
Please login to examine the extension's source code.
manifest.json
{
"manifest_version": 3,
"name": "Close Current Tab Button",
"author": "Originally by amokk; ported to Chrome/Chromium by Piak; enhancements by Kravimir",
"version": "2.2",
"short_name": "Close Tab",
"action": {
"default_icon": {
"16": "icons/close-icon32.svg",
"32": "icons/close-icon32.svg",
"48": "icons/close-icon32.svg",
"128": "icons/close-icon32.svg"
}
},
"background": {
"scripts": [
"background.js"
]
},
"description": "A button for the toolbar to close the active tab in the window. (Dark theme preferrers can choose the icon color in the options.) Also has context menu options on the extension icon to open new tabs.",
"icons": {
"16": "icons/close-icon32.svg",
"32": "icons/close-icon32.svg",
"48": "icons/close-icon32.svg",
"128": "icons/close-icon32.svg"
},
"web_accessible_resources": [
{
"resources": [
"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.61595 25.6574-1.11595-1.13299 8.1196-8.12901-8.0179-8.0272 2.36818-2.36818 8.0272 8.0179 8.0272-8.0179 2.36818 2.36818-8.0179 8.0272 8.12545 8.13486-2.36806 2.36806-8.13487-8.12545-4.0134 4.00875c-2.20737 2.20482-4.06703 4.00875-4.13259 4.00875-0.065556 0-0.621369-0.509841-1.23514-1.13299z' fill='%23fff'/%3E%3Cpath d='m3.572 1c-0.907538 2.548e-4 -2.54542 1.66446-2.572 2.572v27.428h1.5v-25.951c0.0108763-1.1874 1.19032-2.56453 2.365-2.54906h22.27c1.27506 0.037162 2.35991 1.30414 2.36496 2.54906v25.951h1.5v-27.428c0.026061-0.933844-1.66443-2.57174-2.57196-2.572z' fill='%23fff'/%3E%3C/svg%3E"
],
"matches": [
"*://*/*"
]
},
{
"resources": [
"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m5.72223 26.0852-1.22223-1.24089 4.44645-4.4516 4.44645-4.4516-8.78151-8.79169 1.29686-1.29686 1.29686-1.29686 8.79169 8.78151 8.79169-8.78151 1.29686 1.29686 1.29686 1.29686-8.78151 8.79169 8.8993 8.90961-1.2968 1.2968-1.29679 1.29679-8.90962-8.8993-4.39563 4.39054c-2.41759 2.4148-4.45437 4.39054-4.52617 4.39054-0.0718 0-0.680547-0.558398-1.35277-1.24089z' fill='%23fff'/%3E%3C/svg%3E"
],
"matches": [
"*://*/*"
]
}
],
"options_ui": {
"page": "options.html",
"open_in_tab": false
},
"permissions": [
"storage",
"contextMenus",
"activeTab"
],
"commands": {
"duplicateTabURLOnly": {
"description": "Duplicate Tab (Location Only)"
},
"newTab": {
"description": "Open new tab adjacent to the current one."
},
"newTabAltSide": {
"description": "Open new tab on opposite side, adjacent to the current one."
}
},
"browser_specific_settings": {
"gecko": {
"id": "close_tab_button2@dynamicsitesolutions.com",
"strict_min_version": "109.0"
}
}
} ベストのClose Current Tab Button代替案
Close Current Tab Buttonに類似したFirefox add-onをいくつか紹介します: