summaryrefslogtreecommitdiff
path: root/chromium/viable.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/viable.js')
-rwxr-xr-xchromium/viable.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/chromium/viable.js b/chromium/viable.js
new file mode 100755
index 0000000..09acb36
--- /dev/null
+++ b/chromium/viable.js
@@ -0,0 +1,13 @@
+/*
+ * SimplyRead - makes webpages more readable
+ *
+ * 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) {});