From 4e33371afc37e62b41aecc5425a5e3a3f957b9d7 Mon Sep 17 00:00:00 2001 From: ironbrands16 <103500025+ironbrands16@users.noreply.github.com> Date: Thu, 11 May 2023 18:39:06 +0200 Subject: [PATCH 1/2] Fix problem with solana extension It seems Solana from Phantom has this namespace for their browser extension. I added a check for prevent them being detected as bots. --- src/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/default.js b/src/default.js index dfeccbd9..05402523 100644 --- a/src/default.js +++ b/src/default.js @@ -490,7 +490,7 @@ nav.webdriver || window.__nightmare || window.callPhantom || - window._phantom || + window._phantom && !window._phantom.solana || window.phantom || window.__polypane || window._bot || From 38373b8618fc926cecf5e3368b1e53d2c852288c Mon Sep 17 00:00:00 2001 From: Adriaan <1079135+adriaanvanrossum@users.noreply.github.com> Date: Fri, 12 May 2023 14:47:29 +0200 Subject: [PATCH 2/2] Move from _phantom to phantom --- src/default.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/default.js b/src/default.js index 05402523..4938b544 100644 --- a/src/default.js +++ b/src/default.js @@ -486,12 +486,13 @@ // /** if botdetection **/ + var phantom = window.phantom; var bot = nav.webdriver || window.__nightmare || window.callPhantom || - window._phantom && !window._phantom.solana || - window.phantom || + window._phantom || + phantom && !phantom || window.__polypane || window._bot || isBotAgent ||