add latifistreams to f1 site[ci skip]

This commit is contained in:
Viktor Barzin 2023-11-04 16:39:21 +00:00
parent c586870b36
commit 934b625f9f

View file

@ -1,13 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>F1 Streams</title> <title>F1 Streams</title>
</head> </head>
<body> <body>
<h3>Use the players below to watch ad-free</h3> <h3>Use the players below to watch ad-free</h3>
<!-- <h3> <!-- <h3>
If none work go to If none work go to
@ -32,12 +31,43 @@
</h5> --> </h5> -->
<div id="root"> <div id="root">
<iframe id="s2-iframe" width="1000" height="600" src="https://mrgamingstreams.com/excess-1/" frameborder="0" <iframe
scrolling="yes" gesture="media" allow="encrypted-media" allowfullscreen="" id="s0-iframe"
sandbox="allow-forms allow-scripts allow-same-origin allow-top-navigation"></iframe> width="1000"
height="600"
src="https://latifistreams.com/"
frameborder="0"
scrolling="yes"
gesture="media"
allow="encrypted-media"
allowfullscreen=""
sandbox="allow-forms allow-scripts allow-same-origin allow-top-navigation"
></iframe>
<iframe id="s1-iframe" width="1000" height="600" src="https://wikisport.click/strm/f1.php" frameborder="0" <iframe
scrolling="no" gesture="media" allow="encrypted-media" allowfullscreen=""></iframe> id="s2-iframe"
width="1000"
height="600"
src="https://mrgamingstreams.com/excess-1/"
frameborder="0"
scrolling="yes"
gesture="media"
allow="encrypted-media"
allowfullscreen=""
sandbox="allow-forms allow-scripts allow-same-origin allow-top-navigation"
></iframe>
<iframe
id="s1-iframe"
width="1000"
height="600"
src="https://wikisport.click/strm/f1.php"
frameborder="0"
scrolling="no"
gesture="media"
allow="encrypted-media"
allowfullscreen=""
></iframe>
<!-- <iframe id="s1" onclick='document.getElementById("s1").src="http://mx.freestreams-live1.com/f1-live-stream1/";' <!-- <iframe id="s1" onclick='document.getElementById("s1").src="http://mx.freestreams-live1.com/f1-live-stream1/";'
style="border-width: 10mm;" src="http://mx.freestreams-live1.com/f1-live-stream1/" class="embed-responsive-item" style="border-width: 10mm;" src="http://mx.freestreams-live1.com/f1-live-stream1/" class="embed-responsive-item"
@ -51,7 +81,6 @@
sandbox="allow-forms allow-scripts allow-same-origin" sandbox="allow-forms allow-scripts allow-same-origin"
></iframe> --> ></iframe> -->
<!-- <iframe id="s2" onclick='document.getElementById("s2").src="http://mx.freestreams-live1.com/skysportsf1-stream/";' <!-- <iframe id="s2" onclick='document.getElementById("s2").src="http://mx.freestreams-live1.com/skysportsf1-stream/";'
class="embed-responsive-item" frameborder="1" style="border-width: 10mm;" height="580" width="40%" class="embed-responsive-item" frameborder="1" style="border-width: 10mm;" height="580" width="40%"
allowfullscreen="" scrolling="yes" allowtransparency="" src="" allowfullscreen="" scrolling="yes" allowtransparency="" src=""
@ -73,7 +102,6 @@
allowfullscreen="" scrolling="yes" allowtransparency="" src="" allowfullscreen="" scrolling="yes" allowtransparency="" src=""
sandbox="allow-forms allow-scripts allow-same-origin "></iframe> --> sandbox="allow-forms allow-scripts allow-same-origin "></iframe> -->
<!-- ESPN --> <!-- ESPN -->
<!-- <iframe src="http://freestreams-live1.com/usa/espn.php" marginwidth="0" marginheight="0" scrolling="no" width="40%" <!-- <iframe src="http://freestreams-live1.com/usa/espn.php" marginwidth="0" marginheight="0" scrolling="no" width="40%"
height="580" frameborder="0" allowfullscreen="allowfullscreen" sandbox="allow-scripts allow-same-origin"></iframe> height="580" frameborder="0" allowfullscreen="allowfullscreen" sandbox="allow-scripts allow-same-origin"></iframe>
@ -102,18 +130,17 @@
<!-- <iframe src="http://channelstream.club/stream/uk_skysport_f1.php" width="100%" height="580" frameborder="0" <!-- <iframe src="http://channelstream.club/stream/uk_skysport_f1.php" width="100%" height="580" frameborder="0"
marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="allowfullscreen" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="allowfullscreen"
sandbox="allow-scripts allow-same-origin allow-forms"></iframe> --> sandbox="allow-scripts allow-same-origin allow-forms"></iframe> -->
</body> </body>
<!-- <script> <!-- <script>
document.getElementById("numstreams").textContent = document.getElementById( document.getElementById("numstreams").textContent = document.getElementById(
"root" "root"
).childElementCount; ).childElementCount;
</script> --> </script> -->
<script> <script>
// Get a reference to the iframe // Get a reference to the iframe
var root = document.getElementById('root'); var root = document.getElementById("root");
// if (window.self !== window.top) { // if (window.self !== window.top) {
// // The code is running inside an iframe // // The code is running inside an iframe
@ -125,67 +152,82 @@
// document.body.innerHTML = '<iframe width="1000" height="600" src="https://f1.viktorbarzin.me" sandbox="allow-forms allow-scripts allow-same-origin allow-top-navigation" />'; // document.body.innerHTML = '<iframe width="1000" height="600" src="https://f1.viktorbarzin.me" sandbox="allow-forms allow-scripts allow-same-origin allow-top-navigation" />';
// } // }
// Add a 'load' event listener to the iframe // Add a 'load' event listener to the iframe
myIframe.addEventListener('load', function () { myIframe.addEventListener("load", function () {
// Set the iframe's 'contentWindow.location' property to the current URL // Set the iframe's 'contentWindow.location' property to the current URL
myIframe.contentWindow.location = myIframe.contentWindow.location.href; myIframe.contentWindow.location = myIframe.contentWindow.location.href;
}); });
// Add a 'beforeunload' event listener to the window to prevent redirection // Add a 'beforeunload' event listener to the window to prevent redirection
myIframe.addEventListener('beforeunload', function (event) { myIframe.addEventListener("beforeunload", function (event) {
// If the event was triggered by a frame... // If the event was triggered by a frame...
console.log('before unload') console.log("before unload");
if (event.target !== window) { if (event.target !== window) {
// Prevent the default action of the event // Prevent the default action of the event
event.preventDefault(); event.preventDefault();
} }
}); });
// Add event listener to handle messages from the iframe // Add event listener to handle messages from the iframe
window.addEventListener("message", function (event) { window.addEventListener(
"message",
function (event) {
// Check if the message is a redirect request // Check if the message is a redirect request
if (event.data.redirectTo) { if (event.data.redirectTo) {
// Reject the redirect request by logging an error message // Reject the redirect request by logging an error message
console.error("Iframe attempted to redirect to:", event.data.redirectTo); console.error(
"Iframe attempted to redirect to:",
event.data.redirectTo
);
} }
}, false); },
false
);
window.onbeforeunload = function () { window.onbeforeunload = function () {
// Check if an iframe attempted to redirect the parent // Check if an iframe attempted to redirect the parent
if (window.location.href != "about:blank") { if (window.location.href != "about:blank") {
// Block the navigation attempt // Block the navigation attempt
event.returnValue = "Are you sure you want to leave this page?"; event.returnValue = "Are you sure you want to leave this page?";
} }
} };
window.location = new Proxy(window.location, { window.location = new Proxy(window.location, {
set: function (target, property, value, receiver) { set: function (target, property, value, receiver) {
console.log('location edite') console.log("location edite");
// Check if the caller is the child iframe // Check if the caller is the child iframe
if (window.frames.indexOf(receiver) != -1) { if (window.frames.indexOf(receiver) != -1) {
// Block any attempts to modify the location object // Block any attempts to modify the location object
console.error("Blocked attempt to modify parent window location:", target, property, value); console.error(
"Blocked attempt to modify parent window location:",
target,
property,
value
);
return false; return false;
} else { } else {
// Allow other modifications to the location object // Allow other modifications to the location object
return Reflect.set(target, property, value, receiver); return Reflect.set(target, property, value, receiver);
} }
} },
}); });
window.history = new Proxy(window.history, { window.history = new Proxy(window.history, {
set: function (target, property, value, receiver) { set: function (target, property, value, receiver) {
console.log('history edite') console.log("history edite");
// Check if the caller is the child iframe // Check if the caller is the child iframe
if (window.frames.indexOf(receiver) != -1) { if (window.frames.indexOf(receiver) != -1) {
// Block any attempts to modify the history object // Block any attempts to modify the history object
console.error("Blocked attempt to modify parent window history:", target, property, value); console.error(
"Blocked attempt to modify parent window history:",
target,
property,
value
);
return false; return false;
} else { } else {
// Allow other modifications to the history object // Allow other modifications to the history object
return Reflect.set(target, property, value, receiver); return Reflect.set(target, property, value, receiver);
} }
} },
}); });
</script> </script>
</html> </html>