javascript - how do you make content scripts for Chrome extensions based on saved URL's from some data file? -


content scripts list exact url or blanket acceptance of types of url's example below every webpage. want "matches" data set. "manifest_version": 2,

"name": "getting started example", "description": "this extension shows google image search result current page", "version": "1.0",  "browser_action": {     "default_icon": "icon.png",     "default_popup": "popup.html " }, "permissions": [     "activetab",     "https://ajax.googleapis.com/" ], "content_scripts": [     {          "matches": ["*://*/*"]     } ] 

you can list urls want use array:

"content_scripts": [     {          "matches": [                        "http://www.google.com/*",                        "http://stackoverflow.com/*"                    ]     } ] 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -