Skip to content

Commit

Permalink
Fix some reload loops on www.fidelity.co.uk and other Ensighten sites
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed May 23, 2024
1 parent 725aad5 commit 554cdc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion rules/autoconsent/ens-modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
]
Expand Down
6 changes: 4 additions & 2 deletions rules/autoconsent/ens-notify-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
]
}

0 comments on commit 554cdc8

Please sign in to comment.