Find a calendar on the Mac is quite troublesome, just think of the previous JQ plugin written in Chrome plug-in, it is a blind toss wrote a
First look at the directory structure of this plugin, very simple
Calendda
|--HTML\CSS\JS//The static resource file we need
|--manifest.json//chrome configuration file
The main point is how this configuration file is written.
{ "name": "Calendar", //plug-in name "Manifest_version": 2, //config file version number "version": "0.3.0", // Plugin version "Icons": { "$": "Shop.png" //Store plugin picture }, "description": "A simple calendar plugin, you can enter the date, view the lunar calendar", / /Description "Browser_action": { "Default_icon": "Icon.png", //default plugin picture "default_title": "Calendar", // Default title "Default_popup": "mycal.html" //Popup page }}
And then you can get chrome to pack.
The key to a. Pem suffix is automatically generated when you pack up, and you'll need it the next time you pack the plugin.
After packing. Drag the. crx suffix file into the cross-site installation is OK, to see the package looks
Plug-in to use a large image with 48x48, small figure with 19x19
It looks pretty good, of course. Plug-ins are also richer in functionality, wider in application,
If there is an error in the text, please correct me.
Chrome Calendar Plugin Development