From 331c7dee6f21adedeb2b180aba08841354188f49 Mon Sep 17 00:00:00 2001 From: Nicolas Gaivironsky Date: Tue, 12 Mar 2013 22:12:17 +0800 Subject: [PATCH] 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 fef888a..0f8e541 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"); }