From 406f5d3873a415ff8c012babaf5cbe7d1a3c36d2 Mon Sep 17 00:00:00 2001 From: Kyler Ramsey Date: Thu, 24 Sep 2026 02:41:33 -0700 Subject: [PATCH] card-art.py: drop the Hungry Pathing texture override (its site has none now) Co-Authored-By: Claude Opus 5.5 --- scripts/card-art.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/card-art.py b/scripts/card-art.py index 4309fd0..78f382a 100644 --- a/scripts/card-art.py +++ b/scripts/card-art.py @@ -15,8 +15,6 @@ # card id -> (page, CSS selector of the signature element, or None to use the clip rectangle) # cards taken from their site's dark mode (Kyler, 2026-09-24: Timber Together's darker map reads better) DARK = {"timber-together"} -# extra CSS for a capture: Hungry Pathing's board without its slate texture (it read as smoke) -CSS = {"hungry-pathing": ".board, .shift { background-image: none !important; }"} # steps run on the page before the capture: Persistent Work Areas pins the Farmhouse too, so two outlines show SETUP = {"persistent-work-areas": """ document.querySelector('svg.map g.bld[aria-label="Select Farmhouse"]').dispatchEvent(new MouseEvent('click', {bubbles: true})); @@ -44,8 +42,6 @@ page.goto(url, wait_until="networkidle") if card in SETUP: page.evaluate(SETUP[card]) - if card in CSS: - page.add_style_tag(content=CSS[card]) page.wait_for_timeout(600) png = page.locator(sel).first.screenshot() if sel else page.screenshot(clip=clip) page.close()