a93354de8c
* documentElement may be overwritten right after iframe was initialized with contentDocument.write() and due to this change being external it's not reported in our existing rewrite observer so we enqueue an additional check using setTimeout(0). * match_about_blank in manifest.json is back * iframes with src = about: or javascript: don't have a proper URL when our content script runs so we get the real URL from the parent window * minor refactoring
63 lines
1.4 KiB
JSON
63 lines
1.4 KiB
JSON
{
|
|
"name": "Stylus",
|
|
"version": "1.0.5",
|
|
"minimum_chrome_version": "49",
|
|
"description": "__MSG_description__",
|
|
"homepage_url": "http://add0n.com/stylus.html",
|
|
"manifest_version": 2,
|
|
"icons": {
|
|
"16": "/images/icon/16.png",
|
|
"32": "/images/icon/32.png",
|
|
"48": "/images/icon/48.png",
|
|
"128": "/images/icon/128.png"
|
|
},
|
|
"permissions": [
|
|
"tabs",
|
|
"webNavigation",
|
|
"contextMenus",
|
|
"storage",
|
|
"*://*/*"
|
|
],
|
|
"background": {
|
|
"scripts": ["messaging.js", "storage.js", "prefs.js", "background.js", "update.js"]
|
|
},
|
|
"commands": {
|
|
"openManage": {
|
|
"description": "__MSG_openManage__"
|
|
},
|
|
"styleDisableAll": {
|
|
"description": "__MSG_disableAllStyles__"
|
|
}
|
|
},
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["<all_urls>"],
|
|
"run_at": "document_start",
|
|
"all_frames": true,
|
|
"match_about_blank": true,
|
|
"js": ["apply.js"]
|
|
},
|
|
{
|
|
"matches": ["http://userstyles.org/*", "https://userstyles.org/*"],
|
|
"run_at": "document_end",
|
|
"all_frames": false,
|
|
"js": ["install.js"]
|
|
}
|
|
],
|
|
"browser_action": {
|
|
"default_icon": {
|
|
"16": "/images/icon/16w.png",
|
|
"32": "/images/icon/32w.png",
|
|
"19": "/images/icon/19w.png",
|
|
"38": "/images/icon/38w.png"
|
|
},
|
|
"default_title": "Stylus",
|
|
"default_popup": "popup.html"
|
|
},
|
|
"default_locale": "en",
|
|
"options_ui": {
|
|
"page": "options/index.html",
|
|
"chrome_style": true
|
|
}
|
|
}
|