Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions scripts/card-art.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
Expand Down Expand Up @@ -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()
Expand Down
Loading