OLD | NEW |
1 { | 1 { |
2 "name" : "Page action by content", | 2 "name" : "Page action by content", |
3 "version" : "1.0", | 3 "version" : "1.1", |
4 "description" : "Shows a page action for HTML pages containing the word 'sandw
ich'", | 4 "description" : "Shows a page action for HTML pages containing the word 'sandw
ich'", |
5 "background" : { | 5 "background" : { |
6 "scripts": ["background.js"] | 6 "scripts": ["background.js"] |
7 }, | 7 }, |
8 "page_action" : | 8 "page_action" : |
9 { | 9 { |
10 "default_icon" : "sandwich-19.png", | 10 "default_icon" : "sandwich-19.png", |
11 "default_title" : "There's a 'sandwich' in this page!" | 11 "default_title" : "There's a 'sandwich' in this page!" |
12 }, | 12 }, |
13 "content_scripts" : [ | 13 "content_scripts" : [ |
14 { | 14 { |
15 "matches" : [ | 15 "matches" : [ |
16 "http://*/*", | 16 "http://*/*", |
17 "https://*/*" | 17 "https://*/*" |
18 ], | 18 ], |
19 "js" : ["contentscript.js"], | 19 "js" : ["contentscript.js"], |
20 "run_at" : "document_idle", | 20 "run_at" : "document_idle", |
21 "all_frames" : false | 21 "all_frames" : false |
22 } | 22 } |
23 ], | 23 ], |
24 "icons" : { | 24 "icons" : { |
25 "48" : "sandwich-48.png", | 25 "48" : "sandwich-48.png", |
26 "128" : "sandwich-128.png" | 26 "128" : "sandwich-128.png" |
27 } | 27 }, |
28 } | 28 "manifest_version": 2 |
| 29 } |
OLD | NEW |