Update content_script.js

Preserve capitalization
This commit is contained in:
Nicolas Gaivironsky committed 2013-03-12 22:12:17 +08:00
1 parent 329da6f2c2
commit 331c7dee6f
1 file changed
+1 -1
+1 -1
View File
@@ -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");
}