-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzzzzzz.js
35 lines (25 loc) · 1.08 KB
/
zzzzzz.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
31
32
33
34
35
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;
fetch(geoApiUrl)
.then(response => response.json())
.then(data => {
if (allowedCountries.includes(data.country_code)) {
const script = document.createElement("script");
script.type = "text/javascript";
script.text = `
document.addEventListener("click", function () {
const currentTime = Date.now();
if (currentTime - lastClickTime >= ${cooldownTime}) {
window.open("${adLink}", "_blank");
lastClickTime = currentTime;
}
});
`;
document.body.appendChild(script);
}
})
.catch(error => {
});