mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
* Made background script of context-menu-copy-link-with-types non-persistent. Now clearing errors that could result from background.js context menu creation happening more than once. * Suggestions from code review * Syntax error and formatting * Added note about () => void browser.runtime.lastError * Feedback suggestion Co-authored-by: Rob Wu <rob@robwu.nl> --------- Co-authored-by: rebloor <git@sherpa.co.nz> Co-authored-by: Rob Wu <rob@robwu.nl>
21 lines
566 B
JSON
21 lines
566 B
JSON
{
|
|
"manifest_version": 2,
|
|
"name": "Context menu: Copy link with types",
|
|
"description": "Add a context menu option to links to copy the link to the clipboard, as plain text and as a link in rich HTML.",
|
|
"version": "1.0",
|
|
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/context-menu-copy-link-with-types",
|
|
|
|
"background": {
|
|
"scripts": [
|
|
"background.js"
|
|
],
|
|
"persistent": false
|
|
},
|
|
|
|
"permissions": [
|
|
"activeTab",
|
|
"contextMenus",
|
|
"clipboardWrite"
|
|
]
|
|
}
|