summaryrefslogtreecommitdiff
path: root/chromium
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-06-23 19:30:51 +0100
committerNick White <git@njw.me.uk>2011-06-23 19:30:51 +0100
commit575c45e066404a85adbf8112f676ba89c7258daa (patch)
treeb9c718f36451277379d4f54a36756ee820166a03 /chromium
parenta2a6986c2719849d4e794261f29c8689701445e3 (diff)
Add viable to firefox, improve firefox usage, general cleanups
Diffstat (limited to 'chromium')
-rw-r--r--chromium/updates.xml2
-rwxr-xr-xchromium/viable.js9
-rwxr-xr-xchromium/viablehook.js1
3 files changed, 2 insertions, 10 deletions
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 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
- <app appid='apapoaenlmlncnnhbpdobjifmpjdabpn'>
+ <app appid='dbggpgfcgemloeeldimghohejgnkahdi'>
<updatecheck codebase='WEBSITE/simplyread-VERSION.crx' version='VERSION' />
</app>
</gupdate>
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) {});