manifest.json


						// Mandatory
						"manifest_version": 2,
						"name": "My App",
						"version": "1.2.3",

						// Recommended
						"default_locale": "en",
						"description": "A plain text description",
						"icons": {...},
						"content_scripts": [
						  {
						    "matches": ["http://*/*", "https://*/*"],
						    "js": ["jquery-3.1.1.min.js", "myscript.js"]
						  }
						]
					

Permissions


						"permissions": [
						  "activeTab",
						  "tabs",     // enable chrome.tabs and chrome.windows API
						  "http://*/*",
						  "https://*/*",

						  "clipboardWrite", // for Copy
						  "clipboardRead",  // & Paste
						  "cookies",
						  "debugger",
						  "identity",
						  "sessions",
						  ...
						]
					

myscript.js


						function start() {
						  if (isLuxmedSite()) {
						    var doctorNames = $(".reserveTable > ...");
						    var favour = $(".reserveTable > ...");
						    var doctors = collectDoctors(doctorNames, favour);
						    addStars(doctors);
						  }
						}

						start();
					

manifest.json


						"browser_action": {
						  "default_icon": "icon16.png",
						  "default_popup": "popup.html"
						}
					

popup.html


						<!doctype html>

						<html lang="pl-PL">
						  <head>...</head>
						  <body>
							<div id="status">
							  <h1>LuxLekarz</h1>
							  <p>Wtyczka pomaga wyszukiwać...</p>
							</div>
						  </body>
						</html>
					

Build


						#!/bin/sh

						zip -j -r LuxLekarz.zip src/*
					

developer.chrome.com/extensions/samples

github.com/orbitbot/chrome-extensions-examples