summaryrefslogtreecommitdiff
path: root/gecko/viablehook.js
diff options
context:
space:
mode:
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);