// ==UserScript==
// @name         GoodTube
// @namespace    http://tampermonkey.net/
// @version      4.549
// @description  Loads Youtube videos from different sources. Also removes ads, shorts, etc.
// @author       GoodTube
// @match        https://*.youtube.com/*
// @icon         https://cdn-icons-png.flaticon.com/256/1384/1384060.png
// @run-at       document-start
// @updateURL    https://github.com/goodtube4u/goodtube/raw/main/goodtube.user.js
// @downloadURL  https://github.com/goodtube4u/goodtube/raw/main/goodtube.user.js
// @noframes
// ==/UserScript==

// This script has been minified for performance reasons.
// To view the full source code, go here: https://github.com/goodtube4u/goodtube/blob/main/goodtube.user_unminified.js

!function(){"use strict";let t="https://raw.githubusercontent.com/goodtube4u/GoodTube/main",e=500,o=3,n=!0;function r(){let t={};return document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g,(function(){function e(t){return decodeURIComponent(t.split("+").join(" "))}t[e(arguments[1])]=e(arguments[2])})),t}function a(t,e){document.cookie=t+"="+encodeURIComponent(e)+"; max-age=34473600"}function i(t){let e=document.cookie.split(";");for(let o=0;o<e.length;o++){let n=e[o].split("=");if(t==n[0].trim())return decodeURIComponent(n[1])}return null}function l(t){t&&!t.classList.contains("goodTube_hidden")&&t.classList.add("goodTube_hidden")}function s(t){if(!t.closest(".goodTube_hiddenPlayer")){let e=t.parentNode,o=document.createElement("div");o.classList.add("goodTube_hiddenPlayer"),e.replaceChild(o,t),o.appendChild(t)}}function d(t){t&&t.classList.contains("goodTube_hidden")&&t.classList.remove("goodTube_hidden")}function u(){let t=document.querySelector("#movie_player video");t&&(t.muted=!0,t.volume=0,p||t.pause());let e=document.querySelector("#movie_player");e&&("function"==typeof e.mute&&e.mute(),"function"==typeof e.setVolume&&e.setVolume(0),p||"function"!=typeof e.pauseVideo||e.pauseVideo()),document.querySelectorAll("video:not(#goodTube_player):not(#goodTube_player_html5_api)").forEach((t=>{t.closest("#inline-player")||t.closest("#movie_player")||(t.muted=!0,t.volume=0,t.pause())}))}let p=!0,c=0;function m(){let t=document.querySelector("#movie_player video");if(t&&lt&&void 0!==Mt.v){let e=Ct.currentTime;if(e===c&&parseFloat(e)>0)return;c=e,t.currentTime=e,p=!0,t.play(),t.muted=!0,t.volume=0;let o=document.querySelector("#movie_player");o&&("function"==typeof o.playVideo&&o.playVideo(),"function"==typeof o.mute&&o.mute(),"function"==typeof o.setVolume&&o.setVolume(0)),setTimeout((function(){p=!1}),10)}}let b=[],v=0,y=[t+"/js/assets.min.js",t+"/css/assets.min.css"],g=0,h=0,f=0,_=!1,j=1,T=!1,w=!1,x=!1,k=!1,S=!1,L=!1,A=!1,q=!1,E=!1,C=!1,M=!1;function Q(){let t=!1;if(t=Bt?document.querySelector("body"):document.getElementById("below"),!t||g<y.length)return void setTimeout((function(){Q()}),0);let l=document.createElement("style");l.textContent="\n\t\t\t/* Default quality modal */\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal {\n\t\t\t\tposition: absolute;\n\t\t\t\tz-index: 99999;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tpadding: 24px;\n\t\t\t\ttransition: opacity .2s linear;\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal .goodTube_defaultQualityModal_overlay {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tbackground: rgba(0,0,0,.8);\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal.goodTube_defaultQualityModal_visible {\n\t\t\t\topacity: 1;\n\t\t\t\tpointer-events: all;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal .goodTube_defaultQualityModal_inner {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t\twidth: 264px;\n\t\t\t\tmax-width: calc(100% - 32px);\n\t\t\t\tmax-height: calc(100% - 32px);\n\t\t\t\toverflow: auto;\n\t\t\t\tbackground: #ffffff;\n\t\t\t\tborder-radius: 12px;\n\t\t\t\tpadding: 0;\n\t\t\t\tz-index: 2;\n\t\t\t\tbox-shadow: 0 0 16px rgba(15, 15, 15, .3);\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal .goodTube_defaultQualityModal_title {\n\t\t\t\tcolor: rgba(15, 15, 15);\n\t\t\t\tfont-size: 16px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\tpadding: 12px;\n\t\t\t\tpadding-top: 16px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 100%;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tfont-family: Roboto, Arial, Helvetica, sans-serif;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal .goodTube_defaultQualityModal_options {\n\t\t\t\tpadding-bottom: 12px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal .goodTube_defaultQualityModal_options .goodTube_defaultQualityModal_option {\n\t\t\t\tcolor: rgba(15, 15, 15);\n\t\t\t\tfont-size: 14px;\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\tpadding: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\tfont-weight: 400;\n\t\t\t\ttext-decoration: none;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\ttransition: background-color .2s linear;\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-family: Roboto, Arial, Helvetica, sans-serif;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal .goodTube_defaultQualityModal_options .goodTube_defaultQualityModal_option.goodTube_defaultQualityModal_selected {\n\t\t\t\tbackground: rgba(15,15,15,.15);\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 .goodTube_defaultQualityModal .goodTube_defaultQualityModal_options .goodTube_defaultQualityModal_option:hover {\n\t\t\t\tbackground: rgba(15,15,15,.1);\n\t\t\t}\n\n\n\t\t\t/* Automatic server styling */\n\t\t\t#goodTube_player_wrapper1.goodTube_automaticServer #goodTube_player_wrapper2 .vjs-source-button ul li:first-child {\n\t\t\t\tbackground: #ffffff !important;\n\t\t\t\tcolor: #000000 !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_automaticServer .vjs-source-button ul li.vjs-selected {\n\t\t\t\tbackground-color: rgba(255, 255, 255, .2) !important;\n\t\t\t\tcolor: #ffffff !important;\n\t\t\t}\n\n\n\t\t\t/* Hide the volume tooltip */\n\t\t\t#goodTube_player_wrapper1 .vjs-volume-bar .vjs-mouse-display {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t#contentContainer.tp-yt-app-drawer[swipe-open].tp-yt-app-drawer::after {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t/* Live streams */\n\t\t\t#goodTube_player_wrapper1 .vjs-live .vjs-progress-control {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-live .vjs-duration-display,\n\t\t\t#goodTube_player_wrapper1 .vjs-live .vjs-time-divider {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t/* Seek bar */\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control {\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 48px;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: calc(24px + 3px);\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-slider {\n\t\t\t\tmargin: 0;\n\t\t\t\tbackground: transparent;\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 3px;\n\t\t\t\tleft: 8px;\n\t\t\t\tright: 8px;\n\t\t\t\ttop: auto;\n\t\t\t\ttransition: height .1s linear, bottom .1s linear;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control:hover .vjs-slider {\n\t\t\t\tpointer-events: none;\n\t\t\t\theight: 5px;\n\t\t\t\tbottom: 2px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-slider .vjs-load-progress {\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: rgba(255, 255, 255, .2);\n\t\t\t\ttransition: none;\n\t\t\t\tposition: static;\n\t\t\t\tmargin-bottom: -3px;\n\t\t\t\ttransition: margin .1s linear;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control:hover .vjs-slider .vjs-load-progress {\n\t\t\t\tmargin-bottom: -5px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-slider .vjs-load-progress .vjs-control-text {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-slider .vjs-load-progress > div {\n\t\t\t\tbackground: transparent !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-slider .vjs-play-progress {\n\t\t\t\tbackground: transparent;\n\t\t\t\tposition: static;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-slider .vjs-play-progress::before {\n\t\t\t\tcontent: '';\n\t\t\t\tbackground: #ff0000;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tposition: static;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-slider .vjs-play-progress::after {\n\t\t\t\tcontent: '';\n\t\t\t\tdisplay: block;\n\t\t\t\tfloat: right;\n\t\t\t\tbackground: #ff0000;\n\t\t\t\tborder-radius: 50%;\n\t\t\t\topacity: 0;\n\t\t\t\twidth: 13px;\n\t\t\t\theight: 13px;\n\t\t\t\tright: -7px;\n\t\t\t\ttop: -8px;\n\t\t\t\ttransition: opacity .1s linear, top .1s linear;\n\t\t\t\tposition: relative;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control:hover .vjs-slider .vjs-play-progress::after {\n\t\t\t\topacity: 1;\n\t\t\t\ttop: -9px;\n\t\t\t}\n\n\n\t\t\t/* Without chapters */\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_hasChapters) .vjs-progress-control::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 3px;\n\t\t\t\tleft: 8px;\n\t\t\t\tright: 8px;\n\t\t\t\theight: 3px;\n\t\t\t\tbackground: rgba(255, 255, 255, .2);\n\t\t\t\ttransition: height .1s linear, bottom .1s linear;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_hasChapters) .vjs-progress-control:hover::before {\n\t\t\t\theight: 5px;\n\t\t\t\tbottom: 2px;\n\t\t\t}\n\n\n\t\t\t/* With chapters */\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_chapters {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tleft: 8px;\n\t\t\t\tright: 8px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_chapters .goodTube_chapter {\n\t\t\t\theight: 100%;\n\t\t\t\tposition: absolute;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_chapters .goodTube_chapter::before {\n\t\t\t\tcontent: '';\n\t\t\t\tbackground: rgba(255, 255, 255, .2);\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 2px;\n\t\t\t\tbottom: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\ttransition: height .1s linear, bottom .1s linear, background .1s linear;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_chapters .goodTube_chapter.goodTube_redChapter::before {\n\t\t\t\tbackground: #ff0000 !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_chapters .goodTube_chapter:last-child::before {\n\t\t\t\tright: 0;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control:hover .goodTube_chapters .goodTube_chapter::before {\n\t\t\t\theight: 5px;\n\t\t\t\tbottom: 2px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters:not(.goodTube_mobile) .vjs-progress-control .goodTube_chapters .goodTube_chapter:hover::before {\n\t\t\t\theight: 9px;\n\t\t\t\tbottom: 0;\n\t\t\t\tbackground: rgba(255, 255, 255, .4);\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_markers {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_marker {\n\t\t\t\twidth: 2px;\n\t\t\t\theight: 100%;\n\t\t\t\tposition: absolute;\n\t\t\t\tbackground: rgba(0, 0, 0, .2);\n\t\t\t\tmargin-left: -2px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_marker.goodTube_showMarker {\n\t\t\t\tbackground: rgba(0, 0, 0, .6);\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .goodTube_marker:last-child {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .vjs-mouse-display {\n\t\t\t\tbackground: transparent;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_hasChapters .vjs-progress-control .vjs-mouse-display .vjs-time-tooltip::before {\n\t\t\t\tcontent: attr(chapter-title);\n\t\t\t\tdisplay: block;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\tmargin-bottom: 4px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control .goodTube_hoverBar {\n\t\t\t\tbackground: rgba(255, 255, 255, .4);\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 3px;\n\t\t\t\tleft: 8px;\n\t\t\t\theight: 3px;\n\t\t\t\topacity: 0;\n\t\t\t\ttransition: height .1s linear, bottom .1s linear, opacity .1s linear;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1 .vjs-progress-control:hover .goodTube_hoverBar {\n\t\t\t\theight: 5px;\n\t\t\t\tbottom: 2px;\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .vjs-time-control .vjs-duration-display {\n\t\t\t\twhite-space: nowrap;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .vjs-time-control .vjs-duration-display::after {\n\t\t\t\tcontent: attr(chapter-title);\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tcolor: #ffffff;\n\t\t\t\tmargin-left: 3px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .vjs-progress-control .vjs-slider,\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile:not(.goodTube_hasChapters) .vjs-progress-control::before,\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile.goodTube_hasChapters .vjs-progress-control .goodTube_chapters,\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .vjs-progress-control .goodTube_hoverBar {\n\t\t\t\tleft: 16px;\n\t\t\t\tright: 16px;\n\t\t\t}\n\n\n\t\t\t/* Audio only view */\n\t\t\t#goodTube_player_wrapper3.goodTube_audio {\n\t\t\t\tbackground: #000000;\n\t\t\t\tposition: relative;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3.goodTube_audio .video-js::after {\n\t\t\t\tcontent: '\\f107';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t\tcolor: #ffffff;\n\t\t\t\tfont-family: VideoJS;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-style: normal;\n\t\t\t\tfont-size: 148px;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t@media (max-width: 768px) {\n\t\t\t\t#goodTube_player_wrapper3.goodTube_audio .video-js::after {\n\t\t\t\t\tfont-size: 100px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile #goodTube_player_wrapper3.goodTube_audio .video-js::after {\n\t\t\t\tfont-size: 100px;\n\t\t\t}\n\n\t\t\t/* Double tap or tap and hold elements for seeking on mobile */\n\t\t\t#goodTube_seekBackwards {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tbottom: 48px;\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 25%;\n\t\t\t}\n\n\t\t\t#goodTube_seekForwards {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 48px;\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 25%;\n\t\t\t}\n\n\t\t\t/* Theater mode */\n\t\t\tytd-watch-flexy[theater] #goodTube_player_wrapper1:not(.goodTube_mobile) {\n\t\t\t\twidth: 100%;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 56px;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbackground: #000000;\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\n\t\t\tytd-watch-flexy:not(ytd-watch-flexy[theater]) #below,\n\t\t\tytd-watch-flexy:not(ytd-watch-flexy[theater]) #secondary {\n\t\t\t\tmargin-top: 0 !important;\n\t\t\t}\n\n\t\t\tytd-watch-flexy[theater] #below {\n\t\t\t\tpadding-top: 8px !important;\n\t\t\t}\n\n\t\t\tytd-watch-flexy[theater] #secondary {\n\t\t\t\tpadding-top: 16px !important;\n\t\t\t}\n\n\t\t\tytd-watch-flexy[theater] #goodTube_player_wrapper1:not(.goodTube_mobile) {\n\t\t\t\tpadding-top: min(var(--ytd-watch-flexy-max-player-height), (calc(var(--ytd-watch-flexy-height-ratio) / var(--ytd-watch-flexy-width-ratio) * 100%))) !important;\n\t\t\t}\n\n\t\t\tytd-watch-flexy[theater] #goodTube_player_wrapper1:not(.goodTube_mobile) #goodTube_player_wrapper3,\n\t\t\tytd-watch-flexy[theater] #goodTube_player_wrapper1:not(.goodTube_mobile) #goodTube_player_wrapper3 #goodTube_player {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\n\t\t\t/* Desktop */\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_mobile) {\n\t\t\t\tposition: relative;\n\t\t\t\theight: 0;\n\t\t\t\tpadding-top: min(var(--ytd-watch-flexy-max-player-height), (calc(var(--ytd-watch-flexy-height-ratio) / var(--ytd-watch-flexy-width-ratio) * 100%))) !important;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tmin-height: var(--ytd-watch-flexy-min-player-height);\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_mobile) #goodTube_player_wrapper2 {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tmargin: 0 auto;\n\t\t\t\tmin-height: 240px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_mobile) #goodTube_player_wrapper3 {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tmin-height: 240px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_mobile):not(.goodTube_miniplayer) #goodTube_player {\n\t\t\t\tborder-radius: 12px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer.goodTube_mobile {\n\t\t\t\tposition: absolute !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper3 {\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_mobile) #goodTube_player_wrapper3 {\n\t\t\t\tborder-radius: 12px;\n\t\t\t}\n\n\t\t\t/* Miniplayer */\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer {\n\t\t\t\tz-index: 999 !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer #goodTube_player_wrapper3 .video-js {\n\t\t\t\tposition: fixed;\n\t\t\t\tbottom: 12px;\n\t\t\t\tright: 12px;\n\t\t\t\twidth: 400px;\n\t\t\t\tmax-width: calc(100% - 24px);\n\t\t\t\tmin-height: 0;\n\t\t\t\tpadding-top: 0;\n\t\t\t\tz-index: 999;\n\t\t\t\theight: auto;\n\t\t\t\tleft: auto;\n\t\t\t\taspect-ratio: 16 / 9;\n\t\t\t\ttop: auto;\n\t\t\t\tborder-radius: 12px;\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer.goodTube_mobile  #goodTube_player_wrapper3 .video-js {\n\t\t\t\tbottom: 60px;\n\t\t\t}\n\n\t\t\tytd-watch-flexy.goodTube_miniplayer {\n\t\t\t\tdisplay: block !important;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tposition: fixed;\n\t\t\t\tz-index: 999;\n\t\t\t\ttop: -9999px;\n\t\t\t\tleft: -9999px;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer #goodTube_player_wrapper3 .video-js .vjs-source-button,\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer #goodTube_player_wrapper3 .video-js .vjs-autoplay-button,\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer #goodTube_player_wrapper3 .video-js .vjs-miniplayer-button,\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer #goodTube_player_wrapper3 .video-js .vjs-theater-button {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_closeButton,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_expandButton {\n\t\t\t\tfont-family: VideoJS;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-style: normal;\n\t\t\t\tcursor: pointer;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\twidth: 48px;\n\t\t\t\theight: 48px;\n\t\t\t\tline-height: 48px;\n\t\t\t\ttext-align: center;\n\t\t\t\tz-index: 999;\n\t\t\t\tcolor: #ffffff;\n\t\t\t\topacity: 0;\n\t\t\t\ttransition: opacity .2s linear;\n\t\t\t}\n\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_closeButton::after {\n\t\t\t\tcontent: 'Close';\n\t\t\t\tright: 12px;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_expandButton::after {\n\t\t\t\tcontent: 'Expand';\n\t\t\t\tleft: 12px;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_closeButton::after,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_expandButton::after {\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: -24px;\n\t\t\t\tbackground: rgba(0, 0, 0, .75);\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\tpadding: 8px;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\topacity: 0;\n\t\t\t\ttransition: opacity .1s;\n\t\t\t\tpointer-events: none;\n\t\t\t\ttext-shadow: none !important;\n\t\t\t\tz-index: 1;\n\t\t\t\tfont-family: 'MS Shell Dlg 2', sans-serif;\n\t\t\t\tline-height: initial;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_closeButton:hover::after,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_expandButton:hover::after {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_closeButton {\n\t\t\t\tright: 0;\n\t\t\t\tfont-size: 24px;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_closeButton::before {\n\t\t\t\tcontent: \"\\f119\";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_expandButton {\n\t\t\t\tleft: 0;\n\t\t\t\tfont-size: 18px;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js #goodTube_miniplayer_expandButton::before {\n\t\t\t\tcontent: \"\\f128\";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t}\n\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js.vjs-paused:not(.vjs-user-inactive) #goodTube_miniplayer_expandButton,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js.vjs-user-active #goodTube_miniplayer_expandButton,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js.vjs-paused:not(.vjs-user-inactive) #goodTube_miniplayer_closeButton,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js.vjs-user-active #goodTube_miniplayer_closeButton {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\t/* Mobile */\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile {\n\t\t\t\tposition: fixed;\n\t\t\t\ttop: 48px;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile #goodTube_player_wrapper2 {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile #goodTube_player_wrapper3 {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-control.vjs-play-control,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-control.vjs-play-control {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc(50% - 48px);\n\t\t\t\tleft: calc(50% - 32px);\n\t\t\t\twidth: 64px;\n\t\t\t\theight: 64px;\n\t\t\t\tbackground: rgba(0, 0, 0, .3);\n\t\t\t\tborder-radius: 50%;\n\t\t\t\tmax-width: 999px !important;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-play-control .vjs-icon-placeholder::before,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-play-control .vjs-icon-placeholder::before {\n\t\t\t\tfont-size: 44px !important;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-prev-button,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-prev-button {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc(50% - 40px);\n\t\t\t\tleft: calc(50% - 104px);\n\t\t\t\twidth: 48px;\n\t\t\t\theight: 48px;\n\t\t\t\tbackground: rgba(0, 0, 0, .3);\n\t\t\t\tborder-radius: 50%;\n\t\t\t\tmax-width: 999px !important;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-prev-button .vjs-icon-placeholder::before,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-prev-button .vjs-icon-placeholder::before {\n\t\t\t\tfont-size: 32px !important;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-next-button,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-next-button {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc(50% - 40px);\n\t\t\t\tleft: calc(50% + 56px);\n\t\t\t\twidth: 48px;\n\t\t\t\theight: 48px;\n\t\t\t\tbackground: rgba(0, 0, 0, .3);\n\t\t\t\tborder-radius: 50%;\n\t\t\t\tmax-width: 999px !important;\n\t\t\t}\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-next-button .vjs-icon-placeholder::before,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-next-button .vjs-icon-placeholder::before {\n\t\t\t\tfont-size: 32px !important;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-control-bar,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-control-bar {\n\t\t\t\tz-index: 1;\n\t\t\t\tposition: static;\n\t\t\t\tmargin-top: auto;\n\t\t\t\tjustify-content: space-around;\n\t\t\t}\n\n\t\t\tytd-watch-flexy:not([theater]) #primary {\n\t\t\t\tmin-width: 721px !important;\n\t\t\t}\n\n\t\t\t@media (max-width: 1100px) {\n\t\t\t\tytd-watch-flexy:not([theater]) #primary {\n\t\t\t\t\tmin-width: 636px !important;\n\t\t\t\t}\n\n\t\t\t\tytd-watch-flexy:not([theater]) #goodTube_player_wrapper1:not(.goodTube_mobile) .video-js .vjs-control-bar .vjs-button {\n\t\t\t\t\tzoom: .88;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media (max-width: 1016px) {\n\t\t\t\tytd-watch-flexy:not([theater]) #primary {\n\t\t\t\t\tmin-width: 0 !important;\n\t\t\t\t}\n\n\t\t\t\tytd-watch-flexy:not([theater]) #goodTube_player_wrapper1:not(.goodTube_mobile) .video-js .vjs-control-bar .vjs-button {\n\t\t\t\t\tzoom: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media (max-width: 786px) {\n\t\t\t\tytd-watch-flexy:not([theater]) #goodTube_player_wrapper1:not(.goodTube_mobile) .video-js .vjs-control-bar .vjs-button {\n\t\t\t\t\tzoom: .9;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media (max-width: 715px) {\n\t\t\t\tytd-watch-flexy:not([theater]) #goodTube_player_wrapper1:not(.goodTube_mobile) .video-js .vjs-control-bar .vjs-button {\n\t\t\t\t\tzoom: .85;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media (max-width: 680px) {\n\t\t\t\tytd-watch-flexy:not([theater]) #goodTube_player_wrapper1:not(.goodTube_mobile) .video-js .vjs-control-bar .vjs-button {\n\t\t\t\t\tzoom: .8;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-source-button,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-source-button {\n\t\t\t\tmargin-left: 0 !important;\n\t\t\t}\n\n\t\t\t@media (max-width: 480px) {\n\t\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-source-button .vjs-menu,\n\t\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-source-button .vjs-menu {\n\t\t\t\t\tleft: 60px !important;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-loading-spinner,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js .vjs-loading-spinner {\n\t\t\t\ttop: calc(50% - 16px);\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1 .video-js.vjs-loading {\n\t\t\t\tbackground: #000000;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js::before,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js::before {\n\t\t\t\tcontent: '';\n\t\t\t\tbackground: transparent;\n\t\t\t\ttransition: background .2s ease-in-out;\n\t\t\t\tpointer-events: none;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js.vjs-paused::before,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js.vjs-paused::before,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js.vjs-user-active::before,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js.vjs-user-active::before {\n\t\t\t\tbackground: rgba(0,0,0,.6);\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_mobile .video-js.vjs-user-inactive:not(.vjs-paused) .vjs-control-bar,\n\t\t\thtml body #goodTube_player_wrapper1.goodTube_miniplayer .video-js.vjs-user-inactive:not(.vjs-paused) .vjs-control-bar {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile #goodTube_player_wrapper3 .video-js .vjs-theater-button,\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile #goodTube_player_wrapper3 .video-js .vjs-miniplayer-button {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t/* Video */\n\t\t\t#goodTube_player {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: transparent;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile #goodTube_player,\n\t\t\t#goodTube_player.vjs-loading {\n\t\t\t\tbackground: #000000;\n\t\t\t}\n\n\t\t\t#goodTube_player:focus {\n\t\t\t\toutline: 0;\n\t\t\t}\n\n\t\t\t/* Error */\n\t\t\t#goodTube_error {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 40px;\n\t\t\t\tright: 40px;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\ttext-align: center;\n\t\t\t\tcolor: #ffffff;\n\t\t\t\tfont-size: 20px;\n\t\t\t\tpadding: 16px;\n\t\t\t\tbackground: #000000;\n\t\t\t\tborder-radius: 8px;\n\t\t\t}\n\n\t\t\t#goodTube_error small {\n\t\t\t\tpadding-top: 8px;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t",document.head.appendChild(l);let s=document.createElement("div");s.id="goodTube_player_wrapper1";let d=document.createElement("div");d.id="goodTube_player_wrapper2";let u=document.createElement("div");u.id="goodTube_player_wrapper3",Bt?(s.classList.add("goodTube_mobile"),t.appendChild(s),setInterval((function(){window.requestAnimationFrame((function(){if(void 0!==Mt.v){let t=document.querySelector(".player-size.player-placeholder");t&&(t.offsetHeight>0?(s.style.height=t.offsetHeight+"px",s.style.width=t.offsetWidth+"px"):(t=document.querySelector("#player"),t.offsetHeight>0&&(s.style.height=t.offsetHeight+"px",s.style.width=t.offsetWidth+"px")));let e=document.querySelector(".player-container.sticky-player");s.style.position=e?"fixed":"absolute"}else s.style.height="0",s.style.width="0"}))}),1)):(t.before(s),setInterval((function(){document.querySelectorAll("ytd-watch-flexy[theater] #below, ytd-watch-flexy[theater] #secondary").forEach((t=>{t.style.marginTop=s.offsetHeight+"px"}))}),1)),s.appendChild(d),d.appendChild(u);let p=document.createElement("video");p.id="goodTube_player",p.classList.add("video-js"),p.controls=!0,p.setAttribute("tab-index","1"),u.appendChild(p),Ct=p,addEventListener("leavepictureinpicture",(t=>{void 0===Mt.v&&O(Ct),w=!1})),addEventListener("enterpictureinpicture",(t=>{w=!0})),function(){n&&console.log("[GoodTube] Loading player...");(function(){let t=document.createElement("style");t.textContent="\n\t\t\t#goodTube_player_wrapper1:not(.goodTube_mobile) {\n\t\t\t\tborder-radius: 12px;\n\t\t\t}\n\n\t\t\t.video-js {\n\t\t\t\toverflow: hidden;\n\t\t\t}\n\n\t\t\t.video-js *:focus {\n\t\t\t\toutline-color: transparent;\n\t\t\t\toutline-style: none;\n\t\t\t}\n\n\t\t\t.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {\n\t\t\t\ttransition: visibility .25s, opacity .25s !important;\n\t\t\t}\n\n\t\t\t.vjs-menu .vjs-menu-item-text {\n\t\t\t\ttext-transform: none !important;\n\t\t\t}\n\n\t\t\t.vjs-menu .vjs-menu-item-text:first-letter {\n\t\t\t\ttext-transform: uppercase !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-download-button .vjs-icon-placeholder,\n\t\t\t.video-js .vjs-source-button .vjs-icon-placeholder,\n\t\t\t.video-js .vjs-autoplay-button .vjs-icon-placeholder,\n\t\t\t.video-js .vjs-quality-selector .vjs-icon-placeholder,\n\t\t\t.video-js .vjs-prev-button .vjs-icon-placeholder,\n\t\t\t.video-js .vjs-next-button .vjs-icon-placeholder,\n\t\t\t.video-js .vjs-miniplayer-button .vjs-icon-placeholder,\n\t\t\t.video-js .vjs-theater-button .vjs-icon-placeholder {\n\t\t\t\tfont-family: VideoJS;\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-style: normal;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > button {\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t.video-js .vjs-prev-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f124\";\n\t\t\t}\n\n\t\t\t.video-js .vjs-next-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f123\";\n\t\t\t}\n\n\t\t\t.video-js .vjs-download-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f110\";\n\t\t\t}\n\n\n\n\t\t\t// Loading indicator for downloads\n\t\t\t.video-js .vjs-download-button {\n\t\t\t\tposition: relative;\n\t\t\t}\n\n\t\t\t.video-js .vjs-download-button .goodTube_spinner {\n\t\t\t\topacity: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t\ttransition: opacity .4s linear;\n\t\t\t}\n\t\t\t.video-js .vjs-download-button.goodTube_loading .goodTube_spinner {\n\t\t\t\topacity: 1;\n\t\t\t\ttransition: opacity .2s .2s linear;\n\t\t\t}\n\n\t\t\t.video-js .vjs-download-button .vjs-icon-placeholder:before {\n\t\t\t\topacity: 1;\n\t\t\t\ttransition: opacity .2s .2s linear;\n\t\t\t}\n\t\t\t.video-js .vjs-download-button.goodTube_loading .vjs-icon-placeholder:before {\n\t\t\t\topacity: 0;\n\t\t\t\ttransition: opacity .2s linear;\n\t\t\t}\n\n\t\t\t.goodTube_spinner {\n\t\t\t\tcolor: #ffffff;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.goodTube_spinner,\n\t\t\t.goodTube_spinner div {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\t.goodTube_spinner {\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tposition: relative;\n\t\t\t\twidth: 36px;\n\t\t\t\theight: 36px;\n\t\t\t}\n\t\t\t.goodTube_spinner div {\n\t\t\t\tposition: absolute;\n\t\t\t\tborder: 2px solid currentColor;\n\t\t\t\topacity: 1;\n\t\t\t\tborder-radius: 50%;\n\t\t\t\tanimation: goodTube_spinner 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;\n\t\t\t}\n\t\t\t.goodTube_spinner div:nth-child(2) {\n\t\t\t\tanimation-delay: -0.5s;\n\t\t\t}\n\t\t\t@keyframes goodTube_spinner {\n\t\t\t\t0% {\n\t\t\t\t\ttop: 16px;\n\t\t\t\t\tleft: 16px;\n\t\t\t\t\twidth: 4px;\n\t\t\t\t\theight: 4px;\n\t\t\t\t\topacity: .5;\n\t\t\t\t}\n\t\t\t\t4.9% {\n\t\t\t\t\ttop: 16px;\n\t\t\t\t\tleft: 16px;\n\t\t\t\t\twidth: 4px;\n\t\t\t\t\theight: 4px;\n\t\t\t\t\topacity: .5;\n\t\t\t\t}\n\t\t\t\t5% {\n\t\t\t\t\ttop: 16px;\n\t\t\t\t\tleft: 16px;\n\t\t\t\t\twidth: 4px;\n\t\t\t\t\theight: 4px;\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t\t100% {\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\twidth: 36px;\n\t\t\t\t\theight: 36px;\n\t\t\t\t\topacity: 0;\n\t\t\t\t}\n\t\t\t}\n\n\n\n\t\t\t.video-js .vjs-source-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f10e\";\n\t\t\t}\n\n\t\t\t.video-js .vjs-autoplay-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f102\";\n\t\t\t}\n\n\t\t\t.video-js .vjs-quality-selector .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f114\";\n\t\t\t}\n\n\t\t\t.video-js .vjs-source-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f10e\";\n\t\t\t}\n\n\t\t\t.video-js .vjs-miniplayer-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f127\";\n\t\t\t}\n\n\t\t\t.video-js .vjs-theater-button .vjs-icon-placeholder:before {\n\t\t\t\tcontent: \"\\f115\";\n\t\t\t}\n\n\t\t\t/* Youtube player style */\n\t\t\t.vjs-slider-horizontal .vjs-volume-level:before {\n\t\t\t\tfont-size: 14px !important;\n\t\t\t}\n\n\t\t\t.vjs-volume-control {\n\t\t\t\twidth: auto !important;\n\t\t\t\tmargin-right: 0 !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-panel.vjs-volume-panel-horizontal {\n\t\t\t\ttransition: width .25s !important;\n\t\t\t\tz-index: 999;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal {\n\t\t\t\ttransition: opacity .25s, width 1s !important;\n\t\t\t\tmin-width: 0 !important;\n\t\t\t\tpadding-right: 8px !important;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-panel {\n\t\t\t\tmargin-right: 6px !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-panel.vjs-hover,\n\t\t\t.video-js .vjs-volume-panel.vjs-slider-active {\n\t\t\t\tmargin-right: 16px !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal {\n\t\t\t\tpointer-events: all;\n\t\t\t}\n\n\t\t\t.vjs-volume-bar.vjs-slider-horizontal {\n\t\t\t\tmin-width: 52px !important;\n\t\t\t}\n\n\t\t\t.video-js.player-style-youtube .vjs-control-bar > .vjs-spacer {\n\t\t\t\tflex: 1;\n\t\t\t\torder: 2;\n\t\t\t}\n\n\t\t\t.video-js.player-style-youtube .vjs-play-progress .vjs-time-tooltip {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t.video-js.player-style-youtube .vjs-play-progress::before {\n\t\t\t\tcolor: red;\n\t\t\t\tfont-size: 0.85em;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t.video-js.player-style-youtube .vjs-progress-holder:hover .vjs-play-progress::before {\n\t\t\t\tdisplay: unset;\n\t\t\t}\n\n\t\t\t.video-js.player-style-youtube .vjs-control-bar {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: row;\n\t\t\t}\n\n\t\t\t.video-js.player-style-youtube .vjs-big-play-button {\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 50%;\n\t\t\t\tmargin-top: -0.81666em;\n\t\t\t\tmargin-left: -1.5em;\n\t\t\t}\n\n\t\t\t.video-js.player-style-youtube .vjs-menu-button-popup .vjs-menu {\n\t\t\t\tmargin-bottom: 2em;\n\t\t\t}\n\n\t\t\t.video-js ul.vjs-menu-content::-webkit-scrollbar {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t.video-js .vjs-user-inactive:not(.vjs-paused) {\n\t\t\t\tcursor: none;\n\t\t\t}\n\n\t\t\t.video-js .vjs-text-track-display > div > div > div {\n\t\t\t\tborder-radius: 0 !important;\n\t\t\t\tpadding: 4px 8px !important;\n\t\t\t\tline-height: calc(1.2em + 7px) !important;\n\t\t\t\twhite-space: break-spaces !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-play-control {\n\t\t\t\torder: 0;\n\t\t\t}\n\n\t\t\t.video-js .vjs-prev-button {\n\t\t\t\torder: 1;\n\t\t\t}\n\n\t\t\t.video-js .vjs-next-button {\n\t\t\t\torder: 2;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-panel {\n\t\t\t\torder: 3;\n\t\t\t}\n\n\t\t\t/* Time control */\n\t\t\thtml body #goodTube_player_wrapper1 .video-js .vjs-time-control {\n\t\t\t\tfont-family: \"YouTube Noto\", Roboto, Arial, Helvetica, sans-serif !important;\n\t\t\t\torder: 4;\n\t\t\t\tfont-size: 13.0691px !important;\n\t\t\t\tpadding-top: 4px !important;\n\t\t\t\tcolor: rgb(221, 221, 221) !important;\n\t\t\t\ttext-shadow: 0 0 2px rgba(0, 0, 0, .5) !important;\n\t\t\t\tmin-width: 0 !important;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\thtml body #goodTube_player_wrapper1 .video-js .vjs-time-control * {\n\t\t\t\tmin-width: 0 !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-current-time {\n\t\t\t\tpadding-right: 4px !important;\n\t\t\t\tpadding-left: 0 !important;\n\t\t\t\tmargin-left: 0 !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-duration {\n\t\t\t\tpadding-left: 4px !important;\n\t\t\t\tpadding-right: 5px !important;\n\t\t\t\tmargin-right: 0 !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-time-control {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc(100% - 98px);\n\t\t\t\tfont-weight: 500;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-current-time {\n\t\t\t\tcolor: #ffffff !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-source-button {\n\t\t\t\tmargin-left: auto !important;\n\t\t\t\torder: 5;\n\t\t\t}\n\n\t\t\t.video-js .vjs-download-button {\n\t\t\t\torder: 6;\n\t\t\t}\n\n\t\t\t.video-js .vjs-autoplay-button {\n\t\t\t\torder: 7;\n\t\t\t}\n\n\t\t\t.video-js .vjs-playback-rate {\n\t\t\t\torder: 8;\n\t\t\t}\n\n\t\t\t.video-js .vjs-subs-caps-button {\n\t\t\t\torder: 9;\n\t\t\t}\n\n\t\t\t.video-js .vjs-quality-selector {\n\t\t\t\torder: 10;\n\t\t\t}\n\n\t\t\t.video-js .vjs-miniplayer-button {\n\t\t\t\torder: 11;\n\t\t\t}\n\n\t\t\t.video-js .vjs-theater-button {\n\t\t\t\torder: 12;\n\t\t\t}\n\n\t\t\t.video-js .vjs-fullscreen-control {\n\t\t\t\torder: 13;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: row;\n\t\t\t\tscrollbar-width: none;\n\t\t\t\theight: 48px !important;\n\t\t\t\tbackground: transparent !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\tbackground: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAD1CAYAAACRFp+GAAAAAXNSR0IArs4c6QAAASpJREFUOE9lyOlHGAAcxvHuY63Wta3WsdWqdaz7vtfduoyZSBLJmCSSSCaSSBJJJIkk0h+Z7/Pm59Hz4sP3SUh4tUSeIIkMkkmR4qSSIs1JJ4MMUmQ6b0iR5bwlg2xS5DjvSJHr5JFBPikKnEIyeE+KD85HUhQ5xWTwiRQlTikpypxyMvhMii9OBSkqna9kUEWKaqeGDL6RotapI0W900AG30nR6DSRotlpIYNWUrQ57aTocDrJoIsU3U4PKXqdPjLoJ8WAM0gGQ6QYdn6QYsQZJYMxUow7E6SYdKbIYJoUP50ZUsw6c2QwTy7AL/gNf2ARlmAZVmAV1mAd/sI/2IBN2IJt2IFd2IN9+A8HcAhHcAwncApncA4XcAlXcA03cAt3cA8P8AhP8PwCakcyvVVFagcAAAAASUVORK5CYII=\");\n\t\t\t\tbackground-size: cover;\n\t\t\t\tbackground-repeat: repeat-x;\n\t\t\t\tbackground-position: bottom;\n\t\t\t\tbackground-size: contain;\n\t\t\t\theight: calc(var(--ytd-watch-flexy-max-player-height) / 2.5);\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-control-bar::before {\n\t\t\t\tdisplay: none;\n\t\t\t\tcontent: none;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu .vjs-icon-placeholder {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu .vjs-menu-content > * {\n\t\t\t\tpadding-top: 8px !important;\n\t\t\t\tpadding-bottom: 8px !important;\n\t\t\t\tpadding-left: 12px !important;\n\t\t\t\tpadding-right: 12px !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu {\n\t\t\t\theight: auto !important;\n\t\t\t\tbottom: 48px !important;\n\t\t\t\tpadding-bottom: 0 !important;\n\t\t\t\tmargin-bottom: 0 !important;\n\t\t\t\twidth: auto !important;\n\t\t\t\ttransform: translateX(-50%) !important;\n\t\t\t\tleft: 50% !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu .vjs-menu-content {\n\t\t\t\tposition: static !important;\n\t\t\t\tborder-radius: 4px !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-control {\n\t\t\t\theight: 100% !important;\n\t\t\t\tdisplay: flex !important;\n\t\t\t\talign-items: center !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-vtt-thumbnail-display {\n\t\t\t\tbottom: calc(100% + 35px) !important;\n\t\t\t\tborder-radius: 12px !important;\n\t\t\t\toverflow: hidden !important;\n\t\t\t\tborder: 2px solid #ffffff !important;\n\t\t\t\tbackground-color: #000000 !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar .vjs-icon-placeholder {\n\t\t\t\theight: 100%;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control {\n\t\t\t\tmin-width: 48px !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1:not(goodTube_mobile) .video-js .vjs-control-bar > .vjs-play-control {\n\t\t\t\tpadding-left: 8px;\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-control:not(.vjs-progress-control) {\n\t\t\t\tmin-width: 0 !important;\n\t\t\t\tflex-grow: 1 !important;\n\t\t\t\tmax-width: 9999px !important;\n\t\t\t\tpadding-left: 0 !important;\n\t\t\t\tpadding-right: 0 !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-control.vjs-volume-panel,\n\t\t\t#goodTube_player_wrapper1.goodTube_miniplayer #goodTube_player_wrapper3 .video-js .vjs-control.vjs-volume-panel {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar .vjs-icon-placeholder::before {\n\t\t\t\theight: auto;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tfont-size: 24px;\n\t\t\t\tline-height: 100%;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar *:not(.vjs-time-control) {\n\t\t\t\ttext-shadow: none !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-vtt-thumbnail-time {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-playback-rate .vjs-playback-rate-value {\n\t\t\t\tline-height: 48px;\n\t\t\t\tfont-size: 14px !important;\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\n\t\t\t.video-js .vjs-play-progress .vjs-time-tooltip {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-mouse-display .vjs-time-tooltip {\n\t\t\t\tbackground: none !important;\n\t\t\t\tfont-size: 12px !important;\n\t\t\t\ttop: -50px !important;\n\t\t\t\ttext-shadow: 0 0 10px rgba(0, 0, 0, .5) !important;\n\t\t\t\tfont-family: \"YouTube Noto\", Roboto, Arial, Helvetica, sans-serif !important;\n\t\t\t\tfont-weight: 500 !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu-content {\n\t\t\t\tmax-height: calc(var(--ytd-watch-flexy-panel-max-height) - 72px) !important;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-menu-content {\n\t\t\t\tmax-height: 156px !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar::-webkit-scrollbar {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t.video-js .vjs-icon-cog {\n\t\t\t\tfont-size: 18px;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar,\n\t\t\t.video-js .vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n\t\t\t\tbackground-color: rgba(35, 35, 35, 0.75);\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu li.vjs-menu-item:not(.vjs-selected) {\n\t\t\t\tbackground-color: transparent !important;\n\t\t\t\tcolor: #ffffff !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu li.vjs-menu-item:not(.vjs-selected):hover {\n\t\t\t\tbackground-color: rgba(255, 255, 255, 0.75) !important;\n\t\t\t\tcolor: rgba(49, 49, 51, 0.75) !important;\n\t\t\t\tcolor: #ffffff !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu li.vjs-selected,\n\t\t\t.video-js .vjs-menu li.vjs-selected:hover {\n\t\t\t\tbackground-color: #ffffff !important;\n\t\t\t\tcolor: #000000 !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu li {\n\t\t\t\twhite-space: nowrap !important;\n\t\t\t\tfont-size: 12px !important;\n\t\t\t\tfont-weight: 700 !important;\n\t\t\t\tmax-width: 9999px !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-subs-caps-button .vjs-menu li {\n\t\t\t\twhite-space: normal !important;\n\t\t\t\tmin-width: 128px !important;\n\t\t\t}\n\n\t\t\t/* Progress Bar */\n\t\t\t.video-js .vjs-slider {\n\t\t\t\tbackground-color: rgba(15, 15, 15, 0.5);\n\t\t\t}\n\n\t\t\t.video-js .vjs-load-progress,\n\t\t\t.video-js .vjs-load-progress div {\n\t\t\t\tbackground: rgba(87, 87, 88, 1);\n\t\t\t}\n\n\t\t\t.video-js .vjs-slider:hover,\n\t\t\t.video-js button:hover {\n\t\t\t\tcolor: #ffffff;\n\t\t\t}\n\n\t\t\t/* Overlay */\n\t\t\t.video-js .vjs-overlay {\n\t\t\t\tbackground-color: rgba(35, 35, 35, 0.75) !important;\n\t\t\t}\n\t\t\t.video-js .vjs-overlay * {\n\t\t\t\tcolor: rgba(255, 255, 255, 1) !important;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\n\t\t\t/* ProgressBar marker */\n\t\t\t.video-js .vjs-marker {\n\t\t\t\tbackground-color: rgba(255, 255, 255, 1);\n\t\t\t\tz-index: 0;\n\t\t\t}\n\n\t\t\t/* Big \"Play\" Button */\n\t\t\t.video-js .vjs-big-play-button {\n\t\t\t\tbackground-color: rgba(35, 35, 35, 0.5);\n\t\t\t}\n\n\t\t\t.video-js:hover .vjs-big-play-button {\n\t\t\t\tbackground-color: rgba(35, 35, 35, 0.75);\n\t\t\t}\n\n\t\t\t.video-js .vjs-current-time,\n\t\t\t.video-js .vjs-time-divider,\n\t\t\t.video-js .vjs-duration {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t.video-js .vjs-time-divider {\n\t\t\t\tmin-width: 0px;\n\t\t\t\tpadding-left: 0px;\n\t\t\t\tpadding-right: 0px;\n\t\t\t}\n\n\t\t\t.video-js .vjs-poster {\n\t\t\t\tbackground-size: cover;\n\t\t\t\tobject-fit: cover;\n\t\t\t}\n\n\t\t\t.video-js .player-dimensions.vjs-fluid {\n\t\t\t\tpadding-top: 82vh;\n\t\t\t}\n\n\t\t\tvideo.video-js {\n\t\t\t\tposition: absolute;\n\t\t\t\theight: 100%;\n\t\t\t}\n\n\t\t\t.video-js .mobile-operations-bar {\n\t\t\t\tdisplay: flex;\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tright: 1px !important;\n\t\t\t\tleft: initial !important;\n\t\t\t\twidth: initial !important;\n\t\t\t}\n\n\t\t\t.video-js .mobile-operations-bar ul {\n\t\t\t\tposition: absolute !important;\n\t\t\t\tbottom: unset !important;\n\t\t\t\ttop: 1.5em;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu-button-popup .vjs-menu {\n\t\t\t\tborder: 0 !important;\n\t\t\t\tpadding-bottom: 12px !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu li.vjs-menu-item:not(.vjs-selected):hover,\n\t\t\t.video-js .vjs-menu li.vjs-menu-item.vjs-auto-selected {\n\t\t\t\tbackground-color: rgba(255, 255, 255, .2) !important;\n\t\t\t\tcolor: #ffffff !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu * {\n\t\t\t\tborder: 0 !important;\n\t\t\t}\n\n\t\t\t/* Tooltips\n\t\t\t------------------------------------------------------------------------------------------ */\n\t\t\t.video-js .vjs-control-bar > .vjs-prev-button::before {\n\t\t\t\tcontent: 'Previous video';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-next-button::before {\n\t\t\t\tcontent: 'Next video';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar .vjs-mute-control:not(.vjs-vol-0)::before {\n\t\t\t\tcontent: 'Mute (m)';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar .vjs-mute-control.vjs-vol-0::before {\n\t\t\t\tcontent: 'Unmute (m)';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-playback-rate > .vjs-menu-button::before {\n\t\t\t\tcontent: 'Playback speed';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-subs-caps-button > .vjs-menu-button::before {\n\t\t\t\tcontent: 'Subtitles';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-quality-selector > .vjs-menu-button::before {\n\t\t\t\tcontent: 'Quality';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-download-button > .vjs-menu-button::before {\n\t\t\t\tcontent: 'Download';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-autoplay-button > .vjs-menu-button::before {\n\t\t\t\tcontent: 'Autoplay';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-source-button > .vjs-menu-button::before {\n\t\t\t\tcontent: 'Video source';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-miniplayer-button::before {\n\t\t\t\tcontent: 'Miniplayer (i)';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-theater-button::before {\n\t\t\t\tcontent: 'Theater mode (t)';\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar > .vjs-fullscreen-control::before {\n\t\t\t\tcontent: 'Fullscreen (f)';\n\t\t\t\tleft: auto !important;\n\t\t\t\tright: 12px !important;\n\t\t\t\ttransform: none !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar button.vjs-menu-button::before,\n\t\t\t.video-js .vjs-control-bar .vjs-button:not(.vjs-menu-button)::before {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: -40px;\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tbackground: rgba(0, 0, 0, .75);\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-weight: 600;\n\t\t\t\tpadding: 8px;\n\t\t\t\twhite-space: nowrap;\n\t\t\t\topacity: 0;\n\t\t\t\ttransition: opacity .1s;\n\t\t\t\tpointer-events: none;\n\t\t\t\ttext-shadow: none !important;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-control-bar button.vjs-menu-button::before,\n\t\t\t#goodTube_player_wrapper1.goodTube_mobile .video-js .vjs-control-bar .vjs-button:not(.vjs-menu-button)::before {\n\t\t\t\tdisplay: none !important;\n\t\t\t\tcontent: none !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-control-bar div.vjs-menu-button:not(.vjs-menuOpen) button.vjs-menu-button:hover::before,\n\t\t\t.video-js .vjs-control-bar .vjs-button:not(.vjs-menu-button):hover::before {\n\t\t\t\topacity: 1;\n\t\t\t}\n\n\t\t\t.video-js div.vjs-menu-button:not(.vjs-menuOpen) .vjs-menu {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t.video-js div.vjs-menu-button.vjs-menuOpen .vjs-menu {\n\t\t\t\tdisplay: block !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-menu {\n\t\t\t\tz-index: 999 !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-big-play-button {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t.video-js .vjs-volume-panel,\n\t\t\t.video-js .vjs-button {\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t.video-js .vjs-button.vjs-menuOpen {\n\t\t\t\tz-index: 999;\n\t\t\t}\n\n\t\t\t.video-js .vjs-error-display .vjs-modal-dialog-content {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\t.video-js:not(.vjs-has-started) .vjs-control-bar {\n\t\t\t\tdisplay: flex !important;\n\t\t\t}\n\n\t\t\t.vjs-track-settings-controls button:hover {\n\t\t\t\tcolor: #000000 !important;\n\t\t\t}\n\t\t",document.body.appendChild(t)})(),Mt=r();const t=videojs.getComponent("MenuItem"),l=videojs.getComponent("MenuButton");class s extends l{createItems(){const e=[],{myItems:o}=this.options_;return Array.isArray(o),o.forEach((({clickHandler:o,...n})=>{const r=new t(this.player(),n);o&&(r.handleClick=o),e.push(r)})),e}buildCSSClass(){return`${super.buildCSSClass()}`}}videojs.registerComponent("DownloadButton",s),videojs.registerComponent("SourceButton",s),videojs.registerComponent("AutoplayButton",s);const d=videojs.getComponent("Button");class u extends d{handleClick(t){t.stopImmediatePropagation(),Wt()}}videojs.registerComponent("PrevButton",u);class p extends d{handleClick(t){t.stopImmediatePropagation(),Yt(!0)}}videojs.registerComponent("NextButton",p);class c extends d{handleClick(t){t.stopImmediatePropagation(),at()}}videojs.registerComponent("MiniplayerButton",c);class y extends d{handleClick(t){t.stopImmediatePropagation(),function(t){let e=!1,o=!1,n=!1;if("next"===t)e="n",o=78,n=!0;else if("prev"===t)e="p",o=80,n=!0;else if("theater"===t){e="t",o=84,n=!1;let t=document.querySelector(".ytp-size-button");if(t)return void t.click()}else{if("fullscreen"!==t)return;e="f",o=70,n=!1}let r=!1;r=new window.KeyboardEvent("focus",{bubbles:!0,key:e,keyCode:o,shiftKey:n,charCode:0}),document.dispatchEvent(r),r=new window.KeyboardEvent("keydown",{bubbles:!0,key:e,keyCode:o,shiftKey:n,charCode:0}),document.dispatchEvent(r),r=new window.KeyboardEvent("beforeinput",{bubbles:!0,key:e,keyCode:o,shiftKey:n,charCode:0}),document.dispatchEvent(r),r=new window.KeyboardEvent("keypress",{bubbles:!0,key:e,keyCode:o,shiftKey:n,charCode:0}),document.dispatchEvent(r),r=new window.KeyboardEvent("input",{bubbles:!0,key:e,keyCode:o,shiftKey:n,charCode:0}),document.dispatchEvent(r),r=new window.KeyboardEvent("change",{bubbles:!0,key:e,keyCode:o,shiftKey:n,charCode:0}),document.dispatchEvent(r),r=new window.KeyboardEvent("keyup",{bubbles:!0,key:e,keyCode:o,shiftKey:n,charCode:0}),document.dispatchEvent(r)}("theater")}}videojs.registerComponent("TheaterButton",y);let g=[];Ut.forEach((t=>{g.push({label:t.name,clickHandler(t){t.target.closest(".vjs-menu").querySelectorAll(".vjs-selected").forEach((t=>{t.classList.remove("vjs-selected")}));let e=t.target.closest(".vjs-menu-item");e.classList.add("vjs-selected"),"automatic"===e.getAttribute("api")&&(D=0),Ct.currentTime>0&&(v=Ct.currentTime),R(e.getAttribute("api"),!0)}})})),it=videojs("goodTube_player",{inactivityTimeout:3e3,controls:!0,autoplay:!1,preload:"auto",width:"100%",height:"100%",playbackRates:[.25,.5,1,1.25,1.5,1.75,2],userActions:{doubleClick:!1},html5:{vhs:{overrideNative:!0},hls:{overrideNative:!0}},controlBar:{children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","playbackRateMenuButton","subsCapsButton","qualitySelector","fullscreenToggle"],NextButton:{className:"vjs-next-button"},PrevButton:{className:"vjs-prev-button"},AutoplayButton:{controlText:"Autoplay",className:"vjs-autoplay-button",myItems:[{label:"Autoplay off",clickHandler(){let t=event.target.closest(".vjs-menu");t.querySelector(".vjs-selected")?.classList.remove("vjs-selected"),event.target.closest(".vjs-menu-item").classList.add("vjs-selected"),a("goodTube_autoplay","off")}},{label:"Autoplay on",clickHandler(){let t=event.target.closest(".vjs-menu");t.querySelector(".vjs-selected")?.classList.remove("vjs-selected"),event.target.closest(".vjs-menu-item").classList.add("vjs-selected"),a("goodTube_autoplay","on")}}]},SourceButton:{controlText:"Video source",className:"vjs-source-button",myItems:g},DownloadButton:{controlText:"Download",className:"vjs-download-button",myItems:[{className:"goodTube_downloadPlaylist_cancel",label:"CANCEL ALL DOWNLOADS",clickHandler(){!function(){if(!confirm("Are you sure you want to cancel all downloads?"))return;zt=[];for(let t in Qt)clearTimeout(Qt[t]),delete Qt[t];kt(!0),n&&console.log("[GoodTube] Downloads cancelled")}()}},{label:"Download video",clickHandler(){zt[Mt.v]=!0,Xt(0,"video",Mt.v)}},{label:"Download audio",clickHandler(){zt[Mt.v]=!0,Xt(0,"audio",Mt.v)}},{className:"goodTube_downloadPlaylist_video",label:"Download playlist (video)",clickHandler(){Zt("video")}},{className:"goodTube_downloadPlaylist_audio",label:"Download playlist (audio)",clickHandler(){Zt("audio")}}]},MiniplayerButton:{className:"vjs-miniplayer-button"},TheaterButton:{className:"vjs-theater-button"}}}),videojs.log.level("off"),videojs.hook("error",(function(){void 0!==b.reloadVideo&&clearTimeout(b.reloadVideo),b.reloadVideo=setTimeout((function(){!function(t){if(void 0===Mt.v)return;void 0!==b.reloadVideo&&clearTimeout(b.reloadVideo);if(j>o)return void wt();let e=t.src;tt(t),setTimeout((function(){t.setAttribute("src",e)}),0),j++}(Ct)}),e),et(),Tt()})),it.on("ready",(function(){lt=!0;let t=document.querySelector("#goodTube_player video");t&&(t.setAttribute("playsinline",""),t.setAttribute("webkit-playsinline","")),m(),vt=it.hlsQualitySelector();let e=document.querySelector("#goodTube_player");if(e){let t=document.createElement("div");t.id="goodTube_miniplayer_closeButton",t.onclick=function(){at()},e.appendChild(t);let o=document.createElement("div");o.id="goodTube_miniplayer_expandButton",o.onclick=function(){k!==Mt.v?window.location.href="/watch?v="+k+"&t="+parseFloat(Ct.currentTime).toFixed(0)+"s":at()},e.appendChild(o)}if(n&&console.log("[GoodTube] Player loaded"),Ct=document.querySelector("#goodTube_player video"),Bt){let t=document.createElement("div");t.id="goodTube_seekBackwards",e.append(t),t.onclick=function(){var t=(new Date).getTime()-pt;t<400&&t>0?(e.classList.remove("vjs-user-active"),e.classList.add("vjs-user-inactive"),Ct.currentTime-=10):e.classList.contains("vjs-user-active")?(e.classList.remove("vjs-user-active"),e.classList.add("vjs-user-inactive")):(e.classList.add("vjs-user-active"),e.classList.remove("vjs-user-inactive")),pt=(new Date).getTime()};let o=document.createElement("div");o.id="goodTube_seekForwards",e.append(o),o.onclick=function(){var t=(new Date).getTime()-ct;t<400&&t>0?(e.classList.remove("vjs-user-active"),e.classList.add("vjs-user-inactive"),Ct.currentTime+=5):e.classList.contains("vjs-user-active")?(e.classList.remove("vjs-user-active"),e.classList.add("vjs-user-inactive")):(e.classList.add("vjs-user-active"),e.classList.remove("vjs-user-inactive")),ct=(new Date).getTime()},e.addEventListener("touchstart",(function(t){mt=setTimeout((function(){e.classList.remove("vjs-user-active"),e.classList.add("vjs-user-inactive"),_t=Ct.playbackRate,Ct.playbackRate=2,bt=!0}),1e3)})),["touchmove","touchend"].forEach((t=>{e.addEventListener(t,(function(t){mt&&clearTimeout(mt),bt&&(Ct.playbackRate=_t,bt=!1)}))}))}Bt||e.addEventListener("dblclick",(function(t){t.target.closest(".vjs-progress-control")||t.target.closest(".vjs-menu-button")||t.target.closest(".vjs-control")||document.querySelector(".vjs-fullscreen-control")?.click()})),Bt&&setInterval((function(){let t=document.querySelector(".vjs-current-time"),e=document.querySelector(".vjs-time-divider"),o=document.querySelector(".vjs-duration");if(t&&e&&o){let n=16,r=4;t.style.left=n+"px",e.style.left=n+t.offsetWidth+r+"px",o.style.left=n+t.offsetWidth+e.offsetWidth+r+r+"px"}}),100),Bt||(e.addEventListener("mouseout",(function(t){e.classList.contains("vjs-user-active")&&!e.classList.contains("vjs-paused")&&(e.classList.remove("vjs-user-active"),e.classList.add("vjs-user-inactive"))})),e.addEventListener("mouseover",(function(t){e.classList.contains("vjs-user-inactive")&&!e.classList.contains("vjs-paused")&&(e.classList.add("vjs-user-active"),e.classList.remove("vjs-user-inactive"))})),e.addEventListener("click",(function(t){setTimeout((function(){e.classList.contains("vjs-user-inactive")&&!e.classList.contains("vjs-paused")&&(e.classList.add("vjs-user-active"),e.classList.remove("vjs-user-inactive"),window.goodTube_inactive_timeout=setTimeout((function(){e.classList.contains("vjs-user-active")&&!e.classList.contains("vjs-paused")&&(e.classList.remove("vjs-user-active"),e.classList.add("vjs-user-inactive"))}),3e3))}),1)})),e.addEventListener("mousemove",(function(t){void 0!==window.goodTube_inactive_timeout&&clearTimeout(window.goodTube_inactive_timeout)}))),document.querySelectorAll("#goodTube_player button").forEach((t=>{t.setAttribute("title","")}));let o=i("goodTube_volume");o&&o==parseFloat(o)&&G(Ct,o),i("goodTube_autoplay")||a("goodTube_autoplay","on");let r=document.querySelector(".vjs-autoplay-button");if(r){r.querySelector(".vjs-menu .vjs-selected")?.classList.remove("vjs-selected");let t=r.querySelectorAll(".vjs-menu .vjs-menu-item");"on"===i("goodTube_autoplay")?t[t.length-1].classList.add("vjs-selected"):t[0].classList.add("vjs-selected")}let l=document.querySelector(".vjs-mute-control");l&&(l.onmousedown=function(){Ct.muted?it.muted(!1):it.muted(!0)},l.ontouchstart=function(){Ct.muted?it.muted(!1):it.muted(!0)});let s=document.querySelector(".vjs-play-control");s&&(s.removeEventListener("click",jt,!1),s.addEventListener("click",jt,!1)),document.onmousedown=function(){if(!event.target.closest(".vjs-menu")&&!event.target.closest(".vjs-menu-button")){document.querySelectorAll(".vjs-menuOpen").forEach((t=>{t.classList.remove("vjs-menuOpen")}))}},document.ontouchstart=function(){if(!event.target.closest(".vjs-menu")&&!event.target.closest(".vjs-menu-button")){document.querySelectorAll(".vjs-menuOpen").forEach((t=>{t.classList.remove("vjs-menuOpen")}))}};let d=document.querySelector(".vjs-control-bar .vjs-play-control");d&&(d.onclick=function(){0===Ct.currentTime&&Ct.click()},d.ontouchstart=function(){0===Ct.currentTime&&Ct.click()});let u=document.querySelectorAll(".vjs-source-button .vjs-menu .vjs-menu-item");if(u){let t=0;u.forEach((e=>{e.setAttribute("api",Ut[t].url),t++}))}if(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document){let t=document.querySelector(".vjs-download-button");t&&t.remove()}R(i("goodTube_api_withauto"),!1),Tt()})),it.on("seeking",(function(){ht=!0})),it.on("seeked",(function(){ht=!1,m()})),it.on("waiting",(function(){if(yt&&clearTimeout(yt),!(Ct.currentTime<=0)){if(!ht&&(ft++,ft>=3))return n&&console.log("[GoodTube] Video buffering too often - selecting next video source..."),ft=0,v=Ct.currentTime,void R("automatic",!0);if(2===Vt||3===Vt){let t=Ct.currentTime;yt=setTimeout((function(){Ct.currentTime===t&&(n&&console.log("[GoodTube] Video not loading fast enough - selecting next video source..."),v=Ct.currentTime,R("automatic",!0))}),15e3)}}})),document.addEventListener("keydown",(function(t){if(27==t.keyCode){document.querySelectorAll(".vjs-menuOpen").forEach((t=>{t.classList.remove("vjs-menuOpen")}))}}),!0),it.on("loadedmetadata",(function(){if(gt&&clearTimeout(gt),void 0!==Mt.t){let t=Mt.t.replace("s","");P(Ct,t)}v>0&&P(Ct,v),Ct.focus()})),it.on("loadstart",(function(){if(gt&&clearTimeout(gt),gt=setTimeout((function(){n&&console.log("[GoodTube] Video not loading fast enough - selecting next video source..."),R("automatic",!0)}),15e3),Ct.classList.remove("goodTube_hidden"),1===Vt){let t="",e=document.querySelector(".vjs-quality-selector .vjs-menu .vjs-selected .vjs-menu-item-text");t=e?e.innerHTML:Ct.querySelector("source[selected=true]").getAttribute("label");let o=t.replace("p","").replace("hd","").replace(" ","").toLowerCase();parseFloat(L)!==parseFloat(o)&&(A=o,L=o);let r=document.querySelector("#goodTube_player_wrapper3");"audio"===o?r.classList.contains("goodTube_audio")||r.classList.add("goodTube_audio"):r.classList.contains("goodTube_audio")&&r.classList.remove("goodTube_audio"),n&&j<=1&&console.log("[GoodTube] Loading quality "+t+"...")}else if(2===Vt||3===Vt){let t=document.querySelector("#goodTube_player_wrapper3");t.classList.contains("goodTube_audio")&&t.classList.remove("goodTube_audio"),n&&j<=1&&console.log("[GoodTube] Loading qualities...")}})),it.on("loadeddata",(function(){ft=0,Ct.paused||I(Ct),j=1,void 0!==b.reloadVideo&&clearTimeout(b.reloadVideo),n&&(1===Vt?console.log("[GoodTube] Quality loaded"):2!==Vt&&3!==Vt||console.log("[GoodTube] Qualities loaded")),Tt(),ot()})),it.on("ended",(function(){T=!0,m(),Yt()})),it.on("volumechange",(function(){let t=Ct.volume;Ct.muted&&(t=0),a("goodTube_volume",t)}))}(),function(){let t=document.createElement("div");t.classList.add("goodTube_defaultQualityModal"),t.innerHTML="\n\t\t\t<div class='goodTube_defaultQualityModal_overlay'></div>\n\n\t\t\t<div class='goodTube_defaultQualityModal_inner'>\n\t\t\t\t<div class='goodTube_defaultQualityModal_title'>Select default quality</div>\n\t\t\t\t<div class='goodTube_defaultQualityModal_options'>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_4320'>4320p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_2160'>2160p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_1440'>1440p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_1080'>1080p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_720'>720p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_480'>480p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_360'>360p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_240'>240p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_144'>144p</div>\n\t\t\t\t\t<div class='goodTube_defaultQualityModal_option' id='goodTube_defaultQualityModal_option_auto'>Auto</div>\n\t\t\t\t</div> \x3c!-- .goodTube_defaultQualityModal_inner --\x3e\n\t\t\t</div> \x3c!-- .goodTube_defaultQualityModal_options --\x3e\n\t\t",document.querySelector("#goodTube_player_wrapper3 .video-js").appendChild(t),document.querySelectorAll(".goodTube_defaultQualityModal .goodTube_defaultQualityModal_option").forEach((t=>{t.addEventListener("click",(function(){N(this.innerHTML.replace("p",""))}))})),document.querySelector(".goodTube_defaultQualityModal .goodTube_defaultQualityModal_overlay").addEventListener("click",(function(){let t=document.querySelector(".goodTube_defaultQualityModal");t.classList.contains("goodTube_defaultQualityModal_visible")&&t.classList.remove("goodTube_defaultQualityModal_visible")})),document.addEventListener("keydown",(function(t){if(27==t.keyCode){let t=document.querySelector(".goodTube_defaultQualityModal");t.classList.contains("goodTube_defaultQualityModal_visible")&&t.classList.remove("goodTube_defaultQualityModal_visible")}}),!0)}(),setInterval(m,1e4),document.addEventListener("keydown",(function(t){if(t.ctrlKey||void 0===Mt.v)return;let e=t.srcElement,o=!1,n=!1;if(e&&(void 0!==e.nodeName&&(o=e.nodeName.toLowerCase()),void 0!==e.getAttribute&&(n=e.getAttribute("id"))),!e||-1===o.indexOf("input")&&-1===o.indexOf("label")&&-1===o.indexOf("select")&&-1===o.indexOf("textarea")&&-1===o.indexOf("fieldset")&&-1===o.indexOf("legend")&&-1===o.indexOf("datalist")&&-1===o.indexOf("output")&&-1===o.indexOf("option")&&-1===o.indexOf("optgroup")&&"contenteditable-root"!==n){let o=t.key.toLowerCase();">"===o?.25==parseFloat(p.playbackRate)?p.playbackRate=.5:.5==parseFloat(p.playbackRate)?p.playbackRate=.75:.75==parseFloat(p.playbackRate)?p.playbackRate=1:1==parseFloat(p.playbackRate)?p.playbackRate=1.25:1.25==parseFloat(p.playbackRate)?p.playbackRate=1.5:1.5==parseFloat(p.playbackRate)?p.playbackRate=1.75:1.75==parseFloat(p.playbackRate)&&(p.playbackRate=2):"<"===o&&(.5==parseFloat(p.playbackRate)?p.playbackRate=.25:.75==parseFloat(p.playbackRate)?p.playbackRate=.5:1==parseFloat(p.playbackRate)?p.playbackRate=.75:1.25==parseFloat(p.playbackRate)?p.playbackRate=1:1.5==parseFloat(p.playbackRate)?p.playbackRate=1.25:1.75==parseFloat(p.playbackRate)?p.playbackRate=1.5:2==parseFloat(p.playbackRate)&&(p.playbackRate=1.75)),t.shiftKey||(e&&void 0!==e.closest&&e.closest("#goodTube_player")&&("arrowdown"===o&&(p.volume>=.05?p.volume-=.05:p.volume=0,t.preventDefault()),"arrowup"===o&&(p.volume<=.95?p.volume+=.05:p.volume=1,t.preventDefault()),"t"===o&&document.querySelector("body").focus()),"arrowleft"===o&&(p.currentTime-=5),"arrowright"===o&&(p.currentTime+=5)," "===o&&(p.paused||p.ended?p.play():p.pause()),"m"===o&&(p.muted||p.volume<=0?(p.muted=!1,p.volume<=0&&(p.volume=1)):p.muted=!0),"i"===o&&(t.stopImmediatePropagation(),at()),"f"===o?document.querySelector(".vjs-fullscreen-control")?.click():"j"===o?p.currentTime-=10:"l"===o?p.currentTime+=10:"home"===o?p.currentTime=0:"end"===o&&(p.currentTime+=p.duration),"0"===o?p.currentTime=0:"1"===o?p.currentTime=p.duration/100*10:"2"===o?p.currentTime=p.duration/100*20:"3"===o?p.currentTime=p.duration/100*30:"4"===o?p.currentTime=p.duration/100*40:"5"===o?p.currentTime=p.duration/100*50:"6"===o?p.currentTime=p.duration/100*60:"7"===o?p.currentTime=p.duration/100*70:"8"===o?p.currentTime=p.duration/100*80:"9"===o&&(p.currentTime=p.duration/100*90))}}),!0),Bt&&G(Ct,1)}function z(){n&&console.log("[GoodTube] Loading player assets..."),h=0,B(y[g])}function B(r){h++,h>o?n&&console.log("[GoodTube] Player assets could not be loaded"):fetch(r).then((t=>t.text())).then((e=>{let o=!1;-1!==r.indexOf("/js/")?o=document.createElement("script"):-1!==r.indexOf("/css/")&&(o=document.createElement("style")),o.innerHTML=e,document.head.appendChild(o),g++,g>=y.length?(n&&console.log("[GoodTube] Player assets loaded"),function(){if(At)return;const e=t+"/goodtube.user.js?i"+Date.now();n&&console.log("[GoodTube] Checking for updates...");fetch(e).then((t=>t.text())).then((t=>{const o=t.match(/@version\s+(\d+\.\d+)/);if(!o)return;const r=parseFloat(GM_info.script.version),a=parseFloat(o[1]);if(a<=r)return void(n&&console.log("[GoodTube] No updates found"));if(parseFloat(localStorage.getItem("goodTube_stopUpdates"))===a)return;let i=document.createElement("style");i.textContent="\n\t\t\t\thtml body .swal2-container {\n\t\t\t\t\tz-index: 2400;\n\t\t\t\t}\n\n\t\t\t\thtml body .swal2-title {\n\t\t\t\t\tfont-size: 18px;\n\t\t\t\t}\n\n\t\t\t\thtml body .swal2-html-container {\n\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\tmargin-top: 8px;\n\t\t\t\t\tmargin-bottom: 12px;\n\t\t\t\t}\n\n\t\t\t\thtml body .swal2-actions {\n\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-wrap: wrap;\n\t\t\t\t\tgap: 8px;\n\t\t\t\t}\n\n\t\t\t\thtml body .swal2-actions button {\n\t\t\t\t\tmargin: 0 !important;\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t}\n\t\t\t",document.head.appendChild(i),Swal.fire({position:"top-end",backdrop:!1,title:"GoodTube: a new version is available.",text:"Do you want to update?",showCancelButton:!0,showDenyButton:!0,confirmButtonText:"Update",denyButtonText:"Skip",cancelButtonText:"Close"}).then((t=>{t.isConfirmed?window.location=e:t.isDenied&&localStorage.setItem("goodTube_stopUpdates",a)})),n&&console.log("[GoodTube] New version found - "+a)})).catch((t=>{At=!0})),At=!0}()):(h=0,B(y[g]))})).catch((t=>{void 0!==b.loadAsset&&clearTimeout(b.loadAsset),b.loadAsset=setTimeout((function(){B(r)}),e)}))}let D=0;function R(t,e){let o=document.querySelector(".vjs-source-button .vjs-menu");if(o.querySelectorAll(".vjs-selected").forEach((t=>{t.classList.remove("vjs-selected")})),"automatic"===t){if(D++,void 0===Ut[D])return void wt();Vt=Ut[D].type,Ht=Ut[D].proxy,Nt=Ut[D].url,Jt=Ut[D].name,a("goodTube_api_withauto",t);let e=document.querySelector("#goodTube_player_wrapper1");e.classList.contains("goodTube_automaticServer")||e.classList.add("goodTube_automaticServer");let n=o.querySelector("ul li:first-child");n.classList.contains("vjs-selected")||n.classList.add("vjs-selected")}else{Ut.forEach((e=>{t==e.url&&(Vt=e.type,Ht=e.proxy,Nt=e.url,Jt=e.name,a("goodTube_api_withauto",t))}));let e=document.querySelector("#goodTube_player_wrapper1");e.classList.contains("goodTube_automaticServer")&&e.classList.remove("goodTube_automaticServer"),D=0}o.querySelectorAll("ul li").forEach((t=>{t.getAttribute("api")==Nt&&t.classList.add("vjs-selected")})),e&&function(){n&&(console.log("\n-------------------------\n\n"),console.log("[GoodTube] Loading video data from "+Jt+"..."));let t=0;Bt&&(t=400);setTimeout((function(){f=0,F(Ct)}),t)}()}function O(t){t.pause()}function I(t){t.play()}function G(t,e){t.volume=e}function P(t,e){t.currentTime=e}function F(t){if(void 0===Mt.v)return void(st=[]);if(j=1,void 0!==b.reloadVideo&&clearTimeout(b.reloadVideo),void 0!==b.loadVideoData&&clearTimeout(b.loadVideoData),tt(t),et(),f++,f>o)return void wt();t.querySelectorAll("source").forEach((t=>{t.remove()}));let r=!1;1===Vt||2===Vt?r=Nt+"/api/v1/videos/"+Mt.v:3===Vt&&(r=Nt+"/streams/"+Mt.v),fetch(r,{signal:AbortSignal.timeout(5e3)}).then((t=>t.text())).then((o=>{et();let r=JSON.parse(o),a=!1,i=!1,l=!1,s=!1,d=!1,u=!1,p=!1;if(1===Vt?void 0===r.formatStreams?p=!0:(a=r.formatStreams,i=r.captions,l=r.storyboards,d=r.description,u=r.lengthSeconds,s=!1):2===Vt?void 0===r.dashUrl&&void 0===r.hlsUrl?p=!0:(a=!1,i=r.captions,l=r.storyboards,d=r.description,u=r.lengthSeconds,s=!1):3===Vt&&(void 0===r.hls&&void 0===r.dash?p=!0:(i=!1,l=!1,d=r.description.replace(/<br>/g,"\r\n").replace(/<[^>]*>?/gm,""),u=r.duration,void 0!==r.chapters&&r.chapters.length&&r.chapters.length>0&&(s=[],r.chapters.forEach((t=>{s.push({time:parseFloat(t.start),title:t.title})}))))),p)return void 0!==b.loadVideoData&&clearTimeout(b.loadVideoData),b.loadVideoData=setTimeout((function(){F(t)}),e),void et();if(n&&console.log("[GoodTube] Video data loaded"),1===Vt){A&&t.querySelector(".goodTube_source_"+A)?(t.querySelector(".goodTube_source_"+A).setAttribute("selected",!0),L=A):(t.querySelector(".goodTube_source_"+S)?.setAttribute("selected",!0),L=S);let e=document.createElement("source");e.setAttribute("src",Nt+"/watch?v="+Mt.v+"&raw=1&listen=1"),e.setAttribute("type","audio/mp3"),e.setAttribute("label","Audio"),e.setAttribute("video",!0),e.setAttribute("class","goodTube_source_audio"),t.appendChild(e);let o=0;S=!1,a.forEach((e=>{let n=!1,r=!1,a=!1,i=!1;if(n=Nt+"/latest_version?id="+Mt.v+"&itag="+e.itag,Ht&&(n+="&local=true"),r=e.type,a=parseFloat(e.resolution.replace("p","").replace("hd",""))+"p",i=parseFloat(e.resolution.replace("p","").replace("hd","")),n&&r&&a&&-1!==r.toLowerCase().indexOf("video")){let e=document.createElement("source");e.setAttribute("src",n),e.setAttribute("type",r),e.setAttribute("label",a),e.setAttribute("video",!0),e.setAttribute("class","goodTube_source_"+i),t.appendChild(e),(!S||i>S)&&(S=i)}o++})),A&&t.querySelector(".goodTube_source_"+A)?(t.querySelector(".goodTube_source_"+A).setAttribute("selected",!0),L=A):(t.querySelector(".goodTube_source_"+S)?.setAttribute("selected",!0),L=S);let n=[];t.querySelectorAll("source[video=true]").forEach((t=>{n.push({src:t.getAttribute("src"),type:t.getAttribute("type"),label:t.getAttribute("label"),selected:t.getAttribute("selected")})})),it.src(n);let r=document.querySelectorAll(".vjs-quality-selector");2===r.length&&(r[1].style.display="none",r[0].style.display="block")}else if(2===Vt){let t=!1,e=!1,o="false";Ht&&(o="true"),void 0!==r.hlsUrl&&r.hlsUrl?(t=r.hlsUrl+"?local="+o+"&amp;unique_res=1",e="application/x-mpegURL"):void 0!==r.dashUrl&&r.dashUrl&&(t=r.dashUrl+"?local="+o+"&amp;unique_res=1",e="application/dash+xml"),t&&"/"===t[0]&&(t=Nt+t),it.src({src:t,type:e}),U()}else if(3===Vt){let t=!1,e=!1,o="false";Ht&&(o="true"),void 0!==r.hls&&r.hls?(t=r.hls,e="application/x-mpegURL"):void 0!==r.dash&&r.dash&&(t=r.dash,e="application/dash+xml"),t&&"/"===t[0]&&(t=Nt+t),it.src({src:t,type:e}),U()}setTimeout((function(){I(t)}),1),function(t,e){(!e||e.length>0)&&(n&&console.log("[GoodTube] Loading subtitles..."),Rt=e?0:1,Y(t,e,Nt))}(t,i),n&&console.log("[GoodTube] Loading chapters..."),K(t,d,u,s),Bt||(n&&console.log("[GoodTube] Loading storyboard..."),Z(t,l,0))})).catch((o=>{void 0!==b.loadVideoData&&clearTimeout(b.loadVideoData),b.loadVideoData=setTimeout((function(){F(t)}),e),et()}))}function U(){M&&clearTimeout(M);let t=document.querySelectorAll(".vjs-quality-selector");if(!t||void 0===t[1])return M&&clearTimeout(M),void(M=setTimeout(U,100));if(2===t.length){t[0].style.display="none",t[1].style.display="block";let e=t[1].querySelector("ul"),o=e.querySelector("li.vjs-menu-item:first-child .vjs-menu-item-text");if(!o)return M&&clearTimeout(M),void(M=setTimeout(U,100));let n=o;if("Select default quality"!==o.innerHTML){n=document.createElement("li"),n.classList.add("vjs-menu-item"),n.classList.add("select-default"),n.innerHTML='\n\t\t\t\t\t\t<span class="vjs-menu-item-text">Select default quality</span>\n\t\t\t\t\t\t<span class="vjs-control-text" aria-live="polite"></span>\n\t\t\t\t\t',n.addEventListener("click",V),e.prepend(n),e.querySelectorAll("li.vjs-menu-item:not(.select-default)").forEach((t=>{t.addEventListener("click",J),t.addEventListener("touchstart",J)}))}let r=i("goodTube_selectDefaultNew");r||(a("goodTube_selectDefaultNew","1080"),r="1080"),N(r)}}function V(){let t=document.querySelector(".goodTube_defaultQualityModal");t.classList.contains("goodTube_defaultQualityModal_visible")||t.classList.add("goodTube_defaultQualityModal_visible")}let H=!1;function N(t){a("goodTube_selectDefaultNew",t);let e=document.querySelector(".goodTube_defaultQualityModal");e.classList.contains("goodTube_defaultQualityModal_visible")&&e.classList.remove("goodTube_defaultQualityModal_visible"),document.querySelector(".goodTube_defaultQualityModal_selected")?.classList.remove("goodTube_defaultQualityModal_selected"),document.querySelector("#goodTube_defaultQualityModal_option_"+t.toLowerCase())?.classList.add("goodTube_defaultQualityModal_selected");let o=!1;document.querySelectorAll(".vjs-quality-selector li.vjs-menu-item").forEach((e=>{let n=e.querySelector(".vjs-menu-item-text").innerHTML.replace("p","");("auto"===n.toLowerCase()&&"auto"===t.toLowerCase()||parseFloat(n)<=parseFloat(t)&&!o)&&(o=e)})),o&&(H=!0,o.click(),n&&("auto"===t.toLowerCase()?console.log("[GoodTube] Setting default quality to "+t[0].toUpperCase()+t.slice(1)):console.log("[GoodTube] Selecting nearest default quality to "+t+"p ("+o.querySelector(".vjs-menu-item-text").innerHTML+")")))}function J(){if(H)return void(H=!1);let t=document.querySelectorAll(".vjs-quality-selector")[1],e=t.querySelector("li.select-default");e.classList.contains("vjs-selected")&&e.classList.remove("vjs-selected");let o=t.querySelector("li.vjs-auto-selected");o&&o.classList.remove("vjs-auto-selected")}function K(t,e,o,r){W();let a=[];if(r)a=r;else{let n=e.split("\n"),r=/(\d{0,2}:?\d{1,2}:\d{2})/g;for(let t of n){const e=t.match(r);if(e){let o=e[0],n=t.split(" ").filter((t=>!t.includes(o))).join(" ");a.push({time:o,title:n})}}if((!a.length||a.length<=0||a[0].time.split(":").reduce(((t,e)=>60*t+ +e))>0)&&(a=[]),(!a.length||a.length<=0)&&!Bt){let n=Array.from(document.querySelectorAll("#panels ytd-engagement-panel-section-list-renderer:nth-child(2) #content ytd-macro-markers-list-renderer #contents ytd-macro-markers-list-item-renderer #endpoint #details"));C&&clearInterval(C);let r=JSON.stringify(document.querySelectorAll("#panels ytd-engagement-panel-section-list-renderer:nth-child(2) #content ytd-macro-markers-list-renderer #contents ytd-macro-markers-list-item-renderer #endpoint #details"));C=setInterval((function(){let n=JSON.stringify(document.querySelectorAll("#panels ytd-engagement-panel-section-list-renderer:nth-child(2) #content ytd-macro-markers-list-renderer #contents ytd-macro-markers-list-item-renderer #endpoint #details"));n!==r&&(r=n,K(t,e,o))}),1e3);let i=n.map((t=>({title:t.querySelector(".macro-markers")?.textContent,time:t.querySelector("#time")?.textContent}))).filter((t=>void 0!==t.title&&null!==t.title&&void 0!==t.time&&null!==t.time));a=[...new Map(i.map((t=>[t.time,t]))).values()]}}let i=0;a.length&&a.length>0&&(i=a[0].time,"number"!=typeof i&&(i=i.split(":").reduce(((t,e)=>60*t+ +e)))),(!a.length||a.length<=0||i>0)&&(a=[]),a.length>0?function(t,e,o){let r=document.createElement("div");r.classList.add("goodTube_chapters");let a=document.createElement("div");a.classList.add("goodTube_markers");let i=0;e.forEach((t=>{let n=document.createElement("div");n.classList.add("goodTube_chapter"),void 0!==e[i+1]&&("number"==typeof e[i+1].time?n.setAttribute("chapter-time",e[i+1].time):n.setAttribute("chapter-time",e[i+1].time.split(":").reduce(((t,e)=>60*t+ +e))));let l=document.createElement("div");l.classList.add("goodTube_marker"),void 0!==e[i+1]&&("number"==typeof e[i+1].time?l.setAttribute("marker-time",e[i+1].time):l.setAttribute("marker-time",e[i+1].time.split(":").reduce(((t,e)=>60*t+ +e)))),Bt||n.addEventListener("mouseover",(function(){document.querySelector("#goodTube_player_wrapper1 .vjs-progress-control .vjs-mouse-display .vjs-time-tooltip")?.setAttribute("chapter-title",t.title)}));let s=0;s="number"==typeof t.time?t.time:t.time.split(":").reduce(((t,e)=>60*t+ +e));let d=s/o*100;n.style.left=d+"%";let u=o;void 0!==e[i+1]&&(u="number"==typeof e[i+1].time?e[i+1].time:e[i+1].time.split(":").reduce(((t,e)=>60*t+ +e)));let p=u/o*100;n.style.width=p-d+"%",l.style.left=p+"%",r.appendChild(n),a.appendChild(l),i++})),Bt&&(E=setInterval((function(){let o=parseFloat(t.currentTime),n=!1;e.forEach((t=>{let e=!1;e="number"==typeof t.time?t.time:t.time.split(":").reduce(((t,e)=>60*t+ +e)),parseFloat(o)>=parseFloat(e)&&(n=t.title)})),n&&document.querySelector("#goodTube_player_wrapper1 .vjs-time-control .vjs-duration-display")?.setAttribute("chapter-title","· "+n)}),10));document.querySelector("#goodTube_player_wrapper1 .vjs-progress-control")?.appendChild(r),document.querySelector("#goodTube_player_wrapper1 .vjs-progress-control .vjs-play-progress")?.appendChild(a),document.querySelector("#goodTube_player_wrapper1").classList.contains("goodTube_hasChapters")||document.querySelector("#goodTube_player_wrapper1").classList.add("goodTube_hasChapters");q=setInterval((function(){document.querySelectorAll(".goodTube_markers .goodTube_marker").forEach((e=>{e.getAttribute("marker-time")&&(parseFloat(t.currentTime)>=parseFloat(e.getAttribute("marker-time"))?e.classList.contains("goodTube_showMarker")||e.classList.add("goodTube_showMarker"):e.classList.contains("goodTube_showMarker")&&e.classList.remove("goodTube_showMarker"))})),document.querySelectorAll(".goodTube_chapters .goodTube_chapter").forEach((e=>{e.getAttribute("chapter-time")&&(parseFloat(t.currentTime)>=parseFloat(e.getAttribute("chapter-time"))?e.classList.contains("goodTube_redChapter")||e.classList.add("goodTube_redChapter"):e.classList.contains("goodTube_redChapter")&&e.classList.remove("goodTube_redChapter"))}))}),10),n&&console.log("[GoodTube] Chapters loaded")}(t,a,o):n&&console.log("[GoodTube] No chapters found")}function W(){q&&(clearInterval(q),q=!1),E&&(clearInterval(E),E=!1),C&&(clearInterval(C),C=!1),document.querySelector("#goodTube_player_wrapper1 .vjs-time-control .vjs-duration-display")?.setAttribute("chapter-title",""),document.querySelector(".goodTube_chapters")?.remove(),document.querySelector(".goodTube_markers")?.remove(),document.querySelector("#goodTube_player_wrapper1").classList.contains("goodTube_hasChapters")&&document.querySelector("#goodTube_player_wrapper1").classList.remove("goodTube_hasChapters")}function Y(t,e,o){if(Rt>0){if(void 0===It[Rt-1])return void(n&&console.log("[GoodTube] Subtitles could not be loaded"));o=It[Rt-1],fetch(o+"/api/v1/videos/"+Mt.v,{signal:AbortSignal.timeout(5e3)}).then((t=>t.text())).then((e=>{let r=JSON.parse(e).captions;r&&r.length>0?fetch(o+r[0].url,{signal:AbortSignal.timeout(5e3)}).then((t=>t.text())).then((e=>{"WEBVTT"!==e.substr(0,6)?Y(t,r,o):X(t,r,o)})).catch((e=>{Y(t,r,o)})):n&&console.log("[GoodTube] This video does not have subtitles")})).catch((n=>{Y(t,e,o)}))}else fetch(o+e[0].url,{signal:AbortSignal.timeout(5e3)}).then((t=>t.text())).then((n=>{"WEBVTT"!==n.substr(0,6)?Y(t,e,o):X(t,e,o)})).catch((n=>{Y(t,e,o)}));Rt++}function X(t,e,o){let r=!1;e.forEach((t=>{let e=!1,n=!1;e=o+t.url,n=t.label,e&&n&&n!==r&&(r=n,n=n[0].toUpperCase()+n.slice(1),it.addRemoteTextTrack({kind:"captions",language:n,src:e},!1))})),n&&console.log("[GoodTube] Subtitles loaded")}function Z(t,e,o){if(void 0!==It[o])if(3===Vt){let n=It[o]+"/api/v1/videos/"+Mt.v;fetch(n,{signal:AbortSignal.timeout(5e3)}).then((t=>t.text())).then((n=>{let r=JSON.parse(n);void 0===r.storyboards?(o++,Z(t,e,o)):(e=r.storyboards,$(t,e,It[o]))})).catch((n=>{o++,Z(t,e,o)}))}else Ot=0,$(t,e,Nt);else n&&console.log("[GoodTube] Storyboard could not be loaded")}function $(t,e,o){if(Ot>0){if(void 0===It[Ot-1])return void(n&&console.log("[GoodTube] Storyboard could not be loaded"));o=It[Ot-1]}Ot++,!e.length||e.length<=0?$(t,e,o):fetch(o+e[0].url,{signal:AbortSignal.timeout(5e3)}).then((t=>t.text())).then((r=>{if("WEBVTT"!==r.substr(0,6))$(t,e,o);else{let a=!1,i=!1,l=r.split("\n\n");if(l.length&&l.length>1){let t=l[1].split("\n");t.length&&t.length>1&&(i=t[1],-1!==i.indexOf("https")&&(a=!0))}a?fetch(i,{signal:AbortSignal.timeout(5e3)}).then((t=>t.text())).then((r=>{-1===r.indexOf("<html")?function(t,e,o){let r=!1,a=0;e.forEach((t=>{t.width>a&&(r=t.url,a=parseFloat(t.width))})),r&&("function"==typeof it.vttThumbnails&&(_=it.vttThumbnails),it.vttThumbnails=_,it.vttThumbnails({src:o+r}),n&&console.log("[GoodTube] Storyboard loaded"))}(0,e,o):$(t,e,o)})).catch((n=>{$(t,e,o)})):$(t,e,o)}})).catch((n=>{$(t,e,o)}))}function tt(t){T=!1,function(){let t=document.querySelector("#goodTube_error");t&&t.remove()}(),t.classList.add("goodTube_hidden"),t.currentTime=0,t.pause(),W(),document.querySelector(".vjs-vtt-thumbnail-display")?.remove();let e=it.remoteTextTracks();void 0!==e.tracks_&&e.tracks_.forEach((t=>{it.removeRemoteTextTrack(t)}));let o=document.querySelectorAll(".vjs-quality-selector");if(o&&void 0!==o[1]){let t=o[1].querySelector("ul");t&&(t.innerHTML="")}}function et(){let t=document.getElementById("goodTube_player");t.classList.contains("vjs-loading")||t.classList.add("vjs-loading"),t.classList.contains("vjs-waiting")||t.classList.add("vjs-waiting")}function ot(){let t=document.getElementById("goodTube_player");t.classList.contains("vjs-loading")&&t.classList.remove("vjs-loading"),t.classList.contains("vjs-waiting")&&t.classList.remove("vjs-waiting")}function nt(){"mediaSession"in navigator&&(navigator.mediaSession.setActionHandler("play",(()=>{I(Ct)})),navigator.mediaSession.setActionHandler("pause",(()=>{O(Ct)})),ut?navigator.mediaSession.setActionHandler("nexttrack",(()=>{Yt(!0)})):navigator.mediaSession.setActionHandler("nexttrack",null),dt?navigator.mediaSession.setActionHandler("previoustrack",(()=>{Wt()})):navigator.mediaSession.setActionHandler("previoustrack",null))}function rt(){if(!Bt){let t=document.querySelector("ytd-watch-flexy");t&&(void 0!==Mt.v?t.classList.remove("goodTube_miniplayer"):t.classList.add("goodTube_miniplayer"))}void 0!==Mt.v&&(k=Mt.v)}function at(){if(document.pictureInPictureEnabled)return void(w?(document.exitPictureInPicture(),w=!1):(Ct.requestPictureInPicture(),w=!0,x&&at()));let t=document.querySelector("#goodTube_player_wrapper1");x?(t.classList.remove("goodTube_miniplayer"),x=!1,void 0===Mt.v&&tt(Ct)):(t.classList.add("goodTube_miniplayer"),x=!0,k=Mt.v)}let it=!1,lt=!1,st=[],dt=!1,ut=!0,pt=!1,ct=!1,mt=!1,bt=!1,vt=!1,yt=!1,gt=!1,ht=!1,ft=0,_t=1;function jt(){document.querySelector(".vjs-play-control").classList.contains("vjs-playing")?I(Ct):O(Ct)}function Tt(){document.querySelectorAll(".vjs-control-bar button").forEach((t=>{t.onclick=function(){document.querySelectorAll(".vjs-menuOpen").forEach((e=>{e!=t.closest("div.vjs-menu-button")&&e.classList.remove("vjs-menuOpen")}));let e=t.closest("div.vjs-menu-button");e&&(e.classList.contains("vjs-menuOpen")?e.classList.remove("vjs-menuOpen"):e.classList.add("vjs-menuOpen"))},t.ontouchstart=function(){document.querySelectorAll(".vjs-menuOpen").forEach((e=>{e!=t.closest("div.vjs-menu-button")&&e.classList.remove("vjs-menuOpen")}));let e=t.closest("div.vjs-menu-button");e&&(e.classList.contains("vjs-menuOpen")?e.classList.remove("vjs-menuOpen"):e.classList.add("vjs-menuOpen"))}}));if(document.querySelectorAll(".vjs-menu-item").forEach((t=>{((t,e)=>{let o=!1;t.addEventListener("touchstart",(function(){o=!1})),t.addEventListener("touchmove",(function(){o=!0})),t.addEventListener("touchend",(function(t){o||e(t)})),t.addEventListener("click",(function(t){e(t)}))})(t,(t=>{let e=0;Bt&&(e=400),setTimeout((function(){document.querySelectorAll(".vjs-menuOpen").forEach((t=>{t.classList.remove("vjs-menuOpen")}))}),e)}))})),!Bt&&!document.querySelector(".goodTube_hoverBar")){let t=document.createElement("div");t.classList.add("goodTube_hoverBar"),document.querySelector(".video-js .vjs-progress-control").appendChild(t),document.querySelector(".video-js .vjs-progress-control").addEventListener("mousemove",(function(e){window.requestAnimationFrame((function(){t.style.width=document.querySelector(".video-js .vjs-progress-control .vjs-mouse-display").style.left}))}))}}function wt(){yt&&clearTimeout(yt),gt&&clearTimeout(gt);let t=i("goodTube_api_withauto"),e=!1;if(void 0===Ut[D]&&(e=!0),"automatic"===t&&e){let t=document.querySelector("#goodTube_player");ot(),tt(Ct);let e=document.createElement("div");e.setAttribute("id","goodTube_error"),e.innerHTML="Video could not be loaded. The servers are not responding :(<br><small>Please refresh the page / try again soon!</small>",t.appendChild(e)}else"automatic"===t?(n&&console.log("[GoodTube] Video could not be loaded - selecting next video source..."),Ct.currentTime>0&&(v=Ct.currentTime),R("automatic",!0)):(n&&console.log("[GoodTube] Video could not be loaded - selecting next video source..."),Ct.currentTime>0&&(v=Ct.currentTime),D=0,R("automatic",!0))}function xt(){let t=document.querySelector(".vjs-download-button");if(!document.querySelector(".vjs-download-button .goodTube_spinner")){let e=document.createElement("div");e.classList.add("goodTube_spinner"),e.innerHTML="<div></div><div></div>",t.append(e)}t&&!t.classList.contains("goodTube_loading")&&t.classList.add("goodTube_loading")}function kt(t){if(Reflect.ownKeys(zt).length>1)return;let e=document.querySelector(".vjs-download-button");e&&e.classList.contains("goodTube_loading")&&e.classList.remove("goodTube_loading"),a("goodTube_lastDownloadTimeSeconds",(new Date).getTime()/1e3),n&&void 0===t&&console.log("[GoodTube] Downloads finished")}function St(){let t=document.querySelector(".goodTube_downloadPlaylist_cancel"),e=document.querySelector(".goodTube_downloadPlaylist_video"),o=document.querySelector(".goodTube_downloadPlaylist_audio");t&&e&&o&&(void 0!==Mt.i||void 0!==Mt.index||void 0!==Mt.list?(d(e),d(o)):(l(e),l(o)),Reflect.ownKeys(zt).length>1?d(t):l(t))}function Lt(){if(dt=!1,ut=!0,(x||w)&&void 0===Mt.v)dt=!1,ut=!1;else if(void 0!==Mt.i||void 0!==Mt.index||void 0!==Mt.list){let t=document.querySelectorAll("#goodTube_playlistContainer a");if(!t||!t.length)return;t[0].classList.contains("goodTube_selected")||(dt=!0)}else st[st.length-2]&&st[st.length-2]!==window.location.href&&(dt=!0);let t=document.querySelector(".vjs-prev-button");t&&(dt?d(t):l(t));let e=document.querySelector(".vjs-next-button");e&&(ut?d(e):l(e))}let At=!1,qt=!1,Et=!1,Ct=!1,Mt=!1,Qt=[],zt=[],Bt=!1,Dt=!1,Rt=0,Ot=0,It=["https://yt.artemislena.eu","https://invidious.perennialte.ch","https://invidious.private.coffee","https://invidious.drgns.space","https://inv.nadeko.net","https://invidious.projectsegfau.lt","https://invidious.jing.rocks","https://invidious.incogniweb.net","https://invidious.privacyredirect.com","https://invidious.fdn.fr","https://iv.datura.network","https://pipedapi-libre.kavin.rocks","https://pipedapi.syncpundit.io","https://invidious.protokolla.fi","https://iv.melmac.space"],Gt=["https://dl01.yt-dl.click","https://dl02.yt-dl.click","https://dl03.yt-dl.click","https://apicloud9.filsfkwtlfjas.xyz","https://apicloud3.filsfkwtlfjas.xyz","https://apicloud8.filsfkwtlfjas.xyz","https://apicloud4.filsfkwtlfjas.xyz","https://apicloud5.filsfkwtlfjas.xyz"],Pt=["https://sea-downloadapi.stuff.solutions","https://ca.haloz.at","https://cobalt.wither.ing","https://capi.tieren.men","https://co.tskau.team","https://apicb.tigaultraman.com","https://api-cobalt.boykisser.systems","https://cobalt.decrystalfan.app","https://wukko.wolfdo.gg","https://capi.oak.li","https://cb.nyoom.fun","https://dl.khyernet.xyz","https://cobalt-api.alexagirl.studio","https://nyc1.coapi.ggtyler.dev","https://api.dl.ixhby.dev","https://co.eepy.today","https://downloadapi.stuff.solutions","https://cobalt-api.ayo.tf","https://api.sacreations.me","https://apicloud2.filsfkwtlfjas.xyz","https://dl01.yt-dl.click"],Ft=Pt.length;for(;0!=Ft;){let t=Math.floor(Math.random()*Ft);Ft--,[Pt[Ft],Pt[t]]=[Pt[t],Pt[Ft]]}Gt=Gt.concat(Pt);let Ut=[{name:"Automatic",type:!1,proxy:!0,url:"automatic"},{name:"Phoenix (US)",type:3,proxy:!0,url:"https://pipedapi.drgns.space"},{name:"Acid (US)",type:2,proxy:!0,url:"https://invidious.incogniweb.net"},{name:"Anubis (DE)",type:3,proxy:!0,url:"https://pipedapi.r4fo.com"},{name:"Nymph (AT)",type:2,proxy:!0,url:"https://invidious.private.coffee"},{name:"Serpent (US)",type:2,proxy:!0,url:"https://invidious.darkness.services"},{name:"Sphere (US)",type:3,proxy:!0,url:"https://pipedapi.darkness.services"},{name:"Sapphire (IN)",type:3,proxy:!0,url:"https://pipedapi.in.projectsegfau.lt"},{name:"Sphynx (JP)",type:2,proxy:!0,url:"https://invidious.jing.rocks"},{name:"Orchid (DE)",type:3,proxy:!0,url:"https://api.piped.yt"},{name:"Emerald (DE)",type:3,proxy:!0,url:"https://pipedapi.phoenixthrush.com"},{name:"420 (FI)",type:2,proxy:!0,url:"https://invidious.privacyredirect.com"},{name:"Onyx (FR)",type:2,proxy:!0,url:"https://invidious.fdn.fr"},{name:"360p - Amethyst (DE)",type:1,proxy:!0,url:"https://yt.artemislena.eu"},{name:"360p - Goblin (AU)",type:1,proxy:!1,url:"https://invidious.perennialte.ch"},{name:"360p - Raptor (US)",type:1,proxy:!0,url:"https://invidious.drgns.space"}],Vt=Ut[0].type,Ht=Ut[0].proxy,Nt=Ut[0].url,Jt=Ut[0].name;function Kt(){let t=document.getElementById("goodTube_playlistContainer");if(t||(t=document.createElement("div"),t.setAttribute("id","goodTube_playlistContainer"),t.style.display="none",document.body.appendChild(t)),t.innerHTML="",void 0===Mt.i&&void 0===Mt.index&&void 0===Mt.list)return;document.getElementById("movie_player");let e=!1,o=!1;Bt?(e=document.querySelectorAll("ytm-playlist-panel-renderer a.compact-media-item-image"),o=document.querySelectorAll("ytm-playlist-panel-renderer .compact-media-item-headline span")):(e=document.querySelectorAll("#playlist-items > a"),o=document.querySelectorAll("#playlist-items #video-title")),e&&e.length||setTimeout(Kt,100);let n=0;e.forEach((e=>{let r=document.createElement("a");r.href=e.href,r.innerHTML=o[n].innerHTML.trim(),-1!==e.href.indexOf(Mt.v)&&r.classList.add("goodTube_selected"),t.appendChild(r),n++}))}function Wt(){let t=!1;if(void 0!==Mt.i||void 0!==Mt.index||void 0!==Mt.list){let e=document.querySelectorAll("#goodTube_playlistContainer a"),o=!1;for(let n=e.length-1;n>=0;n--){let r=e[n];if(o){let e="/watch"+r.href.split("/watch")[1];if(Bt?(t=!0,document.querySelector('ytm-playlist-panel-renderer a.compact-media-item-image[href="'+e+'"]')?.click()):(t=!0,document.querySelector('#playlist-items > a[href="'+e+'"]')?.click()),t){if(t=!0,!document.querySelector("ytm-playlist-panel-renderer")){let t=document.querySelector("ytm-playlist-panel-entry-point");return void(t&&!Dt&&(Dt=!0,t.click(),setTimeout(Wt,500)))}Dt=!1,document.querySelector('ytm-playlist-panel-renderer a.compact-media-item-image[href="'+e+'"]')?.click()}}o=!!r.classList.contains("goodTube_selected")}}!t&&st[st.length-2]&&st[st.length-2]!==window.location.href&&(n&&console.log("[GoodTube] Playing previous video..."),a("goodTube_previous","true"),window.history.go(-1))}function Yt(t=!1){let e=i("goodTube_autoplay"),o=!1;if(void 0!==Mt.i||void 0!==Mt.index||void 0!==Mt.list){let t=document.querySelectorAll("#goodTube_playlistContainer a"),e=!1;t.forEach((t=>{if(e){let e="/watch"+t.href.split("/watch")[1];if(Bt){if(o=!0,!document.querySelector("ytm-playlist-panel-renderer")){let t=document.querySelector("ytm-playlist-panel-entry-point");return void(t&&!Dt&&(Dt=!0,t.click(),setTimeout(Yt,500)))}Dt=!1,document.querySelector('ytm-playlist-panel-renderer a.compact-media-item-image[href="'+e+'"]')?.click()}else o=!0,document.querySelector('#playlist-items > a[href="'+e+'"]')?.click();o&&n&&console.log("[GoodTube] Playing next video in playlist...")}e=!!t.classList.contains("goodTube_selected")}))}if(!o&&("off"!==e||t)){document.getElementById("movie_player").nextVideo(),n&&console.log("[GoodTube] Autoplaying next video...")}}function Xt(t,o,r,l,s){if(void 0===l&&(l=""),void 0===zt[r])return;if(void 0===Gt[t])return void 0!==zt[r]&&delete zt[r],n&&(void 0!==l?(alert("[GoodTube] "+o.charAt(0).toUpperCase()+o.slice(1)+" - "+l+" could not be downloaded. Please try again soon."),console.log("[GoodTube] "+o.charAt(0).toUpperCase()+o.slice(1)+" - "+l+" could not be downloaded. Please try again soon.")):(alert("[GoodTube] "+o.charAt(0).toUpperCase()+o.slice(1)+" could not be downloaded. Please try again soon."),console.log("[GoodTube] "+o.charAt(0).toUpperCase()+o.slice(1)+" could not be downloaded. Please try again soon."))),void kt();xt();let d=0,u=(new Date).getTime()/1e3,p=parseFloat(i("goodTube_lastDownloadTimeSeconds"));p&&(d=3-(u-p),d<0&&(d=0)),a("goodTube_lastDownloadTimeSeconds",u+d),Qt[r]=setTimeout((function(){n&&(""!==l?console.log("[GoodTube] Downloading "+o+" - "+l+"..."):console.log("[GoodTube] Downloading "+o+"..."));let a="vp9";Bt&&(a="h264"),void 0!==s&&(a=s);let i=!1;"audio"===o&&(i=!0);let d=JSON.stringify({url:"https://www.youtube.com/watch?v="+r,vCodec:a,vQuality:"max",filenamePattern:"basic",isAudioOnly:i});fetch(Gt[t]+"/api/json",{signal:AbortSignal.timeout(1e4),method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:d}).then((t=>t.text())).then((i=>{if(void 0!==zt[r]){if(void 0!==(i=JSON.parse(i)).status&&"rate-limit"===i.status)return void 0!==b["download_"+r]&&clearTimeout(b["download_"+r]),void(b["download_"+r]=setTimeout((function(){Xt(t,o,r,l)}),e));if(void 0!==i.status&&"error"===i.status){let s=!1;return void 0!==i.text&&-1!==i.text.toLowerCase().indexOf("settings")?(Bt||("vp9"===a?s="av1":"av1"===a&&(s="h264")),Bt&&("h264"===a?s="av1":"av1"===a&&(s="vp9")),s?(void 0!==b["download_"+r]&&clearTimeout(b["download_"+r]),void(b["download_"+r]=setTimeout((function(){Xt(t,o,r,l,s)}),e))):(n&&console.log("[GoodTube] Could not download "+o+" - "+l),void 0!==zt[r]&&delete zt[r],void setTimeout((function(){kt()}),1e3))):(void 0!==b["download_"+r]&&clearTimeout(b["download_"+r]),t++,void(b["download_"+r]=setTimeout((function(){Xt(t,o,r,l)}),e)))}void 0!==i.status&&void 0!==i.url&&function(t,o,r,a,i){if(void 0===zt[a])return;xt();let l=".mp4";"audio"===o&&(l=".mp3");Bt||""===r?(window.open(t,"_self"),n&&(""!==r?console.log("[GoodTube] Downloaded "+o+" - "+r):console.log("[GoodTube] Downloaded "+o)),void 0!==zt[a]&&delete zt[a],setTimeout((function(){kt()}),1e3)):fetch(t).then((t=>t.blob())).then((t=>{if(void 0===zt[a])return;let e=URL.createObjectURL(t),i=document.createElement("a");i.style.display="none",i.href=e,i.download=r+l,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(e),i.remove(),n&&console.log("[GoodTube] Downloaded "+o+" - "+r),void 0!==zt[a]&&delete zt[a],kt()})).catch((t=>{void 0!==b["download_"+a]&&clearTimeout(b["download_"+a]),i++,b["download_"+a]=setTimeout((function(){Xt(i,o,a,r)}),e)}))}(i.url,o,l,r,t)}})).catch((n=>{void 0!==b["download_"+r]&&clearTimeout(b["download_"+r]),t++,b["download_"+r]=setTimeout((function(){Xt(t,o,r,l)}),e)}))}),1e3*d)}function Zt(t,e){if(void 0===e&&!confirm("Are you sure you want to download this playlist ("+t+")?\r\rYou can keep playing and downloading other videos, just don't close the tab :)"))return;n&&void 0===e&&console.log("[GoodTube] Downloading "+t+" playlist...");let o=document.querySelectorAll("#goodTube_playlistContainer a");if(o.length<=0)return void(n&&console.log("[GoodTube] Downloading failed, could not find playlist data."));let r=0;o.forEach((e=>{let o=function(t,e){for(t=t.toString();t.length<e;)t="0"+t;return t}(r+1,2)+" - "+e.innerHTML.trim(),a=e.href;if(!o||!a)return void(n&&console.log("[GoodTube] Downloading failed, could not find playlist data."));let i=a.split("?")[1],l={};i.replace(/\??(?:([^=]+)=([^&]*)&?)/g,(function(){function t(t){return decodeURIComponent(t.split("+").join(" "))}l[t(arguments[1])]=t(arguments[2])}));let s=l.v;zt[s]=!0,Xt(0,t,s,o),r++}))}function $t(){!function(){document.querySelectorAll("#player:not(.ytd-channel-video-player-renderer)").forEach((t=>{s(t)})),document.querySelectorAll(".player-container").forEach((t=>{s(t)})),document.querySelectorAll("#player-control-container").forEach((t=>{s(t)})),document.querySelectorAll("#full-bleed-container").forEach((t=>{s(t)})),document.querySelectorAll("ytd-miniplayer").forEach((t=>{s(t)}));let t=!1;Bt?(t=document.querySelector('.ytm-autonav-toggle-button-container[aria-pressed="true"]'),t?t.click():(document.querySelector("#player .html5-video-player")?.click(),document.querySelector("#player")?.click(),document.querySelector(".ytp-unmute")?.click())):(t=document.querySelector('.ytp-autonav-toggle-button[aria-checked="true"]'),t&&t.click())}(),function(){let t=document.getElementById("movie_player");if(t&&"function"==typeof t.setPlaybackQualityRange&&"function"==typeof t.getAvailableQualityData&&"function"==typeof t.getPlaybackQuality){let e=t.getAvailableQualityData(),o=t.getPlaybackQuality();if(e.length&&o){let n=e[e.length-1].quality;o!=n&&t.setPlaybackQualityRange(n,n)}}}(),function(){if(-1!==window.location.href.indexOf("@"))return;document.querySelectorAll("a:not(.goodTube_hidden)").forEach((t=>{-1!==t.href.indexOf("shorts/")&&(l(t),l(t.closest("ytd-video-renderer")),l(t.closest("ytd-compact-video-renderer")),l(t.closest("ytd-rich-grid-media")))}))}(),document.querySelectorAll("tp-yt-paper-dialog #confirm-button:not(.goodTube_clicked)").forEach((t=>{t.classList.add("goodTube_clicked"),t.click(),setTimeout((function(){t.classList.remove("goodTube_clicked")}),1e3)})),document.querySelectorAll("#description a, ytd-comments .yt-core-attributed-string a, ytm-expandable-video-description-body-renderer a, .comment-content a").forEach((t=>{!t.classList.contains("goodTube_timestampLink")&&t.getAttribute("href")&&-1!==t.getAttribute("href").indexOf(Mt.v)&&-1!==t.getAttribute("href").indexOf("t=")&&(t.classList.add("goodTube_timestampLink"),t.addEventListener("click",(function(){let e=t.getAttribute("href").split("t=");if(void 0!==e[1]){let t=e[1].replace("s","");P(Ct,t)}})))}));let t=Ct;if(g>=y.length&&lt){let e=qt;e&&(e=e.split("#")[0]);let o=window.location.href.split("#")[0];if(o&&(o=o.split("#")[0]),e!==o){if(Mt=r(),void 0!==Mt.v){Bt&&function(t){d(t.closest("#goodTube_player_wrapper1"))}(t),n&&console.log("\n-------------------------\n\n"),"true"===i("goodTube_previous")?(st.pop(),a("goodTube_previous","false")):st.push(window.location.href),f=0,v=0;let e=Et,o=!1;void 0!==Mt.list&&(o=Mt.list),"automatic"===i("goodTube_api_withauto")&&(o&&e===o?D>0&&D--:D=0,R("automatic",!1)),n&&console.log("[GoodTube] Loading video data from "+Jt+"..."),Kt(),F(t),fetch("https://api.counterapi.dev/v1/goodtube/videos/up/")}else if(!x&&!w){tt(Ct),Bt&&function(t){l(t.closest("#goodTube_player_wrapper1"))}(t),st=[];for(let t in b)b.hasOwnProperty(t)&&clearTimeout(b[t])}Et=void 0!==Mt.list&&Mt.list,qt=window.location.href}}}!function(){n&&(console.log("\n==================================================\n    ______                ________      __\n   / ____/___  ____  ____/ /_  __/_  __/ /_  ___\n  / / __/ __ \\/ __ \\/ __  / / / / / / / __ \\/ _ \\\n / /_/ / /_/ / /_/ / /_/ / / / / /_/ / /_/ /  __/\n \\____/\\____/\\____/\\____/ /_/  \\____/_____/\\___/\n\n=================================================="),console.log("[GoodTube] Initiating...")),-1!==window.location.href.indexOf("m.youtube")&&(Bt=!0);let t=i("goodTube_api_withauto");t&&Ut.forEach((e=>{e.url===t&&(Vt=e.type,Ht=e.proxy,Nt=e.url,Jt=e.name)})),window.addEventListener("beforeunload",(t=>{a("goodTube_lastDownloadTimeSeconds",(new Date).getTime()/1e3)})),setInterval(u,1),setInterval($t,1),setInterval(Lt,100),setInterval(St,100),setInterval(nt,100),setInterval(rt,100),function(){let t=document.createElement("style");t.textContent="\n\t\t\tytd-shelf-renderer,\n\t\t\tytd-reel-shelf-renderer,\n\t\t\tytd-merch-shelf-renderer,\n\t\t\tytd-action-companion-ad-renderer,\n\t\t\tytd-display-ad-renderer,\n\t\t\tytd-rich-section-renderer,\n\t\t\tytd-video-masthead-ad-advertiser-info-renderer,\n\t\t\tytd-video-masthead-ad-primary-video-renderer,\n\t\t\tytd-in-feed-ad-layout-renderer,\n\t\t\tytd-ad-slot-renderer,\n\t\t\tytd-statement-banner-renderer,\n\t\t\tytd-banner-promo-renderer-background\n\t\t\tytd-ad-slot-renderer,\n\t\t\tytd-in-feed-ad-layout-renderer,\n\t\t\tytd-engagement-panel-section-list-renderer:not(.ytd-popup-container),\n\t\t\tytd-compact-video-renderer:has(.goodTube_hidden),\n\t\t\tytd-rich-item-renderer:has(> #content > ytd-ad-slot-renderer)\n\t\t\t.ytd-video-masthead-ad-v3-renderer,\n\t\t\tdiv#root.style-scope.ytd-display-ad-renderer.yt-simple-endpoint,\n\t\t\tdiv#sparkles-container.style-scope.ytd-promoted-sparkles-web-renderer,\n\t\t\tdiv#main-container.style-scope.ytd-promoted-video-renderer,\n\t\t\tdiv#player-ads.style-scope.ytd-watch-flexy,\n\n\t\t\tytm-rich-shelf-renderer,\n\t\t\tytm-shelf-renderer,\n\t\t\tytm-button-renderer.icon-avatar_logged_out,\n\t\t\tytm-companion-slot,\n\t\t\tytm-shelf-renderer,\n\t\t\tytm-reel-shelf-renderer,\n\t\t\tytm-merch-shelf-renderer,\n\t\t\tytm-action-companion-ad-renderer,\n\t\t\tytm-display-ad-renderer,\n\t\t\tytm-rich-section-renderer,\n\t\t\tytm-video-masthead-ad-advertiser-info-renderer,\n\t\t\tytm-video-masthead-ad-primary-video-renderer,\n\t\t\tytm-in-feed-ad-layout-renderer,\n\t\t\tytm-ad-slot-renderer,\n\t\t\tytm-statement-banner-renderer,\n\t\t\tytm-banner-promo-renderer-background\n\t\t\tytm-ad-slot-renderer,\n\t\t\tytm-in-feed-ad-layout-renderer,\n\t\t\tytm-compact-video-renderer:has(.goodTube_hidden),\n\t\t\tytm-rich-item-renderer:has(> #content > ytm-ad-slot-renderer)\n\t\t\t.ytm-video-masthead-ad-v3-renderer,\n\t\t\tdiv#root.style-scope.ytm-display-ad-renderer.yt-simple-endpoint,\n\t\t\tdiv#sparkles-container.style-scope.ytm-promoted-sparkles-web-renderer,\n\t\t\tdiv#main-container.style-scope.ytm-promoted-video-renderer,\n\t\t\tdiv#player-ads.style-scope.ytm-watch-flexy,\n\t\t\tytm-pivot-bar-item-renderer:has(> .pivot-shorts),\n\t\t\tytd-compact-movie-renderer,\n\n\t\t\tyt-about-this-ad-renderer,\n\t\t\tmasthead-ad,\n\t\t\tad-slot-renderer,\n\t\t\tyt-mealbar-promo-renderer,\n\t\t\tstatement-banner-style-type-compact,\n\t\t\tytm-promoted-sparkles-web-renderer,\n\t\t\ttp-yt-iron-overlay-backdrop,\n\t\t\t#masthead-ad\n\t\t\t {\n\t\t\t\tdisplay: none !important;\n\t\t\t}\n\n\t\t\t.style-scope[page-subtype='channels'] ytd-shelf-renderer,\n\t\t\t.style-scope[page-subtype='channels'] ytm-shelf-renderer {\n\t\t\t\tdisplay: block !important;\n\t\t\t}\n\t\t",document.head.appendChild(t),n&&console.log("[GoodTube] Ads removed")}(),function(){let t=document.createElement("style");t.textContent="\n\t\t\t.goodTube_hidden {\n\t\t\t\tposition: fixed !important;\n\t\t\t\ttop: -9999px !important;\n\t\t\t\tleft: -9999px !important;\n\t\t\t\ttransform: scale(0) !important;\n\t\t\t\tpointer-events: none !important;\n\t\t\t}\n\n\t\t\t.goodTube_hiddenPlayer {\n\t\t\t\tposition: absolute !important;\n\t\t\t\ttransform: scale(0) !important;\n\t\t\t\tpointer-events: none !important;\n\t\t\t}\n\t\t",document.head.appendChild(t)}(),u(),z(),Q(),i("goodTube_unique_new2")||(fetch("https://api.counterapi.dev/v1/goodtube/users/up/"),a("goodTube_unique_new2","true"))}()}();
