From 6b29908029f950c15781c2ac1ce50d33b7d4d626 Mon Sep 17 00:00:00 2001 From: Nicolas Gaivironsky Date: Tue, 12 Mar 2013 22:12:17 +0800 Subject: [PATCH 01/21] Update content_script.js Preserve capitalization --- Source/content_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/content_script.js b/Source/content_script.js index fef888ac..0f8e5411 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -29,7 +29,7 @@ function walk(node) function handleText(textNode) { - textNode.nodeValue = textNode.nodeValue.replace(/\bthe cloud\b/gi, "my butt"); + textNode.nodeValue = textNode.nodeValue.replace(/\bThe cloud\b/g, "My butt").replace(/\bthe cloud\b/gi, "my butt"); } From 90bb374914e1cf7f36a37cdac5c6f2347753cbad Mon Sep 17 00:00:00 2001 From: Steven Frank Date: Tue, 12 Mar 2013 10:30:47 -0700 Subject: [PATCH 02/21] preserve capitalization --- CloudToButt.crx | Bin 1026 -> 1035 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/CloudToButt.crx b/CloudToButt.crx index fb81d2fd977ec0b709a2dc338fe04c3f1b56318d..a554345ab22705c9baaae95939b715e092b52db6 100644 GIT binary patch delta 635 zcmV->0)+j72#W}iEq~Uyx>(6f2IiU-e3x7=c_^UF>Gb_!?D^d`Fj4_t7@iTg)QYZ` zVbWAwVjF^Ul9>&oglJ)-2;US^+JS1##j=b9VmsCNB8nky{{-ibF(h#6Rvy6xqJeh& z#CrIiA1&Dz?WLLog7R7;N=VXp?)pFxP}oOEGdmix2wLrP!+(_m0|5X5E4nU#Os=Gk zw5ha&kAB!n6a6Bl+BYR8Ab+LEGI)hPG!7vc+r!K|c1;ZiJKRQ+38CF)neEf6%D<@B>K??ZD0*7f0A<8pId|kKnfBRTJ;EbTL9|1bI2}l=;MUGT+Pp9VlQB_ zrmAaRL~(eU#E!P>!!si}=SF%V8JRdVFJbIJ2=+=vF_H4;!xql^Dwc`3qL@o2U>1oZ z5^&*Abf``|@#OM8n%r||Hp2{~eCd#(Y2*2#jCx!aXIW4Kh4=YDGPhsc+Sv>kNy1Jplj! VN0W;KPyuX{+yfv6Ndf=>003c~9994T delta 626 zcmV-&0*(EP2!aTZEq~8>BVNYfSZ=)DVF#8#c@Ia{HzX;n*ZU*q%ioS({w*LKYVH?3 zU-4!$Gk}*#T}@DQ0*pnyH@$P9^fp|}34Yl%T;knI|Qr~reRk-8E*GDYKyEpk(z ze_=`K9-xPSRk(t8)uh0vZg*~T*hLmMY9V;pf-}{iG9=FD{eOP~0|5X52OvHWr$29p z2Jpfu-DtGbGZU_XW+`sJ!OYFtA8qvBzxCWZ7tt+Xm9Q|yITaRxBH8oV&;UhY_6+({wDx9-4H z&f7Z(_!CJ;^rMTWf;F&6f6iflZV@s7DM(Nl-6Py@0I2KEBfGqzPZRojH9wPyy@1J@ zF0Xl!#Nl}oJG!oqFN|zCH_{8q$i$&}31bIBuvaQdiJU(luJA6DsZ695rCc@vvq&0| zfD4DBLw(|jCzlV&;ESdR=%8{aO Date: Tue, 12 Mar 2013 10:49:33 -0700 Subject: [PATCH 03/21] improved case preservation --- CloudToButt.crx | Bin 1035 -> 1065 bytes Source/content_script.js | 9 ++++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CloudToButt.crx b/CloudToButt.crx index a554345ab22705c9baaae95939b715e092b52db6..a5db2d8b37268bf9256c18b82e97137f4eb9e47b 100644 GIT binary patch delta 698 zcmV;r0!96c2&o8=Eq}&gzu2AYVaSf2hQZJoY5-vVu=5URvh)^Ne6r==|R55;O zbJd24Kv!8WOicfx6-w^YdBUQt-uBQcz0+1QY-O00;m80000G@sNL80RRBS0ssIJ0001EZ*FvD zZggLBV{&P5bS`RheNs(NgFp~H@BWHOPbFy}#)GlMi?s(2da?0fdRbtAO_z_rQfy5B zyE99RSQ|NP;LV%&-ptY~vzsSX+!a__KdO?07fP9SWq)jSRYK3@vP#ec`6WdVz%#VA zG6*);EsVUhsS3!k!KEYR*4E1)(5;^(LD7HIcWWu6*sBKOT$^M8C4O2m5^b+-oWmU0 z#OGsks1ZB>DacU7sztb20+8z3Ag4T|_XGNL3O|yGJ%K5j%1(9R%;8}$OLf!Q6(b?n zdU`_&GJkMrUcxwm5S*2oT*2p$Hys&WX0A=R6}g%>0HcW;k$@u~QG;s76AvkGUC0e9 za~Njis!R+rG;BPaw2{VfaxD|8rQ>zHAl~qvyw9lH=({oj|6 zgq5kfWE%z90%k7(6f2IiU-e3x7=c_^UF>Gb_!?D^d`Fj4_t7@iTg)QYZ` zVbWAwVjF^Ul9>&oglJ)-2;US^+JS1##j=b9VmsCNB8nky{{-ibF(h#6Rvy6xqJeh& z#CrIiA1&Dz?WLLog7R7;N=VXp?)pFxP}oOEGdmix2wLrP!+(_m0|5X5E4nU#Os=Gk zw5ha&kAB!n6a6Bl;H9mX1V+IrYwyR7UmdT|^zHg%kkILpfD zzfW@75ZFc7PfvPJ(x}{NT{e2C(TB8X%5#!Sc^teBwtw+3a@sc~CLn*M$TE0^J~R#? z7~8|lJ9bSC20PqFk_n;RW|{5Ns?6%~t9{r>A;q`qKpX4I4S4(sBqaLL25n#sERu5A zpId|kKnfBRTJ;EbTL9|1bI2}l=;MUGT+Pp9VlQB_rmAaRL~(eU#E!P>!!si}=SF%V z8JRdVFMna|KnV6qMKO``=ff7x`YM)*xT2U#CSVqcBNA}oP;{tHJn`i6KAPNfXEwtO zqkQR*p=sm!qKtZ67H3&d1BLhbK(}Aq000170xl5% diff --git a/Source/content_script.js b/Source/content_script.js index 0f8e5411..925ca312 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -29,7 +29,14 @@ function walk(node) function handleText(textNode) { - textNode.nodeValue = textNode.nodeValue.replace(/\bThe cloud\b/g, "My butt").replace(/\bthe cloud\b/gi, "my butt"); + var v = textNode.nodeValue; + + v = v.replace(/\bThe Cloud\b/g, "My Butt"); + v = v.replace(/\bThe cloud\b/g, "My butt"); + v = v.replace(/\bthe Cloud\b/g, "my Butt"); + v = v.replace(/\bthe cloud\b/g, "my butt"); + + textNode.nodeValue = v; } From b8c646b399093af3a8e4393e871ca87fec220d90 Mon Sep 17 00:00:00 2001 From: Steven Frank Date: Tue, 12 Mar 2013 11:38:00 -0700 Subject: [PATCH 04/21] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 115ef3ef..e45cd585 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ cloud-to-butt ============= -Chrome extension that replaces occurrences of 'the cloud' with 'my butt' +Chrome extension that replaces occurrences of 'my butt' with 'my butt' [Direct download of crx file](https://github.com/panicsteve/cloud-to-butt/blob/master/CloudToButt.crx?raw=true) @@ -9,3 +9,8 @@ Installation ------------ In Chrome, choose Window > Extensions. Drag CloudToButt.crx into the page that appears. + +Safari Version +-------------- + +Can be found here: https://github.com/logancollins/cloud-to-butt-safari From 3cee782d5f8320d3680d4c8e8d549379c9129c55 Mon Sep 17 00:00:00 2001 From: Steven Frank Date: Tue, 12 Mar 2013 11:48:02 -0700 Subject: [PATCH 05/21] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e45cd585..8eeac6a3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ cloud-to-butt ============= -Chrome extension that replaces occurrences of 'my butt' with 'my butt' +Chrome extension that replaces occurrences of 'the cloud' with 'my butt' [Direct download of crx file](https://github.com/panicsteve/cloud-to-butt/blob/master/CloudToButt.crx?raw=true) From 7303f178fde12d50e888ecc12580a3c2a7c0cb5c Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Wed, 13 Mar 2013 11:20:46 +0000 Subject: [PATCH 06/21] Added link to Firefox port Because some people still use Firefox, despite my best efforts to persuade them not to --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8eeac6a3..56073a2a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ cloud-to-butt ============= -Chrome extension that replaces occurrences of 'the cloud' with 'my butt' +Chrome extension that replaces occurrences of 'my butt' with 'my butt' [Direct download of crx file](https://github.com/panicsteve/cloud-to-butt/blob/master/CloudToButt.crx?raw=true) @@ -14,3 +14,8 @@ Safari Version -------------- Can be found here: https://github.com/logancollins/cloud-to-butt-safari + +Firefox Version +--------------- + +Can be found here: https://github.com/DaveRandom/cloud-to-butt-mozilla From 62a50d3be055d93f760ad4d409269d4513a9d91c Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Wed, 13 Mar 2013 11:23:15 +0000 Subject: [PATCH 07/21] Ugh, fix the extension's handywork duhhhhh --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56073a2a..5da4e4f1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ cloud-to-butt ============= -Chrome extension that replaces occurrences of 'my butt' with 'my butt' +Chrome extension that replaces occurrences of 'the cloud' with 'my butt' [Direct download of crx file](https://github.com/panicsteve/cloud-to-butt/blob/master/CloudToButt.crx?raw=true) From 030d31126d107f6e2a70795eb38d31e718fdae13 Mon Sep 17 00:00:00 2001 From: Steven Frank Date: Wed, 13 Mar 2013 12:03:31 -0700 Subject: [PATCH 08/21] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 5da4e4f1..5aacd86f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,11 @@ Chrome extension that replaces occurrences of 'the cloud' with 'my butt' [Direct download of crx file](https://github.com/panicsteve/cloud-to-butt/blob/master/CloudToButt.crx?raw=true) +Screenshot Gallery +------------------ + +http://www.flickr.com/groups/cloud-to-butt/ + Installation ------------ From ea8a4916a9696fcc2a585ceaecdd1cf48e2910a2 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 14:48:11 -0400 Subject: [PATCH 09/21] Changing regex --- Source/content_script.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/content_script.js b/Source/content_script.js index 925ca312..aa1fce29 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -31,10 +31,13 @@ function handleText(textNode) { var v = textNode.nodeValue; - v = v.replace(/\bThe Cloud\b/g, "My Butt"); - v = v.replace(/\bThe cloud\b/g, "My butt"); - v = v.replace(/\bthe Cloud\b/g, "my Butt"); - v = v.replace(/\bthe cloud\b/g, "my butt"); + v = v.replace(/\b(T|t)he (C|c)loud\b/g, function(match, p1, p2, offset, string) { + // t - 7 = m + // c - 1 = b + first = String.fromCharCode(p1.charCodeAt(0) - 7); + second = String.fromCharCode(p2.charCodeAt(0) - 1); + return first + "y " + second + "utt"; + }); textNode.nodeValue = v; } From 6ad2768ebb119cf7177264c3e8c2da449f04fbd6 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 14:55:00 -0400 Subject: [PATCH 10/21] Even more awesome --- Source/content_script.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Source/content_script.js b/Source/content_script.js index aa1fce29..8bc9dd48 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -31,14 +31,25 @@ function handleText(textNode) { var v = textNode.nodeValue; + // Deal with the easy case v = v.replace(/\b(T|t)he (C|c)loud\b/g, function(match, p1, p2, offset, string) { // t - 7 = m // c - 1 = b - first = String.fromCharCode(p1.charCodeAt(0) - 7); - second = String.fromCharCode(p2.charCodeAt(0) - 1); - return first + "y " + second + "utt"; + m = String.fromCharCode(p1.charCodeAt(0) - 7); + b = String.fromCharCode(p2.charCodeAt(0) - 1); + return m + "y " + b + "utt"; }); - + // Get the corner cases + if(v.match(/cloud/i)) { + // If we're not talking about weather + if(v.match(/PaaS|SaaS/IaaS/computing/data/storage/cluster/distributed/i) { + v = v.replace(/(C|c)loud/i, function(match, p1, p2, offset, string) { + // c - 1 = b + b = String.fromCharCode(p1.charCodeAt(0) - 7); + return b + "utt"; + }); + } + } textNode.nodeValue = v; } From 9fc2a93666b65aa390a3337a3bd77ea4acd92abb Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 14:58:46 -0400 Subject: [PATCH 11/21] Fix --- Source/content_script.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/content_script.js b/Source/content_script.js index 8bc9dd48..21001701 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -27,8 +27,7 @@ function walk(node) } } -function handleText(textNode) -{ +function handleText(textNode) { var v = textNode.nodeValue; // Deal with the easy case @@ -42,8 +41,8 @@ function handleText(textNode) // Get the corner cases if(v.match(/cloud/i)) { // If we're not talking about weather - if(v.match(/PaaS|SaaS/IaaS/computing/data/storage/cluster/distributed/i) { - v = v.replace(/(C|c)loud/i, function(match, p1, p2, offset, string) { + if(v.match(/PaaS|SaaS/IaaS/computing/data/storage/cluster/distributed/i)) { + v = v.replace(/(C|c)loud/i, function(match, p1, offset, string) { // c - 1 = b b = String.fromCharCode(p1.charCodeAt(0) - 7); return b + "utt"; From d923ba5a9304e05b846196d1c62d25690f24d145 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 15:00:25 -0400 Subject: [PATCH 12/21] All kinds of mistakes today --- Source/content_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/content_script.js b/Source/content_script.js index 21001701..0b3c5d07 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -41,7 +41,7 @@ function handleText(textNode) { // Get the corner cases if(v.match(/cloud/i)) { // If we're not talking about weather - if(v.match(/PaaS|SaaS/IaaS/computing/data/storage/cluster/distributed/i)) { + if(v.match(/PaaS|SaaS|IaaS|computing|data|storage|cluster|distributed/i)) { v = v.replace(/(C|c)loud/i, function(match, p1, offset, string) { // c - 1 = b b = String.fromCharCode(p1.charCodeAt(0) - 7); From 7139eeccaab7a231ee357ca9e496e9639b5e690a Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 15:03:01 -0400 Subject: [PATCH 13/21] Fix - b = < --- Source/content_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/content_script.js b/Source/content_script.js index 0b3c5d07..d55d2c15 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -44,7 +44,7 @@ function handleText(textNode) { if(v.match(/PaaS|SaaS|IaaS|computing|data|storage|cluster|distributed/i)) { v = v.replace(/(C|c)loud/i, function(match, p1, offset, string) { // c - 1 = b - b = String.fromCharCode(p1.charCodeAt(0) - 7); + b = String.fromCharCode(p1.charCodeAt(0) - 1); return b + "utt"; }); } From ca6c3362d0ddb81d9904b77f3c86d6da51ca8ec4 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 17:00:25 -0400 Subject: [PATCH 14/21] Slight change --- Source/content_script.js | 11 ++++++++++- Source/manifest.json | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Source/content_script.js b/Source/content_script.js index d55d2c15..f21e1644 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -31,13 +31,22 @@ function handleText(textNode) { var v = textNode.nodeValue; // Deal with the easy case - v = v.replace(/\b(T|t)he (C|c)loud\b/g, function(match, p1, p2, offset, string) { + v = v.replace(/\b(T|t)he (C|c)loud/g, function(match, p1, p2, offset, string) { // t - 7 = m // c - 1 = b m = String.fromCharCode(p1.charCodeAt(0) - 7); b = String.fromCharCode(p2.charCodeAt(0) - 1); return m + "y " + b + "utt"; }); + + // Deal with private clouds + v = v.replace(/\b(P|p)rivate (C|c)loud/g, function(match, p1, p2, offset, string) { + // t - 7 = m + // c - 1 = b + y = String.fromCharCode(p1.charCodeAt(0) + 9); + b = String.fromCharCode(p2.charCodeAt(0) - 1); + return y + "our " + b + "utt"; + }); // Get the corner cases if(v.match(/cloud/i)) { // If we're not talking about weather diff --git a/Source/manifest.json b/Source/manifest.json index 205e2c4f..ba9f562b 100644 --- a/Source/manifest.json +++ b/Source/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 2, - "name": "Cloud To Butt", + "name": "Cloud To Butt Plus" "version": "1.0", - "description": "Replaces the text 'the cloud' with 'my butt'.", + "description": "Replaces the text 'the cloud' with 'my butt', as well as 'cloud' with 'butt' in certain contexts.", "content_scripts": [ { From 906fcc306b300b64d471c9ce12cb0eb46d5ef153 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 17:01:53 -0400 Subject: [PATCH 15/21] Missed a comma --- Source/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/manifest.json b/Source/manifest.json index ba9f562b..eca1fde8 100644 --- a/Source/manifest.json +++ b/Source/manifest.json @@ -1,6 +1,6 @@ { "manifest_version": 2, - "name": "Cloud To Butt Plus" + "name": "Cloud To Butt Plus", "version": "1.0", "description": "Replaces the text 'the cloud' with 'my butt', as well as 'cloud' with 'butt' in certain contexts.", "content_scripts": From b26501e7429706a39c9aa87f1d5f38d757cc1d98 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 17:06:18 -0400 Subject: [PATCH 16/21] Fixing CRX --- CloudToButt.crx | Bin 1065 -> 1346 bytes README.md | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CloudToButt.crx b/CloudToButt.crx index a5db2d8b37268bf9256c18b82e97137f4eb9e47b..b9d945d6de0b53821089bcfe05391d28373fd338 100644 GIT binary patch delta 1269 zcmZ3RrD%R^7A6_uBnG?^t!aotJFBI%l?vct%O_x21bb zEmb*YetLF)`I(&-25!5)H0EWj^!*||%lt_7&UXU0PKtI-t^W{aRG-eo%*enfxTPS} z&q`gGkFDE2;@$R%x@pexR}Pl&wRyvA(+g*rF4ApWG@4@MdNaVPIh30AdD)ecBhyBbgW&_OLQA z2m<-Z`FSO&c_s11$wiq3C3;!KTSI*FXFCYk9$qi;GbkWt#bsxaXxosyke@-WMN^!w zp5DZhCYo?@(~PKt|Mwbmm#usgHg#3hr>eitUZ0)a=qIA@xGFU|DRr^S^7{6Ir@tek zJy(~o%FfoFo5b;N_4}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!n##^=-ahP4#?b)+sCD)0K2bU^8y>{)i!iBZ-RUI$ZUn$SlTykSI+oPD- zDU7OhQAR?!>vQKEmbr1{d2;azK^q3m69Gq7x$cN$n(*qD!g8C%-a3W9&-=|~C1cap`R)+iIm?`3 zai{de24(rc=B(qw{F?c(CwR4sCDNX(^5HQu$+4NUW#X~IB3FH0w>KG=27pH*4l@{2N;IXSU4T6X8eS zwrW>=oWEnQfPUSPm-l~K3x03kBleRQH8QxG4qn;>j0D!n7nw!t`%ZH;8wj{wKN-$* zlVwT9?WL!`@q3jkO**C-<)f7LhWX?D*((BeNl2WVYk8;BIB`nu`xh zBRocjY@C z`yfn`XSYRp-kOK69+(Jq&iKQ3RPnC<3b*y`+m`djZ+Jh&jsJ>*z&_5DJ0&5W6^dY*c>9rmX8SDLrzM>Y_Wk7n7I%|DU-a+OB6? zkcjtHzkaoQ3)Z@xNIU0cSNxAPz?%`6jIbrH$!AzhW#HZerZ-+t;sXL869~E(C(E+R Lv!w%dGcW)EfqR^8 diff --git a/README.md b/README.md index 5aacd86f..828cf007 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -cloud-to-butt +Cloud To Butt Plus ============= -Chrome extension that replaces occurrences of 'the cloud' with 'my butt' +Chrome extension that replaces occurrences of 'the cloud' with 'my butt', and other amusing cloud-related substitutions. -[Direct download of crx file](https://github.com/panicsteve/cloud-to-butt/blob/master/CloudToButt.crx?raw=true) +[Direct download of crx file](https://github.com/hank/cloud-to-butt/blob/master/CloudToButt.crx?raw=true) Screenshot Gallery ------------------ From 11dc366ebdae4cce8eb835897656b5138590b025 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 17:11:16 -0400 Subject: [PATCH 17/21] Making match global --- Source/content_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/content_script.js b/Source/content_script.js index f21e1644..c9b3762b 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -51,7 +51,7 @@ function handleText(textNode) { if(v.match(/cloud/i)) { // If we're not talking about weather if(v.match(/PaaS|SaaS|IaaS|computing|data|storage|cluster|distributed/i)) { - v = v.replace(/(C|c)loud/i, function(match, p1, offset, string) { + v = v.replace(/(C|c)loud/gi, function(match, p1, offset, string) { // c - 1 = b b = String.fromCharCode(p1.charCodeAt(0) - 1); return b + "utt"; From 498601b6dad7e8d17cfe2cf4452334d289f2bfe5 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 14 Mar 2013 17:14:18 -0400 Subject: [PATCH 18/21] New CRX --- .gitignore | 1 + CloudToButt.crx | Bin 1346 -> 1346 bytes 2 files changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..610e4049 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +CloudToButt.pem diff --git a/CloudToButt.crx b/CloudToButt.crx index b9d945d6de0b53821089bcfe05391d28373fd338..857fa4d271524cedd55db79d6409e2640608c5a3 100644 GIT binary patch delta 808 zcmV+@1K0e*3c?DIvVTp#EPlD$_NX$wCtoRIkiPGa76ZQQH*D7|hJ-OQ~-XQuw- zZqxw+t&-r-^w;uAM!>%>cgxUv+AyE2*lB!Y!@jgi)yMGu^O9KQH0000800000 z0OxYlTv-AD0KEkO01*HH0Ap`%bY*UIUvpz}X>fEdYIC(z-;0|-5PsIbV#rICOSQQ^ z9GB3Ck{%^5QC*_K$@ zDADOLT={<1R)5keT|vj@N~ait|LS{j3>#>yE)Z<48o2mnMwgJI!KHJ`t*w`FteR+_ z#%1@det7ad-#Z8cGFL@9hYEjKD&#etvNDGNxJbmu?pPy)0KP{BJt-Q5#S(zBJ{8C; z&*X_ zN(xo&U6|)2a<*^)E=6361f2Lt42l=-cwqV7k=$`+Cc_@NsL}!%8Wdkm!YIdSGM0&} zrQ?em(CZ-Zfl8l2C+JsEv`Cc)wNMm5n&&h?1Qg8?m=75_?hqNQ3n4LxzbC=2w;?$N z>t2S1ZhzBwKfg>oC+TaE7E@qeE+I^`G)+atB9(763! zfm9Y8BG+;dJJn(pPMX|g(BT_{wC@y74-Jt6k?7VEE-0UIp3^MPLTvjj9~(ZTF6-7( zSf2_jdU_Ahqm8{R+Qy>kQ^mq2t;K2OtHDi1rEbsa_MC2x=8sxmukcyxiQd0R%%9Wf ma}Hw3eee2F=5|*6I`Dr2v$_Ka0SV`F)LdBt006y{%LI3n?0=&G delta 808 zcmV+@1K0e*3c?DIvVRe@a8*t^Cld|^i$7TIw~;MoLm$+^bPk6~12AH9aYkS`)lfEdYIC(zO>dh(5Iw`M82M6AT&UAS z6k9!1ZdCbFMRJrw)yuLBW))!3vY1-I|GhH{cB$-Em8x3udj00>&6|Nv6fZ%lWm{rp zqeQ2NaOL}1TYpKbbOjxoE1hBp{;TiBF>Ii*x7sgT!n%E}x9;35$pPlp;I1n@m7=t`dMhn5c=}X!l%k_%Ia9lxggmkrmrIx_==N8GNW;!kB^QF;@z5hKT=c zRZ^&G=fXTEk+X#Za4zCnB;d$LVoyMqD87asD+{c(mbaDBA{pvz?su3XR(z z7D#2mK5{Jwu~RKp;iSn;1|7aJNc&FV^w1DF5Q%Or;ezrR=Q+*tD8#nk^0DDV>auPv zh4rbhqNn!|J=)mIqHQdiK2rx<00>lli06mm7SNdLs8P3iIbU m`VJgfao@XqlDV4|zYY8!v$_Ka0SUe<&^K8E006v`%LI3i9D&yW From e47edfb51cdb1cd8211e40e231afa95ba9c7cea4 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 15 Mar 2013 10:03:45 -0400 Subject: [PATCH 19/21] New version --- CloudToButt.crx | Bin 1346 -> 1377 bytes Makefile | 4 ++++ Source/content_script.js | 6 ++---- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/CloudToButt.crx b/CloudToButt.crx index 857fa4d271524cedd55db79d6409e2640608c5a3..f999f102fb7d6a3a89c3f78d219e79049fd903b5 100644 GIT binary patch delta 852 zcmV-a1FQVP3gHTnvVXxIe=Y0`Jsx@;1D(SV!CYe-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;?$N z>t2S1ZhzBwKfg>oC+TaE7E@qeE+I^`G)+atB9(763! zfm9Y8BG+;dJJn(pPMX|g(BT_{wC@y74-Jt6k?7VEE-0UIp3^MPLTvjj9~(ZTF6-7( zSf2_jdU_Ahqm8{R+Qy>kQ^mq2t;K2OtHDi1rEbsa_MC2x=8sxmukcyxiQd0R%%9Wf za}Hw3eee2F=5|*6I`Dr2v)Ka(0SV`F)LdBt006y{>I6^$h?6@7AO?T~00000iwJ?< diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..2c88e3e7 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +all: + DISPLAY=:0 sudo google-chrome --pack-extension=Source --pack-extension-key=CloudToButt.pem --user-data-dir=/tmp/foooo + sudo chown hank:hank Source.crx + mv Source.crx CloudToButt.crx diff --git a/Source/content_script.js b/Source/content_script.js index c9b3762b..b650b8bd 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -41,16 +41,14 @@ function handleText(textNode) { // Deal with private clouds v = v.replace(/\b(P|p)rivate (C|c)loud/g, function(match, p1, p2, offset, string) { - // t - 7 = m // c - 1 = b - y = String.fromCharCode(p1.charCodeAt(0) + 9); b = String.fromCharCode(p2.charCodeAt(0) - 1); - return y + "our " + b + "utt"; + return b + "utt"; }); // Get the corner cases if(v.match(/cloud/i)) { // If we're not talking about weather - if(v.match(/PaaS|SaaS|IaaS|computing|data|storage|cluster|distributed/i)) { + if(v.match(/PaaS|SaaS|IaaS|computing|data|storage|cluster|distributed|server|hosting|provider|grid|enterprise|provision|apps|hardware|software|/i)) { v = v.replace(/(C|c)loud/gi, function(match, p1, offset, string) { // c - 1 = b b = String.fromCharCode(p1.charCodeAt(0) - 1); From f47aff301354b7439c0c1ecc5b2e4b5ab877a684 Mon Sep 17 00:00:00 2001 From: Erik Date: Fri, 15 Mar 2013 10:04:02 -0400 Subject: [PATCH 20/21] Fixed version ID --- CloudToButt.crx | Bin 1377 -> 1377 bytes Source/manifest.json | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CloudToButt.crx b/CloudToButt.crx index f999f102fb7d6a3a89c3f78d219e79049fd903b5..207bed2224586d45f93aa4190e47f5c71ae103a7 100644 GIT binary patch delta 368 zcmV-$0gwLS3gHTnvVUhRBI~gD2UJm_4AA1rw#Kvw;8WVXlfcC7Hmx5ta;LKwDkvrT z6nz>&H38BZpfZ4AWGo7fAbD4?5-~r3(c+Y zPg>nsa@exII4g#A9hO+#w~rZU%}CJ~5U;W$CtVSPR~`8gUIA*eG6A&$1P!wjo|EeX z8-GoT!!Qhm*Y+udH--=rI?FCQ7Z`@wl@dIThPXI(h~@rJdiPpxVd%n0{@&9Qx=EpC z6Wkvr8cw(-7lYcuM_YI>GnQU``j|)fiLlE=@a1z-EdRUJrrT6BVzR4S=!L&=@y22T znh*#t1e!a`c^b}+CeZU0eoL%w!6Z1N_e@;%o2BaD0$5zhaE*b}QdgJOU!dW+I+evz z?4=O5^7uHi6EfYaX505o->5@drQ?&n&v%8s^fiaU5Fau|n`ic57*)~kQXJ%6$_JCt O1WyDFvlE_^Bn3UIVY06P delta 368 zcmV-$0gwLS3gHTnvVXxIe=Y0`Jsx@;1D(SV!CYe-P^E6x?O`zvLIF?x5f=O^i?@YPsH%ryQ1+ch~;Ti*{rLHcmzd*xtbt;Rc z*h?X96r8vmDln;~9 O1WyF3Xi=P#Bn3SHtgLAO diff --git a/Source/manifest.json b/Source/manifest.json index eca1fde8..8a3f57dd 100644 --- a/Source/manifest.json +++ b/Source/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Cloud To Butt Plus", - "version": "1.0", + "version": "1.1", "description": "Replaces the text 'the cloud' with 'my butt', as well as 'cloud' with 'butt' in certain contexts.", "content_scripts": [ From c20dd21ae3c4df7485e764a80a268a2d3a23b7f0 Mon Sep 17 00:00:00 2001 From: hrefhref Date: Tue, 8 Oct 2013 22:25:15 +0200 Subject: [PATCH 21/21] Le Cloud --- Source/content_script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/content_script.js b/Source/content_script.js index b650b8bd..68a4a8ae 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -30,8 +30,8 @@ function walk(node) function handleText(textNode) { var v = textNode.nodeValue; - // Deal with the easy case - v = v.replace(/\b(T|t)he (C|c)loud/g, function(match, p1, p2, offset, string) { + // Deal with the easy case and french people + v = v.replace(/\b(Th|th|L|l)e (C|c)loud/g, function(match, p1, p2, offset, string) { // t - 7 = m // c - 1 = b m = String.fromCharCode(p1.charCodeAt(0) - 7);