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

Unified Diff: chrome/common/extensions/docs/examples/extensions/catblock.zip

Issue 7720002: Chrome Extensions chrome.experimental.offscreenTabs.* API implementation, docs, and test. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/extensions/catblock.zip
===================================================================
--- chrome/common/extensions/docs/examples/extensions/catblock.zip (revision 97767)
+++ chrome/common/extensions/docs/examples/extensions/catblock.zip (working copy)
@@ -1,14 +1,80 @@
-PKÕk?®3 H!catblock/background.htmlUT qvMN/vMNux jˆ}Q=OÃ0Ýû+NžÒR9{h`B*KQ§*ƒã\ƒc‡ó…–Výï¸I#“ïã=½÷Ϋ Ét ôZXoK_ùÄÃ*7³ÕTè†|‹’iѱ²ò€Å?z ,½{ÄÊN½*ˍ Œ)™T½Ól¼KŒ«üÎq ½ Þ¢´¾Nēb0Ž‘4vŒeîàŠ–=Ùùý@HSØbi57ѲVhÔö €”+} cØm7r ~*kxQÜHò½+“±àÉ0À¢«¹¹IrOÎtÓݑÍ&äÞä—+겜
-Þ*c£ÿ›1_42Ø5€h˜»,MV®QA7ˆ§¢§IF"yðTv„!HíÛt!–ˆº9µØb¡þËÈLJ¿:¼Ê ÓªEþË(™Ôs¼ík‡:Žö¢°^¿W‹<æþùýoPKZ?")2¦catblock/loldogs.jsUT ðWMNéuMNux jˆµXÛnä6 }߯ö¹Lf“Mv¶@¿¤èmӖbYTu×óõ=ò6Øõ“¡Ç#)¤(åÆñÁ©tJ¿=üþé³É9üúôd
-'6š1ñ8Z'éqÕ8„()=öº<=_¾|yº\ŸÆâýFXEÁö¹`ž6U꬧•£ìðø¦Ï¿´0l3½—ûœ•™äœ2FJe­oç¨Wu”²Æº¨4i&öÛ¢Q¨ã^zRÃ֒½“§Ø
-çUdÜì>8E¾q¶°zÎk_„B aûé5; ÙD‘%'¬ŸH=
-%od°Âçêئ…¬ÏJL#»$”Äã©#^úmÞڝE€iÊÏÂÖ§…—vÆóÙ{ÅØTEù«éäm¸!cA“Íö$F¾Âg-¨¦L[©nàd))#©¹–҆ Iô’OúìKþDF< ¥?‹È¹
-> %D‘lüÀÞ²á-iè!ÚNrÁ¡A54•èh@‘â;~?‰ËCó“ ƒãHY 9^ÁšB†ÁJ³.‹ø=Áu–“wðªÃ-\“žì€ùv{Iº®HÍ@XÊÖ9E9£4¹à –îÄvu†çùÃ$ãYáÜ$mW.Ë;³ ¦HÒux]Z"ϐb3Ý9a ®r¯
-cw>öRQþF‚Þ+t;;ôf²î‚[ÆÕó¢et< úâœä³Æx¦•Î\a—K?£¾’¸‘ZVpó§Qã"1ÑÞÄACàP‘ü#k²µŒ‰W$ÂÛÉÔÒ¦°zœÝI‘mB¶Qu£«êPË5$4{YIn‘‚^‰ïÀ–à Àp5âëʕqÆÞaÁ“;Éœ
-¤eØÌv‘ú%W^¹Òܐ!Vt6(G*”€ŒZ´F$VxƒSÐ|Rv:c×q„ž¬š8N}IIªJp^·³"çíï!@,T·sú*P²€¹I-ívnеÖRf=p…×~ fëWð¢v²6Œ«ònÅ~âñ­ö'‹Ýªÿk
-’çúÓÏé#?GÚ9gE™p‹È†zW:’t®:HZKgÿÌ¢‚;]šÏŒ£ªg,º
-(¯Q†¡!ŠŒ
-T˜³Š\ƒî½ÿ¡)¾ÖþlˆÙ±êç¬ÁÜitªµuCãY_+f¿âøbq
-!]ÓïlË"ÁEi¸SÙ«w֓ \*°vß[RýÏÛ¿FOºzûz½^.òÆ—Ë+}}‘+]_`ÿòƯ/ϯߟ_úëIÓG-y5[›ìVÞvɝêÜ\âÓõwä¨òãÂ~NÐÛLf笌ôBâa×¾*ÙíO tb9Ã5¡çؒyùG¿ÅMUQÅGgãА X8”aÚÿ-QG:MÞþøô7PK­k?s”¥catblock/manifest.jsonUT %vMN/vMNux jˆEÎM
-Â0†á}N1Îƍݺԕg‘i:$¡ùc’Š(ÞݦÜ>óò1o€‘ãðLõä“q×ôÁR\Šípèö«
-\´¸\~Mq[ÁRm™_ý$†e³Æ™%¸Ò6Ê_‘Ÿ³¸À±’Çےô¤G#iŠÃ=“YžøSgkð¨>ê PKÕk?®3 H! catblock/background.htmlUTqvMNux jˆPKZ?")2¦ šcatblock/loldogs.jsUTðWMNux jˆPK­k?s”¥ ücatblock/manifest.jsonUT%vMNux jˆPKË
+PKƒ?îÔÑw¢¢catblock/background.html<!doctype html>
+<script src="loldogs.js"></script>
+<script>
+// Simple extension to replace lolcat images from
+// http://icanhascheezburger.com/ with loldog images instead.
+
+chrome.experimental.webRequest.onBeforeRequest.addListener(
+ function(info) {
+ console.log("Cat intercepted: " + info.url);
+ // Redirect the lolcal request to a random loldog URL.
+ var i = Math.round(Math.random() * loldogs.length);
+ return {redirectUrl: loldogs[i]};
+ },
+ // filters
+ {
+ urls: [
+ "http://icanhascheezburger.files.wordpress.com/*",
+ "http://chzmemebase.files.wordpress.com/*",
+ ],
+ types: ["image"]
+ },
+ // extraInfoSpec
+ ["blocking"]);
+</script>
+PKƒ?U°Ô秧catblock/loldogs.jsvar loldogs = [
+"http://ihasahotdog.files.wordpress.com/2011/08/funny-dog-pictures-yoo-bin-warndid.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/08/funny-dog-pictures-it-juzz-liek-ezploded-or-sumfin.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/08/funny-dog-pictures-cool-story-bro-got-anymore-bacon.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/08/funny-dog-pictures-ohaii-iz-n-ur-livin-room-defyin-ur-gravaties.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/08/cue-puppy-pictures-spike-is-not-sleeping-on-duty-hes-lulling-you-into-a-false-sense-of-security.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/08/funny-dog-pictures-pens-too-mainstream.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/08/funny-dog-pictures-tyrannodoggus-rex.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/08/funny-dog-pictures-sniper-dog-in-position.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-i-see-wat-yur-doin-must-put-it-on-internet.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/cute-puppy-pictures-fresh-squeed.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-that-sir-is-not-my-issue.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-trippin.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-oh-gurl-diz-iz-my-jam.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-get-off-teh-lawn-we-haz-no-komment-on-teh-allejed-mailman-insident.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-sowwy-i-kin-still-feel-da-pea.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-hang-upz-ai-haz-dem.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-i-haz-a-happy-cuz-im-going-to-mai-fer-ebber-home.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-the-guitar-its-a-les-paw.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-if-you-need-me-ill-just-be-watching-the-game.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-camouflage-complete.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/cute-puppy-pictures-its-okay-i-tuck-myself-in.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-transformers-more-than-meets-the-eye.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/cute-puppy-pictures-a-long-night-of-pwnage.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/raised-in-the-woods-sos-he-knew-every-tree-killed-him-a-bear-when-he-was-only-three.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/this-be-ten-times-betteh-den-laska.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-wut-did-u-say-mai-heering-iz-spotty.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/07/funny-dog-pictures-albark-einstein-discusses-relativity.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-goggie-ob-teh-week-i-love-you.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-oh-lord-take-me-now-i-broke-my-chew-toy.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-i-has-a-safe.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-corgi-choir.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-goggie-ob-teh-week-snaaaaacks-i-love-snaaaaacks.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-porky-pug-bath-club-est.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-so-wuts-so-tuff-abowt.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-taek-teh-pitcher-awreddy.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-hip-um-pot-o-mush-impresshun-iz-good.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-if-it-touchez-floor-itz-mine-no-secund-rule.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-pug-life.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-readz-us-a-storee.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-green-light-red-light-green-light.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/648800e7-f305-43e8-83ed-06a5325923c8.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/cute-puppy-pictures-why-ai-always-gets-picked-last.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/cute-puppy-pictures-corgagram.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/cute-puppy-pictures-shes-got-a-chicken-to-ride-and-she-dont-care.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-caring-is-for-the-birds.jpg",
+"http://ihasahotdog.files.wordpress.com/2011/06/funny-dog-pictures-goggie-ob-teh-week-pudge-is-teh-boss.jpg",
+];
+PKƒ?s”¥¥catblock/manifest.json{
+ "name": "CatBlock",
+ "version": "1.0",
+ "description": "I can't has cheezburger!",
+ "permissions": ["experimental"],
+ "background_page": "background.html"
+}
+PKƒ?îÔÑw¢¢ catblock/background.htmlPKƒ?U°Ô秧 Øcatblock/loldogs.jsPKƒ?s”¥¥( °catblock/manifest.json8d164e0de05f62e751308b546d39ef9eb4587239PKó‰

Powered by Google App Engine
This is Rietveld 408576698