CC: Split the profile history link into 2 links
Before there was a single link which pointed to the post history in all
forums. As this sometimes takes a long time to load, this commit splits
it into 2 links:
* A link to the post history in the current forum (loads faster)
* A link to the post history in all forums (loads slower)
Change-Id: Ifa3ed2340c5af2e87d75118eb6a66aba4f395e3c
diff --git a/src/common/content_scripts_injections.js b/src/common/content_scripts.js
similarity index 73%
rename from src/common/content_scripts_injections.js
rename to src/common/content_scripts.js
index 2067075..7186037 100644
--- a/src/common/content_scripts_injections.js
+++ b/src/common/content_scripts.js
@@ -14,3 +14,9 @@
script.src = scriptName;
document.head.appendChild(script);
}
+
+function escapeUsername(username) {
+ var quoteRegex = /"/g;
+ var commentRegex = /<!---->/g;
+ return username.replace(quoteRegex, '\\"').replace(commentRegex, '');
+}