From 9a9965efb2eac0aa596f57fb33c1d509b14a9ec8 Mon Sep 17 00:00:00 2001 From: Joe Lollo <53008442+ChessPiece21@users.noreply.github.com> Date: Tue, 31 Aug 2021 13:27:31 -0700 Subject: [PATCH] Inject attempt round 3. --- src/inject/inject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inject/inject.js b/src/inject/inject.js index 1141520..3e114d5 100644 --- a/src/inject/inject.js +++ b/src/inject/inject.js @@ -23,8 +23,8 @@ chrome.extension.sendMessage({}, function(response) { } function generateReplacment(text) { - var regex1 = /algebra/gi; - return text.replace(regex1, getName()).replace("algebra", "Al-Jazeera"); + var regex1 = /algebra/; + return text.replace(regex1, replace("algebra", "Al-Jazeera")); } }); \ No newline at end of file