summaryrefslogtreecommitdiff
path: root/viable.js
diff options
context:
space:
mode:
Diffstat (limited to 'viable.js')
-rwxr-xr-xviable.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/viable.js b/viable.js
new file mode 100755
index 0000000..8424451
--- /dev/null
+++ b/viable.js
@@ -0,0 +1,8 @@
+/* See COPYING file for copyright, license and warranty details. */
+
+function simplyread-viable() {
+ var doc;
+ doc = (document.body === undefined)
+ ? window.content.document : document;
+ return doc.getElementsByTagName("p").length;
+}