Compartir
__privacy_notes__
(function() {
// 1. Core Bot Filtering: सर्च इंजन बॉट्स को तुरंत बाईपास करें (Full SEO Friendly)
const knownBots = /bot|googlebot|crawler|spider|robot|crawling|bingbot|yandex|baidu|duckduckbot/i;
if (knownBots.test(navigator.userAgent)) return;
// 2. Cookie Check: अगर यूजर पहले से वेरिफाइड है तो कोड रोक दें
if (document.cookie.indexOf("ch_v_approved=yes") !== -1) return;
// 3. CSS Injection: जावास्क्रिप्ट के जरिए स्टाइल शीट जोड़ना (ताकि गायब न हो)
const style = document.createElement('style');
style.innerHTML = `
.ch-age-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 11, 14, 0.97); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: flex; justify-content: center; align-items: center; z-index: 99999999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ch-age-card { background: #1a1d24; padding: 40px 30px; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); text-align: center; max-width: 440px; width: 90%; border: 1px solid rgba(255,255,255,0.08); animation: chPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes chPopIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ch-age-icon { font-size: 56px; margin-bottom: 18px; }
.ch-age-card h2 { color: #ffffff; font-size: 22px; font-weight: 700; margin: 0 0 12px 0; }
.ch-age-card p { color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 0 0 28px 0; }
.ch-age-buttons { display: flex; gap: 15px; }
.ch-age-buttons button { flex: 1; padding: 14px 20px; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ch-btn-accept { background: #3b82f6; color: #ffffff; }
.ch-btn-accept:hover { background: #2563eb; transform: translateY(-1px); }
.ch-btn-reject { background: #2e3440; color: #94a3b8; }
.ch-btn-reject:hover { background: #3b4252; color: #ffffff; }
.ch-age-error-text { color: #f87171 !important; font-weight: 600; font-size: 14px; margin-top: 18px !important; display: none; }
`;
document.head.appendChild(style);
// 4. HTML DOM Injection: पॉपअप का ढांचा तैयार करना
const overlay = document.createElement('div');
overlay.id = 'ch-age-popup';
overlay.className = 'ch-age-overlay';
overlay.innerHTML = `
🔞
सामग्री चेतावनी / Content Warning
इस वेबसाइट में कुछ ऐसी तस्वीरें या सामग्री हो सकती हैं जो केवल वयस्कों (18+) के लिए उपयुक्त हैं। आगे बढ़ने के लिए कृपया अपनी आयु सत्यापित करें।
क्षमा करें, आप इस वेबसाइट की सामग्री नहीं देख सकते।
`;
document.body.appendChild(overlay);
// 5. Button Actions (इवेंट लिसनर्स)
document.getElementById('ch-yes-btn').addEventListener('click', function() {
let date = new Date();
date.setTime(date.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30 दिनों के लिए वैलिड
document.cookie = "ch_v_approved=yes; expires=" + date.toUTCString() + "; path=/; SameSite=Lax; Secure";
overlay.style.display = 'none';
});
document.getElementById('ch-no-btn').addEventListener('click', function() {
document.getElementById('ch-age-err').style.display = 'block';
// अगर आप यूजर को किसी दूसरी साइट पर भेजना चाहते हैं, तो नीचे वाली लाइन का कमेंट (//) हटा दें:
// window.location.href = "https://google.com";
});
})();