Skip to content
Skillpedia
General coding75k · #2829

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.md

Copy 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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/element-hiding/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2829
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills