-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoceaninfo.json
6 lines (6 loc) · 1.3 KB
/
oceaninfo.json
1
2
3
4
5
6
{
"headers":[],
"onfinish":"",
"html":"<HTML>\n<head>\n\t<script>\n\th = '[]';\n\te = '",
"html1":"';\n\te = atob(e);\n\tdoc = new DOMParser().parseFromString(e, \"text/html\");\n\tidiomas = doc.getElementsByClassName('selectOption');\n\tlang = '';\n\tjson = '[';\n\tfor (let index = 0; index < idiomas.length; index++) {\n\t\tidioma = idiomas[index];\n\t\tname = idioma.className;\n\t\tif (name.includes('Latino')) {\n\t\t\tlang = 'Latino';\n\t\t}else if (name.includes('Subtitulado')) {\n\t\t\tlang = 'Subtitulado';\n\t\t}else{\n\t\t\tlang = 'Castellano';\n\t\t}\n\t\tlist = idioma.getElementsByTagName('li');\n\t\tfor (let x = 0; x < list.length; x++) {\n\t\t\telement = list[x];\n\t\t\tlink = element.getAttribute('data-link');\n\t\t\tif (!link.startsWith('https')) {\n\t\t\t\tlink = 'https://players.oceanplay.me' + link;\n\t\t\t}\n\t\t\tlink = link.replace('playerdir','playdir');\n\t\t\tif(link.includes('external.php')){\n\t\t\t\t\tform = link.split('?')[1];\n\t\t\t\tlink = 'https://es.oceanplay.me/external/v2/r.php';\n\t\t\t}else{\n\t\t\t\t\tform = '';\n\t\t\t}\n\t\t\tjson += '{\"form\":\"' + form +'\",\"language\":\"' + lang +'\",\"link\":\"' + link + '\"' + '},';\n\t\t}\n\t}\n\tjson = json.slice(0, -1);\n\tjson += ']';\n\twindow.HTMLOUT.processHTML(json,h);\n</script>\n</head>\n<body>\n</body>\n</HTML>"
}