OLD | NEW |
---|---|
1 PK £?ó}á stylizr/icon.pngPNG | 1 PK £?ó}á stylizr/icon.pngPNG |
2 | 2 |
3 | 3 |
4 IHDR rP6Ì pHYs | 4 IHDR rP6Ì pHYs |
5 | 5 |
6 EIDAT8mHQÇÏ}æö8§SK4Ó¢U¨¹eÛ,J§0t | 6 EIDAT8mHQÇÏ}æö8§SK4Ó¢U¨¹eÛ,J§0t |
7 _°áÖ_ | 7 _°áÖ_ |
8 ëKBìíÛ( | 8 ëKBìíÛ( |
9 ú")8MdiaE/Ê(zùa´WÛ³6uºÛ¹ÑêÑR | 9 ú")8MdiaE/Ê(zùa´WÛ³6uºÛ¹ÑêÑR |
10 ü¹ç^Îù=ç»{¥û½ì%æíåô.óyÔEå | 10 ü¹ç^Îù=ç»{¥û½ì%æíåô.óyÔEå |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 // found in the LICENSE file. | 180 // found in the LICENSE file. |
181 | 181 |
182 // Store settings in the local, un-synchronized repository. | 182 // Store settings in the local, un-synchronized repository. |
183 var storage = chrome.experimental.storage.local; | 183 var storage = chrome.experimental.storage.local; |
184 var message = document.querySelector('#message'); | 184 var message = document.querySelector('#message'); |
185 | 185 |
186 // Check if there is CSS specified. | 186 // Check if there is CSS specified. |
187 storage.get('css', function(items) { | 187 storage.get('css', function(items) { |
188 console.log(items); | 188 console.log(items); |
189 // If there is CSS specified, inject it into the page. | 189 // If there is CSS specified, inject it into the page. |
190 if (items.css) { | 190 if (items.css) { |
Finnur
2011/12/15 14:42:25
What is this file again and why is that updated al
| |
191 chrome.tabs.insertCSS(null, {code: items.css}, function() { | 191 chrome.tabs.insertCSS(null, {code: items.css}, function() { |
192 if (chrome.extension.lastError) { | 192 if (chrome.extension.lastError) { |
193 message.innerText = 'Not allowed to inject CSS into special page.'; | 193 message.innerText = 'Not allowed to inject CSS into special page.'; |
194 } | 194 } |
195 message.innerText = 'Injected style!'; | 195 message.innerText = 'Injected style!'; |
196 }); | 196 }); |
197 } else { | 197 } else { |
198 var optionsUrl = chrome.extension.getURL('options.html'); | 198 var optionsUrl = chrome.extension.getURL('options.html'); |
199 message.innerHTML = 'Set a style in the <a target="_blank" href="' + | 199 message.innerHTML = 'Set a style in the <a target="_blank" href="' + |
200 optionsUrl + '">options page</a> first.'; | 200 optionsUrl + '">options page</a> first.'; |
201 } | 201 } |
202 }); | 202 }); |
203 | 203 |
204 PK £?ó}á ¤ stylizr/icon.pngPK ×M?$ Þl l ( Á stylizr/manifest.jsonfa67fae5afc20d9ad9b46a8d25037aa bcb89630ePK ]?*ÄG ¤` stylizr/options.htmlPK ^?¶hß9 9 ¤& stylizr/options.jsPK ¦]?wÆD ¤ stylizr/popup.htmlPK ×[?Åéú³ ³ ¤Æ stylizr/popup.jsPK © § | 204 PK £?ó}á ¤ stylizr/icon.pngPK ×M?$ Þl l ( Á stylizr/manifest.jsonfa67fae5afc20d9ad9b46a8d25037aa bcb89630ePK ]?*ÄG ¤` stylizr/options.htmlPK ^?¶hß9 9 ¤& stylizr/options.jsPK ¦]?wÆD ¤ stylizr/popup.htmlPK ×[?Åéú³ ³ ¤Æ stylizr/popup.jsPK © § |
OLD | NEW |