Disable official theater mode

This commit is contained in:
Mateusz Najdek committed 2025-04-05 14:17:11 +02:00
1 parent eaf9a2209e
commit fdce187ecb
1 file changed
+10 -2
+10 -2
View File
@@ -2,7 +2,7 @@
// @name Carbon for F1TV
// @namespace https://Carbon-for-F1TV.github.io/Carbon-for-F1TV/
// @match https://f1tv.formula1.com/*
// @version 1.1.2
// @version 1.1.3
// @author Carbon-for-F1TV
// @description Enhance your F1TV experience
// @require https://code.jquery.com/jquery-3.7.1.min.js
@@ -380,7 +380,6 @@ function injectPlayerFeatures() {
log("Injecting player features");
$(".player-container.shown .bitmovinplayer-container").addClass("carbon-player");
let multi_channels;
if ($(".embedded-player-container .channel-switcher-container").length > 0) {
log("player has multiple channels");
@@ -791,6 +790,15 @@ function waitForPageLoad() {
"</div>";
$("#carbon-helper")[0].insertAdjacentHTML("beforeEnd", syncTopPopupHtml);
let carbonStyleHtml = "<div class='carbon-style'>" +
"<style>" +
// This disables official theater mode
".embedded-player-container .btn-more-tray, .embedded-player-container .back-button {display: none;}" +
".video-grid {position: absolute; z-index: 1;}"
"</style>" +
"</div>";
$("#carbon-helper")[0].insertAdjacentHTML("beforeEnd", carbonStyleHtml);
}
}