Browse files

Added the rest of the files

  • Loading branch information...
1 parent 796f05c commit d7ebc0f1474ee7cb797d9629646f90a5527d2551 @jonte committed Oct 22, 2011
Showing with 22 additions and 0 deletions.
  1. BIN lense.png
  2. +18 −0 manifest.json
  3. +4 −0 page.js
View
BIN lense.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
18 manifest.json
@@ -0,0 +1,18 @@
+{
+ "name": "Lense",
+ "version": "0.1",
+ "description": "Provides different perspectives on text selected in the current tab.",
+ "permissions": ["tabs"],
+ "content_scripts": [
+ {
+ "matches": ["http://*/*",
+ "https://*/*"],
+ "js": ["page.js"]
+ }
+ ],
+ "browser_action": {
+ "default_title": "Open Lense",
+ "default_icon": "lense.png",
+ "popup": "popup.html"
+ }
+}
View
4 page.js
@@ -0,0 +1,4 @@
+chrome.extension.onRequest.addListener(
+ function(request, sender, sendResponse) {
+ sendResponse({data: window.getSelection().toString()});
+ });

0 comments on commit d7ebc0f

Please sign in to comment.