Index: gc_lang/fr/webext/manifest.json ================================================================== --- gc_lang/fr/webext/manifest.json +++ gc_lang/fr/webext/manifest.json @@ -11,11 +11,10 @@ } }, "author": "Olivier R.", "homepage_url": "https://grammalecte.net", - "description": "Correcteur grammatical pour le français.", "default_locale": "fr", "icons": { "16": "img/logo-16.png", @@ -29,18 +28,25 @@ "default_icon": "img/logo-32.png", "default_popup": "panel/main.html", "default_title": "Grammalecte [fr]", "browser_style": false }, + "background": { "scripts": [ "background.js" ] }, + "content_scripts": [ { "matches": [""], + "exclude_matches": [ + "*://*.wikisource.org/*", + "*://*.wikipedia.org/*", + "*://*.wiktionary.org/*" + ], "css": [ "content_scripts/panel.css", "content_scripts/panel_tf.css", "content_scripts/panel_gc.css", "content_scripts/panel_lxg.css", @@ -55,12 +61,38 @@ "content_scripts/panel_lxg.js", "content_scripts/menu.js", "content_scripts/init.js" ], "run_at": "document_end" + }, + { + "matches": [ + "*://*.wikisource.org/*", + "*://*.wikipedia.org/*", + "*://*.wiktionary.org/*" + ], + "css": [ + "content_scripts/panel.css", + "content_scripts/panel_tf.css", + "content_scripts/panel_gc.css", + "content_scripts/panel_lxg.css", + "content_scripts/menu.css", + "3rd/font-awesome-4.7.0/css/font-awesome.min.css" + ], + "js": [ + "content_scripts/panel.js", + "grammalecte/fr/textformatter.js", + "content_scripts/panel_tf.js", + "content_scripts/panel_gc.js", + "content_scripts/panel_lxg.js", + "content_scripts/menu.js", + "content_scripts/init.js" + ], + "run_at": "document_idle" } ], + "commands": { "conjugueur_tab": { "suggested_key": { "default": "Ctrl+Shift+F6" }, @@ -71,27 +103,30 @@ "default": "Ctrl+Shift+F7" }, "description": "Ouvre le conjugueur dans une fenĂȘtre" } }, + "web_accessible_resources": [ "grammalecte/_dictionaries/French.json", "grammalecte/fr/conj_data.json", "grammalecte/fr/mfsp_data.json", "grammalecte/fr/phonet_data.json", "grammalecte/fr/tests_data.json", "img/logo-16.png" ], + "permissions": [ "activeTab", "contextMenus", "storage" ], + "chrome_settings_overrides": { "search_provider": { "name": "Grammalecte", "search_url": "https://www.dicollecte.org/dictionary.php?prj=fr&lemma={searchTerms}", "keyword": "disc", "favicon_url": "https://www.dicollecte.org/favicon.ico" } } }