Skip to content

Add cosmetic autoconsent rule for americangreetings.com#1307

Draft
noisysocks wants to merge 1 commit intoranderson/context-eng-benchmark-v2-experimentalfrom
cursor/americangreetings-autoconsent-rule-3474
Draft

Add cosmetic autoconsent rule for americangreetings.com#1307
noisysocks wants to merge 1 commit intoranderson/context-eng-benchmark-v2-experimentalfrom
cursor/americangreetings-autoconsent-rule-3474

Conversation

@noisysocks
Copy link
Copy Markdown
Contributor

Adds a new cosmetic autoconsent rule for the cookie consent popup on https://www.americangreetings.com/.

Why cosmetic?

The popup, served by a Tealium-based consent prompt customised for AmericanGreetings (markup #__tealiumGDPRecModal > #privacy_manager.privacy_prompt > .pm-inner.pm-site-americangreetings), only exposes a single "Ok" accept button (#accept_cookies). There is no reject / decline / manage option, so the rule hides the popup via CSS instead of attempting to opt out through a click.

Rule

  • prehideSelectors / optOut hide: #__tealiumGDPRecModal:has(.pm-site-americangreetings) — scoped to the AmericanGreetings-customised variant so it won't accidentally hide other Tealium consent prompts on sister sites (Blue Mountain, Jacquie Lawson, etc.).
  • optIn: clicks the #accept_cookies "Ok" button.
  • The page does not lock scroll or add an overlay, so no extra cosmetic-breakage fixes are needed.

Verification

  • npm run build-rules
  • npm run rule-syntax-check
  • npm run lint-fix
  • npm run test:lib (all unit tests pass)
Open in Web Open in Cursor 

Co-authored-by: Robert Anderson <robert@noisysocks.com>
@daxtheduck
Copy link
Copy Markdown
Collaborator

CI run finished. Artifacts ZIP for the review tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants