diff --git a/CloudToButt.crx b/CloudToButt.crx deleted file mode 100644 index a5db2d8..0000000 Binary files a/CloudToButt.crx and /dev/null differ diff --git a/README.md b/README.md index 5a44f51..f0d06a5 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,9 @@ -cloud-to-butt +walk-to-wank ============= -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) - -Note that there are forks of this extension that simply replace 'cloud' with 'butt'. -In my personal opinion, that approach is too broad and it's less funny as a result, but it is clearly a very -polarizing issue in the cloud-to-butt user community. Forks are free to do whatever they like. But officially, _this_ -extension replaces only the phrase described above. Thank you for your concern. - -Screenshot Gallery ------------------- - -http://www.flickr.com/groups/cloud-to-butt/ +Chrome extension that replaces occurrences of 'walk' with 'wank' 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 - -Firefox Version ---------------- - -Can be found here: https://github.com/DaveRandom/cloud-to-butt-mozilla - - -Opera Version ---------------- - -Can be found here: https://github.com/DaveRandom/cloud-to-butt-opera +In Chrome, choose Window > Extensions. Drag WalkToWank.crx into the page that appears. diff --git a/Source/content_script.js b/Source/content_script.js index 5a61aaa..0b11982 100644 --- a/Source/content_script.js +++ b/Source/content_script.js @@ -30,11 +30,12 @@ function walk(node) 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"); + + // Deal with the easy case + v = v.replace(/\b(W|w)alk/g, function(match, p1, p2, offset, string) { + w = String.fromCharCode(p1.charCodeAt(0)); + return w + "ank"; + }); textNode.nodeValue = v; } diff --git a/Source/manifest.json b/Source/manifest.json index 205e2c4..1a26132 100644 --- a/Source/manifest.json +++ b/Source/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 2, - "name": "Cloud To Butt", + "name": "Walk To Wank", "version": "1.0", - "description": "Replaces the text 'the cloud' with 'my butt'.", + "description": "Replaces the text 'walk' with 'wank'.", "content_scripts": [ {