First Commit!
This should work out nicely
This commit is contained in:
1 parent
ccfb9833af
commit
d79a13a3b3
4 files changed
+10
-37
No files matched your search
Binary file not shown.
@@ -1,37 +1,9 @@
|
|||||||
cloud-to-butt
|
walk-to-wank
|
||||||
=============
|
=============
|
||||||
|
|
||||||
Chrome extension that replaces occurrences of 'the cloud' with 'my butt'
|
Chrome extension that replaces occurrences of 'walk' with 'wank'
|
||||||
|
|
||||||
[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/
|
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
In Chrome, choose Window > Extensions. Drag CloudToButt.crx into the page that appears.
|
In Chrome, choose Window > Extensions. Drag WalkToWank.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
|
|
||||||
@@ -31,10 +31,11 @@ function handleText(textNode)
|
|||||||
{
|
{
|
||||||
var v = textNode.nodeValue;
|
var v = textNode.nodeValue;
|
||||||
|
|
||||||
v = v.replace(/\bThe Cloud\b/g, "My Butt");
|
// Deal with the easy case
|
||||||
v = v.replace(/\bThe cloud\b/g, "My butt");
|
v = v.replace(/\b(W|w)alk/g, function(match, p1, p2, offset, string) {
|
||||||
v = v.replace(/\bthe Cloud\b/g, "my Butt");
|
w = String.fromCharCode(p1.charCodeAt(0));
|
||||||
v = v.replace(/\bthe cloud\b/g, "my butt");
|
return w + "ank";
|
||||||
|
});
|
||||||
|
|
||||||
textNode.nodeValue = v;
|
textNode.nodeValue = v;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Cloud To Butt",
|
"name": "Walk To Wank",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"description": "Replaces the text 'the cloud' with 'my butt'.",
|
"description": "Replaces the text 'walk' with 'wank'.",
|
||||||
"content_scripts":
|
"content_scripts":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user