diff options
author | Nick White <git@njw.me.uk> | 2011-06-23 19:30:51 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-06-23 19:30:51 +0100 |
commit | 575c45e066404a85adbf8112f676ba89c7258daa (patch) | |
tree | b9c718f36451277379d4f54a36756ee820166a03 /viable.js | |
parent | a2a6986c2719849d4e794261f29c8689701445e3 (diff) |
Add viable to firefox, improve firefox usage, general cleanups
Diffstat (limited to 'viable.js')
-rwxr-xr-x | viable.js | 8 |
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; +} |