From 934b625f9ffcc01e1f2a1be090656c38387b8efa Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 4 Nov 2023 16:39:21 +0000 Subject: [PATCH] add latifistreams to f1 site[ci skip] --- modules/kubernetes/f1-stream/files/index.html | 260 ++++++++++-------- 1 file changed, 151 insertions(+), 109 deletions(-) diff --git a/modules/kubernetes/f1-stream/files/index.html b/modules/kubernetes/f1-stream/files/index.html index 7a85840e..9cc4ce01 100644 --- a/modules/kubernetes/f1-stream/files/index.html +++ b/modules/kubernetes/f1-stream/files/index.html @@ -1,22 +1,21 @@ + + + + F1 Streams + - - - - F1 Streams - - - -

Use the players below to watch ad-free

- - -
- +
+ - + - - - + - - - - - - - - + -
- +
+ - - - + + - - - + + - + - - + }; + window.location = new Proxy(window.location, { + set: function (target, property, value, receiver) { + console.log("location edite"); + // Check if the caller is the child iframe + if (window.frames.indexOf(receiver) != -1) { + // Block any attempts to modify the location object + console.error( + "Blocked attempt to modify parent window location:", + target, + property, + value + ); + return false; + } else { + // Allow other modifications to the location object + return Reflect.set(target, property, value, receiver); + } + }, + }); + + window.history = new Proxy(window.history, { + set: function (target, property, value, receiver) { + console.log("history edite"); + // Check if the caller is the child iframe + if (window.frames.indexOf(receiver) != -1) { + // Block any attempts to modify the history object + console.error( + "Blocked attempt to modify parent window history:", + target, + property, + value + ); + return false; + } else { + // Allow other modifications to the history object + return Reflect.set(target, property, value, receiver); + } + }, + }); +