Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(949)

Side by Side Diff: chrome/common/extensions/docs/examples/api/browserAction/make_page_red.zip

Issue 8318001: Adding `content_security_policy` to a few sample extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Docs. Zips. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/api/browserAction/make_page_red/background.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 PKeVÎ>jÈ2ÛÛ 1 PKeVÎ>jÈ2ÛÛ
2 make_page_red/background.html<html> 2 make_page_red/background.html<html>
3 <head> 3 <head>
4 <script> 4 <script>
5 // Called when the user clicks on the browser action. 5 // Called when the user clicks on the browser action.
6 chrome.browserAction.onClicked.addListener(function(tab) { 6 chrome.browserAction.onClicked.addListener(function(tab) {
7 chrome.tabs.executeScript( 7 chrome.tabs.executeScript(
8 null, {code:"document.body.style.background='red !important'"}); 8 null, {code:"document.body.style.background='red !important'"});
9 }); 9 });
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 "name": "Make this page red", 123 "name": "Make this page red",
124 "icons": ["icon.png"] 124 "icons": ["icon.png"]
125 } 125 }
126 }PKeVÎ>jÈ2ÛÛ 126 }PKeVÎ>jÈ2ÛÛ
127 ¤make_page_red/background.htmlPKŽx>ˆÀî3ï 127 ¤make_page_red/background.htmlPKŽx>ˆÀî3ï
128 ï 128 ï
129 ¤make_page_red/icon.pngPKŽx>²ðÑs 129 ¤make_page_red/icon.pngPKŽx>²ðÑs
130  130 
131 (¤9 131 (¤9
132 make_page_red/manifest.json174cf55b15678010dff3a18983b940ef9091b115PK  132 make_page_red/manifest.json174cf55b15678010dff3a18983b940ef9091b115PK 
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/api/browserAction/make_page_red/background.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698