This is a google chrome extension template including jQuery, bootstrap and a settings mechanism for your convencience.
-
In manifest.json you can change the information about your extension. The fields you want to change are:
- name
- description
- default_title
-
Just swap images/icon.png with the icon you want to use for your project.
-
If you want to access url's from your extension do not forget to add them to permissions in manifest.json
-
The apperance of the popup may be changed in html/popup.html For your convenience there are two tabs in place already:
- #home: The tab with the main content
- #settings: The settings tab
-
Settings are saved when clicked on the save button. When the cancel button is pressed, the settings are reset to the last saved values. In the settings tab you can add more settings. The following input elements are supported:
- text
- radio
- checkbox
- select
-
Add your own styles to css/main.css Don't forget, bootstrap is in place: you might be able to achive good results by just setting the right classes ;-)
-
Add your business logic to js/main.js
-
For further information about usage of jQuery, bootstrap and google chrome extensions check the documentations:
- [jQuery 1.12.2] (http://jquery.com)
- [bootsrap 3.0.0] (http://getbootstrap.com)
- [Google Chrome Extension Tutorial] (http://developer.chrome.com/extensions/getstarted.html)