mirror of
https://github.com/Carbon-for-F1TV/Carbon-for-F1TV.git
synced 2026-11-11 01:10:09 +01:00
Fix video not auto-playing
This commit is contained in:
1 parent
4f75de78ed
commit
47b705a934
1 file changed
+3
-3
@@ -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.0.8
|
||||
// @version 1.0.9
|
||||
// @author Carbon-for-F1TV
|
||||
// @description Enhance your F1TV experience
|
||||
// @require https://code.jquery.com/jquery-3.7.1.min.js
|
||||
@@ -715,8 +715,8 @@ function waitForPlayer() {
|
||||
} else {
|
||||
// no player found
|
||||
// check for watch live popup
|
||||
if ($("button.btn-main:contains('WATCH LIVE')").length > 0) {
|
||||
$("button.btn-main:contains('WATCH LIVE')")[0].click();
|
||||
if ($("button.btn-popup-primary:contains('WATCH LIVE')").length > 0) {
|
||||
$("button.btn-popup-primary:contains('WATCH LIVE')")[0].click();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user