summaryrefslogtreecommitdiff
path: root/chromium/background.html
blob: 7850bd2d9eb82248285a6801f5f370dec6ac10f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<html><head><script>
	function onRequest(request, sender, sendResponse) {
		chrome.pageAction.show(sender.tab.id);
		sendResponse({});
	};

	/* called on page load if viable */
	chrome.extension.onRequest.addListener(onRequest);

	chrome.pageAction.onClicked.addListener(function(tab) {
		chrome.tabs.executeScript(tab.id, {code:"simplyread();"});
	});
</script></head></html>