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

	chrome.extension.onRequest.addListener(onRequest);

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