Skip to main content

hide-overlays

Curated CSS selectors that hide cookie consent banners, live chat widgets, and accessibility overlays before web capture.

Works with any browser automation tool — Playwright, Selenium, Puppeteer.

Install

pip install hide-overlays

Usage

Playwright

from overlay_css import get_css

page.add_style_tag(content=get_css())

Selenium

from overlay_css import get_css

css = get_css()
driver.execute_script(
    f"const s=document.createElement('style');s.innerHTML=`{css}`;document.head.appendChild(s);"
)

Filter to specific groups

from overlay_css import get_css, get_selectors

# Only hide cookie banners
page.add_style_tag(content=get_css(groups=["cookies"]))

# Inspect the raw selectors
print(get_selectors(groups=["chat", "accessibility"]))

Selector groups

Group Covers
cookies OneTrust, Cookiebot, Termly, cc-window, dealer-specific banners
chat Drift, Intercom, Zopim, HubSpot, generic chat widget patterns
accessibility accessiBe, UserWay, AudioEye, ADA widget buttons

Adding selectors

The selectors live in overlay_css/selectors.yaml. Open a pull request to add new ones.

License

MIT

Metadata

Release files for hide-overlays 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hide-overlays 1.0.0
File Size Uploaded Provenance Actions
hide_overlays-1.0.0.tar.gz 21.4 kB Without provenance Details for hide_overlays-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hide-overlays 1.0.0
File Interpreter ABI Platform Actions
hide_overlays-1.0.0-py3-none-any.whl Python 3 none any Details for hide_overlays-1.0.0-py3-none-any.whl

Total release size: 26.4 kB

Release files / hide_overlays-1.0.0.tar.gz

Download URL hide_overlays-1.0.0.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
21453febb6bee3fe0d7f92a49020b7adebca20d8e9e86c15680f6415d450851d
BLAKE2b-256 checksum
How to use checksums
e7a405065ec23a228acd0cbb8f6ac75cf46e234e9f9810f204d66023fa989f84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / hide_overlays-1.0.0-py3-none-any.whl

Download URL hide_overlays-1.0.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e56b3e85319af48382c37789a8d4533f7d99a1825772a878b487313538266782
BLAKE2b-256 checksum
How to use checksums
9ff92f1c6ef7c0a1425ed52deeabd3fc065d482dfdca3da93206c9d5c1d1e352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for hide-overlays 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page