mirror of
https://github.com/Carbon-for-F1TV/Carbon-for-F1TV.git
synced 2026-11-11 01:10:09 +01:00
Disable official theater mode
This commit is contained in:
1 parent
eaf9a2209e
commit
fdce187ecb
1 file changed
+10
-2
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user