I want to make my extension do some jobs on specific websites.
{
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "1.0.0",
"name": "Persian Dark Night Mode",
"manifest_version": 2,
"short_name": "persiandarknightmode",
"description": "Persian Dark Night Mode is a free open source chrome extension which turns iranian websites you browse into dark/night mode so that the white bright light do not strain your eyes.",
"permissions": ["tabs","storage", "<all_urls>", "contextMenus"],
"web_accessible_resources": ["css/*.css"],
"options_page": "templates/options.html",
"offline_enabled": true,
"icons": {
"48": "icons/icon48.png",
"128": "icons/icon.png"
},
"browser_action": {
"default_icon" : "icons/icon.png",
"default_popup" : "templates/popup.html"
},
"content_scripts": [
{
"all_frames": true,
"match_about_blank": true,
"matches": ["<all_urls>"],
"run_at": "document_start",
"exclude_globs": ["*/chrome/newtab*"],
"js": ["js/main.js"]
},
{
"all_frames": true,
"match_about_blank": true,
"matches": ["<all_urls>"],
"run_at": "document_start",
"exclude_globs": ["*/chrome/newtab*"],
"css": ["css/universal.css"]
}
]
}
this is very necessary for me! for example i want to open virgool.io.css when user is on virgool.io website. thanks guys.
Aucun commentaire:
Enregistrer un commentaire