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); + } + }, + }); +