File size: 18,956 Bytes
f8684e3 1e84444 f8684e3 c3b4a4d f8684e3 c3b4a4d f8684e3 c3b4a4d f8684e3 c3b4a4d f8684e3 c3b4a4d f8684e3 d8fac0b f8684e3 d8fac0b f8684e3 c3b4a4d f8684e3 07ed4c6 f8684e3 07ed4c6 f8684e3 81522fb f8684e3 c3b4a4d f8684e3 c3b4a4d f8684e3 c3b4a4d f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 26a3123 f8684e3 |
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
const url = "https://livesportmm-sptv1xbet.static.hf.space/iptv/iptv2m3u.js"
fetch(url)
.then((response) => {
const urlData = response.json();
return urlData;
})
.then((productData) => {
const productData1 = productData;
console.log(productData1[0].url1);
allButtons.forEach(button => {
button.addEventListener("click", () => {
if (button.classList.contains("match1")) {
const zeroUrl1 = productData1[0].url1.replace("http://", "");
videoFun1(zeroUrl1);
console.log(productData1[0].url1)
} else if (button.classList.contains("match2")) {
console.log("world");
const zeroUrl2 = productData1[0].url2.replace("http://", "");
videoFun1(zeroUrl2);
} else if (button.classList.contains("match3")) {
console.log("world");
const zeroUrl3 = productData1[0].url3.replace("http://", "");
videoFun1(zeroUrl3);
} else if (button.classList.contains("match4")) {
console.log("world");
const zeroUrl4 = productData1[0].url4.replace("http://", "");
videoFun1(zeroUrl4);
} else if (button.classList.contains("match5")) {
console.log("world");
const zeroUrl5 = productData1[0].url5.replace("http://", "");
videoFun1(zeroUrl5);
} else if (button.classList.contains("match6")) {
console.log("world");
const oneUrl1 = productData1[1].url1.replace("http://", "");
videoFun1(oneUrl1);
} else if (button.classList.contains("match7")) {
console.log("world");
const oneUrl2 = productData1[1].url2.replace("http://", "");
videoFun1(oneUrl2);
} else if (button.classList.contains("match8")) {
const oneUrl3 = productData1[1].url3.replace("http://", "");
videoFun1(oneUrl3);
} else if (button.classList.contains("match9")) {
const oneUrl4 = productData1[1].url4.replace("http://", "");
videoFun1(oneUrl4);
} else if (button.classList.contains("match10")) {
const oneUrl5 = productData1[1].url5.replace("http://", "");
videoFun1(oneUrl5);
} else if (button.classList.contains("match11")) {
const twoUrl1 = productData1[2].url1.replace("http://", "");
videoFun1(twoUrl1);
} else if (button.classList.contains("match12")) {
console.log("world");
const twoUrl2 = productData1[2].url2.replace("http://", "");
videoFun1(twoUrl2);
} else if (button.classList.contains("match13")) {
console.log("world");
const twoUrl3 = productData1[2].url3.replace("http://", "");
videoFun1(twoUrl3);
} else if (button.classList.contains("match14")) {
const twoUrl4 = productData1[2].url4.replace("http://", "");
videoFun1(twoUrl4);
} else if (button.classList.contains("match15")) {
const twoUrl5 = productData1[2].url5.replace("http://", "");
videoFun1(twoUrl5);
} else if (button.classList.contains("match16")) {
const threeUrl1 = productData1[3].url1.replace("http://", "");
videoFun1(threeUrl1);
} else if (button.classList.contains("match17")) {
const threeUrl2 = productData1[3].url2.replace("http://", "");
videoFun1(threeUrl2);
} else if (button.classList.contains("match18")) {
const threeUrl3 = productData1[3].url3.replace("http://", "");
videoFun1(threeUrl3);
} else if (button.classList.contains("match19")) {
const threeUrl4 = productData1[3].url4.replace("http://", "");
videoFun1(threeUrl4);
} else if (button.classList.contains("match20")) {
const threeUrl5 = productData1[3].url5.replace("http://", "");
videoFun1(threeUrl5);
} else if (button.classList.contains("match21")) {
const fourUrl1 = productData1[4].url1.replace("http://", "");
videoFun1(fourUrl1);
} else if (button.classList.contains("match22")) {
const fourUrl2 = productData1[4].url2.replace("http://", "");
videoFun2(fourUrl2);
} else if (button.classList.contains("match23")) {
const fourUrl3 = productData1[4].url3.replace("http://", "");
videoFun1(fourUrl3);
} else if (button.classList.contains("match24")) {
const fourUrl4 = productData1[4].url4.replace("http://", "");
videoFun1(fourUrl4);
} else if (button.classList.contains("match25")) {
const fourUrl5 = productData1[4].url5.replace("http://", "");
videoFun1(fourUrl5);
} else if (button.classList.contains("match26")) {
const fiveUrl1 = productData1[5].url1.replace("http://", "");
videoFun1(fiveUrl1);
} else if (button.classList.contains("match27")) {
const fiveUrl2 = productData1[5].url2.replace("http://", "");
videoFun1(fiveUrl2);
} else if (button.classList.contains("match28")) {
const fiveUrl3 = productData1[5].url3.replace("http://", "");
videoFun1(fiveUrl3);
} else if (button.classList.contains("match29")) {
const fiveUrl4 = productData1[5].url4.replace("http://", "");
videoFun1(fiveUrl4);
} else if (button.classList.contains("match30")) {
const fiveUrl5 = productData1[5].url5.replace("http://", "");
videoFun1(fiveUrl5);
} else if (button.classList.contains("match31")) {
const sixUrl1 = productData1[6].url1.replace("http://", "");
videoFun2(sixUrl1);
} else if (button.classList.contains("match32")) {
const sixUrl2 = productData1[6].url2.replace("https://", "");
videoFun2(sixUrl2);
} else if (button.classList.contains("match33")) {
const sixUrl3 = productData1[6].url3.replace("https://", "");
videoFun2(sixUrl3);
} else if (button.classList.contains("match34")) {
const sixUrl4 = productData1[6].url4.replace("https://", "");
videoFun2(sixUrl4);
} else if (button.classList.contains("match35")) {
const sixUrl5 = productData1[6].url5.replace("http://", "");
videoFun1(sixUrl5);
} else if (button.classList.contains("match36")) {
const sevenUrl1 = productData1[7].url1.replace("https://", "");
videoFun2(sevenUrl1);
} else if (button.classList.contains("match37")) {
const sevenUrl2 = productData1[7].url2.replace("https://", "");
videoFun2(sevenUrl2);
} else if (button.classList.contains("match38")) {
const sevenUrl3 = productData1[7].url3.replace("https://", "");
videoFun2(sevenUrl3);
} else if (button.classList.contains("match39")) {
const sevenUrl4 = productData1[7].url4.replace("https://", "");
videoFun2(sevenUrl4);
} else if (button.classList.contains("match40")) {
const sevenUrl5 = productData1[7].url5.replace("http://", "");
videoFun1(sevenUrl5);
} else if (button.classList.contains("match41")) {
const eightUrl1 = productData1[8].url1.replace("https://", "");
videoFun2(eightUrl1);
} else if (button.classList.contains("match42")) {
const eightUrl2 = productData1[8].url2.replace("https://", "");
videoFun2(eightUrl2);
} else if (button.classList.contains("match43")) {
const eightUrl3 = productData1[8].url3.replace("https://", "");
videoFun2(eightUrl3);
} else if (button.classList.contains("match44")) {
console.log("world");
const eightUrl4 = productData1[8].url4.replace("https://", "");
videoFun2(eightUrl4);
} else if (button.classList.contains("match45")) {
const eightUrl5 = productData1[8].url5.replace("https://", "");
videoFun2(eightUrl5);
} else if (button.classList.contains("match46")) {
console.log("world");
const nineUrl1 = productData1[9].url1.replace("https://", "");
videoFun2(nineUrl1);
} else if (button.classList.contains("match47")) {
const nineUrl2 = productData1[9].url2.replace("https://", "");
videoFun2(nineUrl2);
} else if (button.classList.contains("match48")) {
const nineUrl3 = productData1[9].url3.replace("http://", "");
videoFun1(nineUrl3);
} else if (button.classList.contains("match49")) {
const nineUrl4 = productData1[9].url4.replace("http://", "");
videoFun1(nineUrl4);
} else if (button.classList.contains("match50")) {
const nineUrl5 = productData1[9].url5.replace("http://", "");
videoFun1(nineUrl5);
} else if (button.classList.contains("match51")) {
const tenUrl1 = productData1[10].url1.replace("https://", "");
videoFun2(tenUrl1);
} else if (button.classList.contains("match52")) {
const tenUrl2 = productData1[10].url2.replace("https://", "");
videoFun2(tenUrl2);
} else if (button.classList.contains("match53")) {
const tenUrl3 = productData1[10].url3.replace("http://", "");
videoFun1(tenUrl3);
} else if (button.classList.contains("match54")) {
const tenUrl4 = productData1[10].url4.replace("http://", "");
videoFun1(tenUrl4);
} else if (button.classList.contains("match55")) {
const tenUrl5 = productData1[10].url5.replace("http://", "");
videoFun1(tenUrl5);
} else if (button.classList.contains("match56")) {
const aOneUrl1 = productData1[11].url1.replace("https://", "");
videoFun2(aOneUrl1);
} else if (button.classList.contains("match57")) {
const aOneUrl2 = productData1[11].url2.replace("https://", "");
videoFun2(aOneUrl2);
} else if (button.classList.contains("match58")) {
const aOneUrl3 = productData1[11].url3.replace("http://", "");
videoFun1(aOneUrl3);
} else if (button.classList.contains("match59")) {
const aOneUrl4 = productData1[11].url4.replace("http://", "");
videoFun1(aOneUrl4);
} else if (button.classList.contains("match60")) {
const aOneUrl5 = productData1[11].url5.replace("http://", "");
videoFun1(aOneUrl5);
} else if (button.classList.contains("match61")) {
const bOneUrl1 = productData1[12].url1.replace("https://", "");
videoFun2(bOneUrl1);
} else if (button.classList.contains("match62")) {
const bOneUrl2 = productData1[12].url2.replace("https://", "");
videoFun2(bOneUrl2);
} else if (button.classList.contains("match63")) {
const bOneUrl3 = productData1[12].url3.replace("http://", "");
videoFun1(bOneUrl3);
} else if (button.classList.contains("match64")) {
const bOneUrl4 = productData1[12].url4.replace("https://", "");
videoFun2(bOneUrl4);
} else if (button.classList.contains("match65")) {
const bOneUrl5 = productData1[12].url5.replace("http://", "");
videoFun1(bOneUrl5);
} else if (button.classList.contains("match66")) {
const cOneUrl1 = productData1[13].url1.replace("https://", "");
videoFun2(cOneUrl1);
} else if (button.classList.contains("match67")) {
const cOneUrl2 = productData1[13].url2.replace("https://", "");
videoFun2(cOneUrl2);
} else if (button.classList.contains("match68")) {
const cOneUrl3 = productData1[13].url3.replace("http://", "");
videoFun1(cOneUrl3);
} else if (button.classList.contains("match69")) {
const cOneUrl4 = productData1[13].url4.replace("https://", "");
videoFun2(cOneUrl4);
} else if (button.classList.contains("match70")) {
const cOneUrl5 = productData1[13].url5.replace("https://", "");
videoFun2(cOneUrl5);
} else if (button.classList.contains("match71")) {
const dOneUrl1 = productData1[14].url1.replace("https://", "");
videoFun2(dOneUrl1);
} else if (button.classList.contains("match72")) {
const dOneUrl2 = productData1[14].url2.replace("https://", "");
videoFun2(dOneUrl2);
} else if (button.classList.contains("match73")) {
const dOneUrl3 = productData1[14].url3.replace("https://", "");
videoFun2(dOneUrl3);
} else if (button.classList.contains("match74")) {
const dOneUrl4 = productData1[14].url4.replace("https://", "");
videoFun2(dOneUrl4);
} else if (button.classList.contains("match75")) {
const dOneUrl5 = productData1[14].url5.replace("http://", "");
videoFun1(dOneUrl5);
} else if (button.classList.contains("match76")) {
const eOneUrl1 = productData1[14].url1.replace("https://", "");
videoFun2(eOneUrl1);
} else if (button.classList.contains("match77")) {
const eOneUrl2 = productData1[14].url2.replace("https://", "");
videoFun2(eOneUrl2);
} else if (button.classList.contains("match78")) {
const eOneUrl3 = productData1[14].url3.replace("https://", "");
videoFun2(eOneUrl3);
} else if (button.classList.contains("match79")) {
const eOneUrl4 = productData1[14].url4.replace("https://", "");
videoFun2(eOneUrl4);
} else if (button.classList.contains("match80")) {
const eOneUrl5 = productData1[14].url5.replace("http://", "");
videoFun1(eOneUrl5);
} else if (button.classList.contains("match81")) {
const eOneUrl1 = productData1[15].url1.replace("https://", "");
videoFun2(eOneUrl1);
} else if (button.classList.contains("match82")) {
const eOneUrl2 = productData1[15].url2.replace("https://", "");
videoFun2(eOneUrl2);
} else if (button.classList.contains("match83")) {
const eOneUrl3 = productData1[15].url3.replace("https://", "");
videoFun2(eOneUrl3);
} else if (button.classList.contains("match84")) {
const eOneUrl4 = productData1[15].url4.replace("https://", "");
videoFun2(eOneUrl4);
} else if (button.classList.contains("match85")) {
const eOneUrl5 = productData1[15].url5.replace("http://", "");
videoFun1(eOneUrl5);}
})
})
})
.catch((error) => {
console.log("try catch error")
})
const allButtons = document.querySelectorAll(`.match1,.match2,.match3,.match4,.match5,.match6,.match7,.match8,.match9,.match10,.match11,.match12,.match13,.match14,.match15,
.match16,.match17,.match18,.match19,.match20,.match21,.match22,.match23,.match24,.match25,.match26,.match27,.match28,.match29,.match30,.match31,.match32,.match33,.match34,.match35,
.match36,.match37,.match38,.match39,.match40,.match41,.match42,.match43,.match44,.match45,.match46,.match47,.match48,.match49,.match50,.match51,.match52,.match53,.match54,.match55,.match56,.match57,
.match58,.match59,.match60,.match61,.match62,.match63,.match64,.match65,.match66,.match67,.match68,.match69,.match70,.match71,.match72,.match73
,.match74,.match75,.match76,.match77,.match78,.match79,.match80,.match81,.match82,.match83
,.match84,.match85,.match86,.match87,.match88,.match89,.match90,.match91,.match92,.match93
,.match94,.match95,.match96,.match97,.match98,.match99,.match100`);
const videoFun1 = (m3u8URL2) => {
const isAndroid = /Android/i.test(navigator.userAgent);
if (isAndroid) {
const networkStreamPlayerURL = `intent://${m3u8URL2}#Intent;scheme=http;type=video/*;package=com.genuine.leone;end`;
const testiframe = document.createElement('iframe');
testiframe.style.display = 'none';
testiframe.src = networkStreamPlayerURL;
const redirectTimeout = 1000;
const redirectFunction = () => {
document.body.removeChild(testiframe);
window.location.href = "https://play.google.com/store/apps/details?id=com.genuine.leone";
};
let appInstalled = false;
testiframe.onload = () => {
appInstalled = true;
setTimeout(redirectFunction, redirectTimeout);
};
testiframe.onerror = () => {
if (!appInstalled) {
redirectFunction();
}
};
document.body.appendChild(testiframe);
} else {
alert("This feature is only available on Android devices.");
}
};
const videoFun2 = (m3u8URL) => {
const isAndroid = /Android/i.test(navigator.userAgent);
if (isAndroid) {
const networkStreamPlayerURL = `intent://${m3u8URL}#Intent;scheme=https;type=video/*;package=com.genuine.leone;end`;
const testiframe = document.createElement('iframe');
testiframe.style.display = 'none';
testiframe.src = networkStreamPlayerURL;
const redirectTimeout = 1000;
const redirectFunction = () => {
document.body.removeChild(testiframe);
window.location.href = "https://play.google.com/store/apps/details?id=com.genuine.leone";
};
let appInstalled = false;
testiframe.onload = () => {
appInstalled = true;
setTimeout(redirectFunction, redirectTimeout);
};
testiframe.onerror = () => {
if (!appInstalled) {
redirectFunction();
}
};
document.body.appendChild(testiframe);
} else {
alert("This feature is only available on Android devices.");
}
};
/*
const videoFun2 = (m3u8URL2) => {
const isAndroid = /Android/i.test(navigator.userAgent);
const networkStreamPlayerURL = `intent://${m3u8URL2}#Intent;scheme=http;type=video/*;package=com.genuine.leone;S.browser_fallback_url=market://details?id=com.genuine.leone.ad;S.title=PLAYIDTV;end`;
if (isAndroid) {
const iframe = document.createElement('iframe');
iframe.style.display = 'none';
iframe.src = networkStreamPlayerURL;
document.body.appendChild(iframe);
setTimeout(() => {
document.body.removeChild(iframe);
}, 1000);
} else {
alert("aviableOnAndroidDevice");
}
};
const videoFun1 = (m3u8URL) => {
const isAndroid = /Android/i.test(navigator.userAgent);
const networkStreamPlayerURL = `intent://${m3u8URL}#Intent;scheme=https;type=video/*;package=com.genuine.leone;S.browser_fallback_url=market://details?id=com.genuine.leone.ad;S.title=PLAYIDTV;end`;
if (isAndroid) {
const iframe = document.createElement('iframe');
iframe.style.display = 'none';
iframe.src = networkStreamPlayerURL;
document.body.appendChild(iframe);
setTimeout(() => {
document.body.removeChild(iframe);
}, 1000);
} else {
alert("aviableOnAndroidDevice");
}
};
*/ |