<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) {
		if (!localStorage.prefs)
			localStorage.prefs = '{"nostyle":false,"nolinks":false}';
		var prefs = JSON.parse(localStorage.prefs);
		chrome.tabs.executeScript(tab.id, {code:"simplyread("+prefs.nostyle+","+prefs.nolinks+");"});
	});
</script></head></html>