From 554cdc8609779fb7d08b674c10bdf1366a214bd7 Mon Sep 17 00:00:00 2001 From: Maxim Tsoy Date: Thu, 23 May 2024 14:35:44 +0200 Subject: [PATCH] Fix some reload loops on www.fidelity.co.uk and other Ensighten sites --- rules/autoconsent/ens-modal.json | 4 +++- rules/autoconsent/ens-notify-banner.json | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rules/autoconsent/ens-modal.json b/rules/autoconsent/ens-modal.json index 7c37ed14..5c27bba3 100644 --- a/rules/autoconsent/ens-modal.json +++ b/rules/autoconsent/ens-modal.json @@ -2,11 +2,13 @@ "name": "Ensighten ensModal", "prehideSelectors": [".ensModal"], "detectCmp": [{ "exists": ".ensModal" }], - "detectPopup": [{ "visible": ".ensModal" }], + "detectPopup": [{ "visible": "#ensModalWrapper[style*=block]" }], "optIn": [ { "waitForThenClick": "#modalAcceptButton" } ], "optOut": [ + { "wait": 500 }, + { "visible": "#ensModalWrapper[style*=block]" }, { "waitForThenClick": ".ensCheckbox:checked", "all": true }, { "waitForThenClick": "#ensSave" } ] diff --git a/rules/autoconsent/ens-notify-banner.json b/rules/autoconsent/ens-notify-banner.json index cd456852..6dff3c46 100644 --- a/rules/autoconsent/ens-notify-banner.json +++ b/rules/autoconsent/ens-notify-banner.json @@ -2,11 +2,13 @@ "name": "Ensighten ensNotifyBanner", "prehideSelectors": ["#ensNotifyBanner"], "detectCmp": [{ "exists": "#ensNotifyBanner" }], - "detectPopup": [{ "visible": "#ensNotifyBanner" }], + "detectPopup": [{ "visible": "#ensNotifyBanner[style*=block]" }], "optIn": [ { "waitForThenClick": "#ensCloseBanner" } ], "optOut": [ - { "waitForThenClick": "#ensRejectAll,#rejectAll,#ensRejectBanner" } + { "wait": 500 }, + { "visible": "#ensNotifyBanner[style*=block]" }, + { "waitForThenClick": "#ensRejectAll,#rejectAll,#ensRejectBanner,.rejectAll" } ] }