Metadata-Version: 2.4
Name: hide-overlays
Version: 1.0.0
Summary: Curated CSS selectors to hide cookie banners, chat widgets, and accessibility overlays before web capture
Project-URL: Homepage, https://github.com/ctrl07/hide-overlays
Project-URL: Repository, https://github.com/ctrl07/hide-overlays
Project-URL: Bug Tracker, https://github.com/ctrl07/hide-overlays/issues
Author-email: Suyog Kurlekar <skgaming7869@gmail.com>
License: MIT License
        
        Copyright (c) 2026 Suyog Kurlekar
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: cookie-banner,css,overlay,playwright,scraping,screenshot,selenium,web-capture
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Requires-Dist: pyyaml
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Description-Content-Type: text/markdown

# 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

```python
from overlay_css import get_css

page.add_style_tag(content=get_css())
```

### Selenium

```python
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

```python
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
