This Chrome extension provides a browser action that simply takes the current URL in the address bar
and shortens it (using tinyurl.com) and saves this short URL to the clipboard. It can be activated
via a keyboard shortcut Ctrl + Shift + P
.
You can install this extension from the Chrome Web Store.
- Tutorial for creating an extension
- Asynchronous Javascript (promises, async/await)
- Learn more about browser actions
- Browser Action Samples
- SO article on browser action
- Excessive permissions
- chrome.tabs
- Script loading and async and defer
- Bypass CORS in Chrome Extension
- The
manifest.json
needs to be updated as follows."permissions": [ "activeTab", "tabs", "*://*.tinyurl.com/*"
- The
- Copy to clipboard
- https://developer.chrome.com/apps/commands
- Please note that on Mac
Ctrl
is automatically converted toCommand
. If you wantCtrl
instead, please specifyMacCtrl
under"mac"
.