From 575c45e066404a85adbf8112f676ba89c7258daa Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 23 Jun 2011 19:30:51 +0100 Subject: Add viable to firefox, improve firefox usage, general cleanups --- chromium/updates.xml | 2 +- chromium/viable.js | 9 --------- chromium/viablehook.js | 1 + 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100755 chromium/viable.js create mode 100755 chromium/viablehook.js (limited to 'chromium') diff --git a/chromium/updates.xml b/chromium/updates.xml index f938094..acf8ed1 100644 --- a/chromium/updates.xml +++ b/chromium/updates.xml @@ -1,6 +1,6 @@ - + diff --git a/chromium/viable.js b/chromium/viable.js deleted file mode 100755 index c957608..0000000 --- a/chromium/viable.js +++ /dev/null @@ -1,9 +0,0 @@ -/* See COPYING file for copyright, license and warranty details. */ - -function viable() { - var doc; - doc = (document.body === undefined) - ? window.content.document : document; - return doc.getElementsByTagName("p").length; -} -if(viable()) chrome.extension.sendRequest({}, function(response) {}); diff --git a/chromium/viablehook.js b/chromium/viablehook.js new file mode 100755 index 0000000..80bb673 --- /dev/null +++ b/chromium/viablehook.js @@ -0,0 +1 @@ +if(simplyread-viable()) chrome.extension.sendRequest({}, function(response) {}); -- cgit v1.2.3