From e326b3f04b7c76707749b43a4d830845cd047464 Mon Sep 17 00:00:00 2001 From: Samuel Wong <32050386+BinaryScary@users.noreply.github.com> Date: Fri, 26 Jan 2024 12:47:08 -0500 Subject: [PATCH] Update content_script.js --- chrome/content_script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content_script.js b/chrome/content_script.js index aa5aed4..d2ced93 100644 --- a/chrome/content_script.js +++ b/chrome/content_script.js @@ -11,6 +11,10 @@ var injectedJS = function(pushstate, msgeventlistener, msgporteventlistener) { var loaded = false; var originalFunctionToString = Function.prototype.toString; var m = function(detail) { + // ignore chrome extensions + if('stack' in detail && detail.stack.includes("chrome-extension://")){ + return + } var storeEvent = new CustomEvent('postMessageTracker', {'detail':detail}); document.dispatchEvent(storeEvent); };