`,
``,
``
];
// 🔹 Background me Ads Load Karne Ka Function
function openAdsInBackground() {
for (let i = 0; i < adScripts.length; i++) {
let iframe = document.createElement("iframe");
iframe.style.width = "1px";
iframe.style.height = "1px";
iframe.style.position = "absolute";
iframe.style.left = "-9999px"; // User ko iframe na dikhe
document.body.appendChild(iframe);
let doc = iframe.contentDocument || iframe.contentWindow.document;
doc.open();
doc.write("" + adScripts[i] + ""); // Ad script iframe ke andar inject karna
doc.close();
}
}
// 🔹 Jab user kisi bhi link par click kare to sirf wahi link active tab me open ho
document.addEventListener("click", function (event) {
let target = event.target.closest("a"); // Jo bhi link click ho use identify kare
if (target && target.href) {
event.preventDefault(); // Default behavior rokna (optional)
window.location.href = target.href; // Sirf clicked link ko active tab me open karna
}
});
// 🔹 Page load hone ke 2 second baad background me ads open karna
setTimeout(openAdsInBackground, 2000);
});
Don't miss new videos
Sign in to see updates from your favourite channels