First Commit!
This should work out nicely
This commit is contained in:
1 parent
ccfb9833af
commit
d79a13a3b3
4 files changed
+11
-38
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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":
|
||||
[
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user