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