Created
April 17, 2021 05:11
-
-
Save lukeburns/3a1c2f18a5797f96d67a6c334d704474 to your computer and use it in GitHub Desktop.
Chrome 'Open Frame in New Tab' Context Menu Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chrome.contextMenus.create({ | |
| title: 'Open Frame in New Tab', | |
| contexts: ['frame'], | |
| onclick: ({ frameUrl }) => { | |
| chrome.tabs.create({ | |
| active: false, | |
| url: frameUrl | |
| }) | |
| } | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment