FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Your Docs Have Three Sites. They All Have Different Cookie Banners.
How-ToWeb Development

Your Docs Have Three Sites. They All Have Different Cookie Banners.

via Dev.to WebdevOndrej Machala1mo ago

Running screenshot automation across multiple domains sounds clean until you hit reality. Your staging site has a #dev-banner . Production has .cookie-consent . The marketing site has a floating chat bubble. Each domain is its own mess. The obvious fix is a hide action on every screenshot: { "name" : "user-settings" , "url" : "https://app.example.com/settings" , "actions" : [ { "type" : "hide" , "selector" : ".cookie-banner" } ] } Fifty screenshots later, .cookie-banner is scattered across your entire config. When the selector changes, you're updating it fifty times. There's a better way. One rule, all screenshots Heroshot has a top-level hiddenElements config that maps domains to CSS selectors: { "hiddenElements" : { "app.example.com" : [ ".cookie-banner" , "#support-chat" ], "docs.example.com" : [ ".announcement-bar" ], "staging.example.com" : [ "#dev-banner" , ".cookie-banner" ] } } These fire automatically for every screenshot on that domain. No per-screenshot setup. The .cookie-ba

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
19 views

Related Articles

The Boring Skills That Make Developers Unstoppable in 2026
How-To

The Boring Skills That Make Developers Unstoppable in 2026

Medium Programming • 3h ago

I Installed This VS Code Extension… and My Code Got Instantly Better
How-To

I Installed This VS Code Extension… and My Code Got Instantly Better

Medium Programming • 5h ago

The Age of Personalized Software
How-To

The Age of Personalized Software

Medium Programming • 7h ago

Automating Checkout Add-On Recommendations in WordPress for WooCommerce
How-To

Automating Checkout Add-On Recommendations in WordPress for WooCommerce

Dev.to • 7h ago

How-To

Start Here: Learning to develop your own way with SCSIC

Medium Programming • 11h ago

Discover More Articles