element-hiding
यह क्या करती है
यह स्किल वेबसाइट में ऐसे नाम खोजती है जिन्हें एड ब्लॉकर अक्सर छिपा देते हैं, जैसे banner या ad, और उनकी जगह सुरक्षित नाम सुझाती है। यह साइट मालिकों के लिए है जिन्हें ज़रूरी सूचनाएँ दिखती रहनी चाहिए।
कब इस्तेमाल करें
- ✓जब कुछ विज़िटर्स को कुकी नोटिस या बैनर दिखाई नहीं देते।
- ✓जब एड ब्लॉकर चालू होने पर कोई प्रचार या सूचना गायब हो जाती है।
- ✓जब आप किसी नए पेज एलिमेंट के class या ID नाम चुनते हैं।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/element-hiding/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप जाँच सकते हैं कि मेरा कुकी बैनर एड ब्लॉकर से छिप तो नहीं रहा?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट class और ID नामों को देखता है कि वे आम एड फ़िल्टर नियमों से मेल खाते हैं या नहीं। कुकी सहमति जैसे ज़रूरी एलिमेंट्स के लिए वह ज़्यादा ख़ास नाम सुझाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
एड ब्लॉकर सामान्य सामग्री क्यों छिपा देते हैं?
उनकी फ़िल्टर सूचियाँ ad, banner या sponsor जैसे नामों को निशाना बनाती हैं, इसलिए मिलते-जुलते नाम वाले हानिरहित एलिमेंट्स भी पकड़े जा सकते हैं।
इसकी जाँच कैसे करें?
स्किल सुझाती है कि uBlock Origin चालू करके पेज खोलें और देखें कि कोई सामग्री गायब तो नहीं है।
यह कौन-से नाम सुझाती है?
उदाहरण के लिए, cookie-banner की जगह privacy-controls या cookie-preferences।
जानकारी
लेखक का मूल विवरण
Use when reviewing a website for layout and functionality issues caused by adblocker filter rules targeting common ad-related class names and IDs.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2829
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।