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()