summaryrefslogtreecommitdiff
path: root/gecko/viablehook.js
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 /gecko/viablehook.js
parenta2a6986c2719849d4e794261f29c8689701445e3 (diff)
Add viable to firefox, improve firefox usage, general cleanups
Diffstat (limited to 'gecko/viablehook.js')
-rw-r--r--gecko/viablehook.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/gecko/viablehook.js b/gecko/viablehook.js
new file mode 100644
index 0000000..8facf3e
--- /dev/null
+++ b/gecko/viablehook.js
@@ -0,0 +1,5 @@
+function srviable() {
+ document.getElementById("simplyread-btn").disabled = !simplyread-viable();
+}
+window.addEventListener("DOMContentLoaded", srviable, false);
+gBrowser.tabContainer.addEventListener("TabSelect", srviable, false);