blob: 6d0847c42532e2b9196e8f037fbd66ae78f36f56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<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>
|