document.onkeydown = function(e) { if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 83 || e.keyCode === 85 || e.keyCode === 80 || e.keyCode === 123 || e.keyCode === 73 || e.keyCode === 74 || e.keyCode === 117)) { alert('PROIBIDO'); return false; } else { return true; } };
$(document).bind('keydown', function(e) { if(e.ctrlKey && (e.which == 83)) { e.preventDefault(); alert('PROIBIDO'); return false; } }); $(document).keydown(function (event) { if (event.keyCode == 123) { // Prevent F12 return false; } else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) { // Prevent Ctrl+Shift+I return false; } }); $(document).on("contextmenu", function (e) { e.preventDefault(); });s
if (url.indexOf("://") > -1) { hostname = url.split('/')[2]; } else { hostname = url.split('/')[0]; }
//find & remove port number hostname = hostname.split(':')[0]; //find & remove "?" hostname = hostname.split('?')[0];
return hostname; } function extractRootDomain(url) { var domain = extractHostname(url), splitArr = domain.split('.'), arrLen = splitArr.length;
//extracting the root domain here //if there is a subdomain if (arrLen > 2) { domain = splitArr[arrLen - 2] + '.' + splitArr[arrLen - 1]; //check to see if it's using a Country Code Top Level Domain (ccTLD) (i.e. ".me.uk") if (splitArr[arrLen - 2].length == 2 && splitArr[arrLen - 1].length == 2) { //this is using a ccTLD domain = splitArr[arrLen - 3] + '.' + domain; } } return domain; }
var links=[ {"Nome":"HBO MAX 1","Url":"/hbomax1/","Legenda":"","Tipo":"1"},{"Nome":"HBO MAX 2","Url":"/hbomax2.php","Legenda":"","Tipo":"1"},{"Nome":"HBO MAX 3","Url":"/hbomax3.php","Legenda":"","Tipo":"1"},{"Nome":"HBO MAX 4","Url":"/hbomax4.php","Legenda":"","Tipo":"1"},{"Nome":"HBO MAX 5","Url":"/hbomax5.php","Legenda":"","Tipo":"1"}]; $.each(links, function (key, data) {$('.playerButtons').append(' '); })
$(".playerButtons .btn").click(function(){ buttonIndex = $(this).index() -1; var iframe = $("#iframeVideo"); var url = links[buttonIndex].Url; var videohosts = ["apollocdn.cc", "moonwalk.cc", "streamguard.cc", "alfastream.cc", "actelecup.com", "akugyash.com", "algidri.com", "acterbiz.com"] var parser = document.createElement('a'); parser.href = url if(videohosts.includes(parser.hostname)){ // console.log('culprit') // var newUrl = 'https://streamguard.cc'+parser.pathname+parser.search+parser.hash var newUrl = 'https://bravidsio.com'+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl); } else if(parser.hostname=='openload.co'){ var newUrl = 'https://oload.club'+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl); } else if(parser.hostname=='oload.stream'){ var newUrl = 'https://oload.club'+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl); } else if(parser.hostname=='thevid.net'){ var newUrl = 'https://thevid.live'+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl); } else if(parser.hostname=='thevid.tv'){ var newUrl = 'https://thevid.live'+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl); } else if(parser.hostname=='www.fembed.com'){ var newUrl = 'https://vcdn.io'+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl); } else if(parser.hostname=='verystream.com'){ var newUrl = 'https://woof.tube'+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl); } else if(parser.protocol=='http:'){ var newUrl = 'https://'+parser.hostname+parser.pathname+parser.search+parser.hash iframe.attr("src", newUrl) } else{ iframe.attr("src", url); } $(".iframePlayer").css("display", "block"); }); $(".changeServer").click(function(){ var iframe = $("#iframeVideo"); iframe.attr("src", ""); $(".iframePlayer").css("display", "none"); });
/*! Personalización */ /* Base -----------------------------------------*/ [id=WgD] { font-family: 'Roboto', sans-serif; /* fuente */ background: #FF416C; /* color de fondo */ background: linear-gradient(to right, #FF4B2B, #FF416C); /* degradado */ } .WgD-particles i { color: rgba(0, 0, 0, 0.2); /* color de partículas */ } /* Animación -----------------------------------------*/ .WgD-container { -webkit-animation: bounceIn 1s; /* animación */ animation: bounceIn 1s; /* animación */ } /* Cuerpo -----------------------------------------*/ .WgD-container { padding: 3.2em; /* relleno */ max-width: 450px; /* ancho */ background-color: #fff; /* color de fondo */ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1); /* sombra */ text-align: center; /* alineación del texto */ line-height: 1.5; /* interlineado */ border-radius: 10px; /* bordes redondeados */ color: #37474F; /* color del texto */ } .WgD-title { font-size: 1.6em; /* tamaño del título */ } .WgD-text { font-size: 1.2em; /* tamaño del texto */ } /* Boton Recargar -----------------------------------------*/ .WgD-reload { box-shadow: rgba(0, 0, 0, .12) 0 3px 13px 1px; /* sombra */ color: #fff; padding: 1em 1.5em; /* relleno */ background: #f46b45; /* fondo */ border-radius: 3px; /* bordes redondeados */ } .WgD-reload:hover { color: #fff; } .WgD-close:hover { color: #464646; } /* Imagen -----------------------------------------*/ .WgD-container img { max-height: 200px; /* altura máxima */ }