create chrome extension code example
Example 1: chrome extensions development
{ "name": "Getting Started Example", "version": "1.0", "description": "Build an Extension!", "background": { "scripts": ["background.js"], "persistent": false }, "manifest_version": 2}
Example 2: download chrome extension separately and then add to chrome
Fast-forward 3 years, and now Google Chrome offers chrome.downloads API (since
Chrome 31).
After declaring "downloads" permission in the manifest, one can initiate a
download with this call:
chrome.downloads.download({
url: "http://your.url/to/download",
filename: "suggested/filename/with/relative.path" // Optional
});