plugin now injects both jquery and bootstap into the page.

This commit is contained in:
Nils Norman Haukås 2015-09-25 17:10:39 +02:00
parent 34b6fb9fc9
commit 3df9364b26
3 changed files with 15 additions and 6 deletions

View file

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

1
content_script.js Normal file
View file

@ -0,0 +1 @@
console.log('hello world!');

View file

@ -1,14 +1,22 @@
{
"name": "Tag you're it",
"description": "Make the meaning clear. This plugin enables you to tag words on web sites with semantic meaning.",
"description": "Make the meaning clear. This plugin enables semantic tagging of web content.",
"version": "0.7",
"permissions": [""],
"background": {
"persistent": false,
"scripts": ["background.js"]
},
"content_scripts": [{
"matches": ["<all_urls>"],
"css": ["bower_components/bootstrap/dist/css/bootstrap.min.css"],
"js": [
"bower_components/jquery/dist/jquery.min.js",
"bower_components/bootstrap/dist/js/bootstrap.min.js",
"content_script.js"]
}],
"browser_action": {
"name": "Click to enable or disable tagging"
},
"manifest_version": 2
"default_title": "Tag you're it! Click to enable or disable tagging of web content."
},
"manifest_version": 2
}