summaryrefslogtreecommitdiff
path: root/chromium/viable.js
blob: 09acb36e9f4ff76970d10f44c2805fe68e831af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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) {});