An open API service indexing awesome lists of open source software.

https://github.com/sbwhitt/custom-actions

Chrome extension that helps you control your browser with additional keyboard shortcuts
https://github.com/sbwhitt/custom-actions

angular browser browser-extension chrome chrome-extension manifest-v3 productivity typescript

Last synced: 8 months ago
JSON representation

Chrome extension that helps you control your browser with additional keyboard shortcuts

Awesome Lists containing this project

README

          

# Custom Actions extension

Custom keyboard actions for chrome. Now available on the Chrome Web Store!

## Default actions

* Ctrl+Up: Duplicate the current tab
* Ctrl+Left: Move the current tab left
* Ctrl+Right: Move the current tab right
* Ctrl+Down: Move the current tab to it's own window
* Alt+Shift+Left: Open the last visited location in a new tab
* Alt+Down: Collapse all tabs into the same window

## Screenshots

Main landing screen and Actions list

![Main landing screen](screenshots/screens1.png)

Shortcut settings

![Shortcut settings](screenshots/screens2.png)

## How it works

The keyup and keydown event listeners are loaded in a content script (src/script.ts) which is declared in the manifest under 'content_scripts'. The content script is injected into tabs within the browser when they are created.

When key events are detected, the content script sends actions through messages to the service worker (src/sw.ts) which is registered in the manifest under 'background > service_worker.'