| OLD | NEW |
| 1 { | 1 { |
| 2 "name" : "Page action by content", | 2 "name" : "Page action by content", |
| 3 "version" : "1.1", | 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 a video", |
| 5 "background" : { | 5 "background" : { |
| 6 "scripts": ["background.js"] | 6 "scripts": ["background.js"], |
| 7 "persistent": false |
| 7 }, | 8 }, |
| 8 "page_action" : | 9 "page_action" : |
| 9 { | 10 { |
| 10 "default_icon" : "sandwich-19.png", | 11 "default_icon" : "video-19.png", |
| 11 "default_title" : "There's a 'sandwich' in this page!" | 12 "default_title" : "There's a <video> in this page!" |
| 12 }, | 13 }, |
| 13 "content_scripts" : [ | 14 "permissions": [ "declarativeContent" ], |
| 14 { | |
| 15 "matches" : [ | |
| 16 "http://*/*", | |
| 17 "https://*/*" | |
| 18 ], | |
| 19 "js" : ["contentscript.js"], | |
| 20 "run_at" : "document_idle", | |
| 21 "all_frames" : false | |
| 22 } | |
| 23 ], | |
| 24 "icons" : { | 15 "icons" : { |
| 25 "48" : "sandwich-48.png", | 16 "48" : "video-48.png", |
| 26 "128" : "sandwich-128.png" | 17 "128" : "video-128.png" |
| 27 }, | 18 }, |
| 28 "manifest_version": 2 | 19 "manifest_version": 2 |
| 29 } | 20 } |
| OLD | NEW |