diff options
| -rw-r--r-- | main.js | 13 | ||||
| -rw-r--r-- | manifest.json | 9 | 
2 files changed, 20 insertions, 2 deletions
| @@ -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" +	]  } | 
