mirror of
https://github.com/zadam/trilium.git
synced 2025-12-07 16:04:23 +01:00
- Manifest V3 configuration with proper permissions - TypeScript + esbuild build system - npm dependencies (Readability, DOMPurify, Cheerio) - Build configuration (IIFE bundling, watch mode) - Shared TypeScript type definitions Foundation for Trilium Web Clipper Manifest V3 migration.
69 lines
1.5 KiB
JSON
69 lines
1.5 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "Trilium Web Clipper",
|
|
"version": "1.0.0",
|
|
"description": "Save web content to Trilium Notes with enhanced features and modern architecture",
|
|
"icons": {
|
|
"32": "icons/32.png",
|
|
"48": "icons/48.png",
|
|
"96": "icons/96.png"
|
|
},
|
|
"permissions": [
|
|
"activeTab",
|
|
"contextMenus",
|
|
"scripting",
|
|
"storage",
|
|
"tabs"
|
|
],
|
|
"host_permissions": [
|
|
"http://*/",
|
|
"https://*/"
|
|
],
|
|
"background": {
|
|
"service_worker": "background.js"
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["http://*/*", "https://*/*"],
|
|
"js": ["content.js"],
|
|
"run_at": "document_idle"
|
|
}
|
|
],
|
|
"action": {
|
|
"default_popup": "popup.html",
|
|
"default_title": "Trilium Web Clipper"
|
|
},
|
|
"options_page": "options.html",
|
|
"commands": {
|
|
"save-selection": {
|
|
"suggested_key": {
|
|
"default": "Ctrl+Shift+S",
|
|
"mac": "Command+Shift+S"
|
|
},
|
|
"description": "Save selected text to Trilium"
|
|
},
|
|
"save-page": {
|
|
"suggested_key": {
|
|
"default": "Alt+Shift+S",
|
|
"mac": "Alt+Shift+S"
|
|
},
|
|
"description": "Save whole page to Trilium"
|
|
},
|
|
"save-screenshot": {
|
|
"suggested_key": {
|
|
"default": "Ctrl+Shift+E",
|
|
"mac": "Command+Shift+E"
|
|
},
|
|
"description": "Save screenshot to Trilium"
|
|
}
|
|
},
|
|
"web_accessible_resources": [
|
|
{
|
|
"resources": ["lib/*"],
|
|
"matches": ["http://*/*", "https://*/*"]
|
|
}
|
|
],
|
|
"content_security_policy": {
|
|
"extension_pages": "script-src 'self'; object-src 'self'"
|
|
}
|
|
} |