On Github KlavierCat / dublinJS-chrome-extension
Building & Packaging
Panpan Lin Oct. 6th, 2015 @ DublinJS Feb. 17th, 2016 @ FED@IBM
Extensions are small software programs that can modify and enhance the functionality of the Chrome browser. You write them using web technologies such as HTML, JavaScript, and CSS.
Extensions bundle all their files into a single file that the user downloads and installs. This bundling means that, unlike ordinary web apps, extensions don't need to depend on content from the web.
Examples{ // Required "manifest_version": 2, "name": "My Extension", "version": "versionString", // Recommended "default_locale": "en", "description": "A plain text description", "icons": {...}, // Etc... }
chrome.exe --pack-extension=C:\myext --pack-extension-key=C:\myext.pem
Put this in your <head> tag:
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/itemID">
Triggering inline installation:
chrome.webstore.install(url, successCallback, failureCallback)
Checking if the extension is installed:
if (chrome.app.isInstalled) { document.getElementById('install-button').style.display = 'none'; }