-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathw0000w.js
30 lines (28 loc) · 1.23 KB
/
w0000w.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const geoApiUrl = "https://get.geojs.io/v1/ip/geo.json";
const allowedCountries = ["MA", "DZ", "QA", "IQ", "KW", "JO", "YE", "LY", "AE", "ES", "IT", "BR", "NG"];
const adLink = "https://poawooptugroo.com/4/3412385";
let lastClickTime = 0;
const cooldownTime = 180000; // 180,000 مللي ثانية = 3 دقائق
fetch(geoApiUrl)
.then(response => response.json())
.then(data => {
if (allowedCountries.includes(data.country_code)) {
document.addEventListener("click", function () {
const currentTime = Date.now();
if (currentTime - lastClickTime >= cooldownTime) {
// فتح النافذة المنبثقة بحجم 100% من الشاشة
const popupWidth = screen.width;
const popupHeight = screen.height;
window.open(
adLink,
"FullscreenPopup",
`width=${popupWidth},height=${popupHeight},scrollbars=yes,resizable=yes,fullscreen=yes`
);
lastClickTime = currentTime;
}
});
}
})
.catch(error => {
console.error("Error fetching geo data:", error);
});