element-hiding
What it does
This skill checks a website for names that ad blockers often hide, such as banner or ad, and suggests safer ones. It is for site owners who need important notices to stay visible.
When to use it
- ✓When cookie notices or banners do not appear for some visitors.
- ✓When a promotion or notice goes missing with an ad blocker turned on.
- ✓When you choose class or ID names for a new page element.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/element-hiding/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you check whether my cookie banner gets hidden by ad blockers?”
5 new skills a week. 1 minute to read.
How it works
The agent reviews class and ID names for patterns that match common ad filter rules. It suggests more specific names for important elements such as cookie consent notices.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Adblock Element Hiding
If your cookie consent banner has class .cookie-banner or ID #consent-popup, adblockers may hide it — users never see the consent notice, which can cause GDPR compliance issues and broken UX for ~30-40% of desktop users.
Quick Reference
- Adblockers use EasyList filter rules to hide elements with class names, IDs, or patterns associated with ads
- Common blocked names:
.ad,.ads,.advertisement,.banner,#ad,#ads,#banner,.sponsor - Affected elements: legitimate banners, notification bars, promotional sections, and cookie consent notices
- Test your site with uBlock Origin enabled — check for missing content, broken layouts, or hidden consent banners
- Rename affected elements using semantic, content-specific class names to avoid false-positive blocking
Check
Review the HTML source for element IDs and class names that match common adblocker patterns: .ad, .ads, .advertisement, .banner, .sponsor, #ad, #banner, .cookie-notice, .consent. Test the page with uBlock Origin enabled in a browser to identify elements that are hidden.
Fix
Rename affected elements using specific, content-focused class names that do not match adblocker patterns. For cookie consent banners specifically, use class names like .privacy-controls or .cookie-preferences instead of .cookie-banner or .gdpr-notice.
Explain
Explain how adblocker filter lists work, which HTML class names and IDs are commonly blocked, and how to rename elements to avoid false-positive blocking while maintaining their function.
Code Review
Review server config, headers, forms, and integration points related to Adblock Element Hiding. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/security/element-hiding
FAQ
Why do ad blockers hide normal content?
Their filter lists target names like ad, banner or sponsor, so harmless elements with similar names can be caught.
How should this be tested?
The skill suggests loading your page with uBlock Origin turned on and checking for missing content.
What names does it suggest?
Examples include privacy-controls or cookie-preferences in place of cookie-banner.
Details
Original description by the author
Use when reviewing a website for layout and functionality issues caused by adblocker filter rules targeting common ad-related class names and IDs.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2829
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.