Define custom keyboard shortcuts for window and tab operations

Latest Version

Version
1.1.0
Update
December 15, 2023
Size
7.85KiB
Developer
Category
Users
72
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (United States)
See more
Permissions
Sessions
ActiveTab
See more

Defenestration Extension

Defenestration lets you define custom keyboard shortcuts for common window and tab operations. This uses Chrome's built-in support for shortcuts, meaning they work everywhere, robustly. Similar extensions inject keyboard handler code directly into every web page you open, which is unreliable and doesn't work in blank tabs or non-HTML files.

As a Linux user, I made this plugin so I could use Alt bindings rather than Windows-like Ctrl bindings. But you can use it for whatever you want.

Assign keyboard shortcuts by clicking \"Keyboard Shortcuts\" at the very bottom of the \"Extensions\" page found under \"More Tools\". Or just click the Defenestration icon.

Here's the full list of operations you can bind:

* Close Window
* Duplicate Tab
* Focus Next Tab
* Focus Previous Tab
* Focus Other Window
* Mute/Unmute Tab
* Unmute Tab
* Mute All Audible Tabs
* New Tab
* Open Downloads
* Open Extensions
* Open History
* Open Settings
* Pin Tab
* Reload
* Reload Bypassing Cache
* Reopen Closed Tab
* Move Tab Left
* Move Tab Right
* Move Tab To New Window
* Move Tab To Other Window
* Full Screen
* New Window
* New Incognito Window
* Zoom In
* Zoom Out
* Reset Zoom
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Defenestration", "description": "Define custom keyboard shortcuts for window and tab operations", "version": "1.1.0", "background": { "service_worker": "background.js" }, "action": { "default_title": "Manage keyboard shortcuts" }, "content_scripts": [{ "matches": [""], "js": [ "content.js" ], "run_at": "document_start" }], "permissions": [ "sessions", "activeTab" ], "commands": { "close-tab": { "description": "Close Tab" }, "close-window": { "description": "Close Window" }, "duplicate-tab": { "description": "Duplicate Tab" }, "focus-tab-next": { "description": "Focus Next Tab" }, "focus-tab-previous": { "description": "Focus Previous Tab" }, "focus-window-other": { "description": "Focus Other Window" }, "history-back": { "description": "Go Back" }, "history-forward": { "description": "Go Forward" }, "mute-tab": { "description": "Mute/Unmute Tab" }, "unmute-tab": { "description": "Unmute Tab" }, "mute-tabs-audible": { "description": "Mute All Audible Tabs" }, "new-tab": { "description": "New Tab" }, "open-downloads": { "description": "Open Downloads" }, "open-extensions": { "description": "Open Extensions" }, "open-history": { "description": "Open History" }, "open-settings": { "description": "Open Settings" }, "pin-tab": { "description": "Pin Tab" }, "reload-tab": { "description": "Reload" }, "reload-tab-bypassing-cache": { "description": "Reload Bypassing Cache" }, "restore-tab": { "description": "Reopen Closed Tab" }, "move-tab-left": { "description": "Move Tab Left" }, "move-tab-right": { "description": "Move Tab Right" }, "move-tab-to-new": { "description": "Move Tab To New Window" }, "move-tab-to-other": { "description": "Move Tab To Other Window" }, "fullscreen": { "description": "Full Screen" }, "new-window": { "description": "New Window" }, "new-window-incognito": { "description": "New Incognito Window" }, "zoom-in": { "description": "Zoom In" }, "zoom-out": { "description": "Zoom Out" }, "zoom-reset": { "description": "Reset Zoom" } }, "icons": {"128": "icon128.png"}}
Read more