aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.js13
-rw-r--r--manifest.json9
2 files changed, 20 insertions, 2 deletions
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..204717e
--- /dev/null
+++ b/main.js
@@ -0,0 +1,13 @@
+(function() {
+ [
+ 'lib/mousetrap/tests/libs/key-event.js',
+ 'peniquitous.js'
+ ].forEach(function(file) {
+ var s = document.createElement('script');
+ s.src = chrome.extension.getURL(file);
+ s.onload = function() {
+ this.parentNode.removeChild(this);
+ };
+ document.documentElement.appendChild(s);
+ });
+})();
diff --git a/manifest.json b/manifest.json
index 68f6489..1a54de4 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,6 +7,11 @@
"content_scripts": [{
"matches": ["<all_urls>"],
- "js": ["lib/mousetrap/tests/libs/key-event.js", "peniquitous.js"]
- }]
+ "js": ["main.js"]
+ }],
+
+ "web_accessible_resources": [
+ "lib/mousetrap/tests/libs/key-event.js",
+ "peniquitous.js"
+ ]
}