added manifest.json. And bootstrap. Also added a toggleable button.

This commit is contained in:
Nils Norman Haukås 2015-09-25 16:01:25 +02:00
parent d64d84faa8
commit 34b6fb9fc9
6 changed files with 57 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
bower_components

16
background.js Normal file
View file

@ -0,0 +1,16 @@
var pluginEnabled = true;
function updateIcon () {
var selectedIcon;
if (pluginEnabled) {
chrome.browserAction.setIcon({path:'icon2.png'});
pluginEnabled = false;
} else{
chrome.browserAction.setIcon({path:'icon1.png'});
pluginEnabled = true;
};
}
chrome.browserAction.onClicked.addListener(updateIcon);
updateIcon();

26
bower.json Normal file
View file

@ -0,0 +1,26 @@
{
"name": "tag-youre-it",
"version": "0.0.1",
"homepage": "https://github.com/nilsnh/tag-youre-it",
"authors": [
"Nils Norman Haukås <nils@thunki.com>"
],
"description": "A browser extension for semantic tagging of words",
"main": "main.js",
"keywords": [
"semantic",
"web",
"tagging"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "~3.3.5"
}
}

BIN
icon1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 B

BIN
icon2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 B

14
manifest.json Normal file
View file

@ -0,0 +1,14 @@
{
"name": "Tag you're it",
"description": "Make the meaning clear. This plugin enables you to tag words on web sites with semantic meaning.",
"version": "0.7",
"permissions": [""],
"background": {
"persistent": false,
"scripts": ["background.js"]
},
"browser_action": {
"name": "Click to enable or disable tagging"
},
"manifest_version": 2
}