diff options
author | Nick White <git@njw.me.uk> | 2010-11-11 19:46:20 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-11-11 19:46:20 +0000 |
commit | cf8c1d39eb4d2ccd8cb5dfbe7931bc2aa116a3c7 (patch) | |
tree | 7cab2d7f3bdf31b01f8b66eff6a1132247a3d32d /chromium | |
parent | 6db0cdc5206417ad9f19c3b4a8422fe268957cd0 (diff) |
Add basic chromium extension
Diffstat (limited to 'chromium')
-rw-r--r-- | chromium/background.html | 5 | ||||
-rw-r--r-- | chromium/icon.png | bin | 0 -> 388 bytes | |||
-rw-r--r-- | chromium/manifest.json | 8 |
3 files changed, 13 insertions, 0 deletions
diff --git a/chromium/background.html b/chromium/background.html new file mode 100644 index 0000000..669ff78 --- /dev/null +++ b/chromium/background.html @@ -0,0 +1,5 @@ +<html><head><script src="readable.js"></script><script> + chrome.browserAction.onClicked.addListener(function(tab) { + chrome.tabs.executeScript(null, {code:"readable();"}); + }); +</script></head></html> diff --git a/chromium/icon.png b/chromium/icon.png Binary files differnew file mode 100644 index 0000000..5470e39 --- /dev/null +++ b/chromium/icon.png diff --git a/chromium/manifest.json b/chromium/manifest.json new file mode 100644 index 0000000..875c633 --- /dev/null +++ b/chromium/manifest.json @@ -0,0 +1,8 @@ +{ + "name": "Readable", + "version": "VERSION", + "background_page": "background.html", + "permissions": [ "tabs", "*://*/*" ], + "content_scripts": [{"matches": ["*://*/*"], "js": ["readable.js"]}], + "browser_action": { "default_icon": "icon.png" } +} |