axotube 1.31.3 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/early.js +1 -1
- package/dist/service-core.js +41 -41
- package/dist/service-core.json +3 -3
- package/dist/userScript.js +1 -1
- package/package.json +1 -1
package/dist/early.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t;t||(t=1,function(){if("undefined"==typeof globalThis)try{Object.defineProperty(Object.prototype,"__globalThis__",{get:function(){return this},configurable:!0}),__globalThis__.globalThis=__globalThis__,delete Object.prototype.__globalThis__}catch(e){"undefined"!=typeof window?window.globalThis=window:"undefined"!=typeof self&&(self.globalThis=self)}}(),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.HTMLCollection&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=Array.prototype.forEach),function(){var e=window.EventTarget;if(void 0!==e)try{return void new e}catch(e){}window.EventTarget=function(){var e={};return{addEventListener:function(t,o){"function"==typeof o&&(e[t]||(e[t]=[]),-1===e[t].indexOf(o)&&e[t].push(o))},removeEventListener:function(t,o){var n=e[t];if(n){var r=n.indexOf(o);-1!==r&&n.splice(r,1)}},dispatchEvent:function(t){var o=e[t&&t.type];if(o)for(var n=o.slice(),r=0;r<n.length;r++)try{n[r].call(this,t)}catch(e){console.error(e)}return!(t&&t.defaultPrevented)}}},e&&(window.EventTarget.prototype=e.prototype)}(),function(){function e(){this.aborted=!1,this._cbs=[]}function t(){this.signal=new e}"undefined"==typeof AbortController&&(e.prototype.addEventListener=function(e,t){"abort"===e&&"function"==typeof t&&this._cbs.push(t)},e.prototype.removeEventListener=function(e,t){if("abort"===e){var o=this._cbs.indexOf(t);-1!==o&&this._cbs.splice(o,1)}},e.prototype.dispatchEvent=function(e){if(e&&"abort"===e.type)for(var t=this._cbs.slice(),o=0;o<t.length;o++)t[o](e)},t.prototype.abort=function(){this.signal.aborted||(this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",bubbles:!1,cancelable:!1}))},window.AbortSignal=e,window.AbortController=t)}(),function(){function e(e,t){var o,n=!!(t=t||{}).bubbles,r=!!t.cancelable,i=void 0!==t.detail?t.detail:null;try{(o=document.createEvent("CustomEvent")).initCustomEvent(e,n,r,i)}catch(t){(o=document.createEvent("Event")).initEvent(e,n,r),o.detail=i}return o}"function"!=typeof CustomEvent&&(window.Event&&window.Event.prototype&&(e.prototype=window.Event.prototype),window.CustomEvent=e)}(),"undefined"!=typeof Promise&&"function"!=typeof Promise.prototype.finally&&(Promise.prototype.finally=function(e){var t=this.constructor||Promise;return this.then(function(o){return t.resolve(e()).then(function(){return o})},function(o){return t.resolve(e()).then(function(){throw o})})}),"undefined"!=typeof Promise&&"function"!=typeof Promise.allSettled&&(Promise.allSettled=function(e){return Promise.all(Array.prototype.map.call(e,function(e){return Promise.resolve(e).then(function(e){return{status:"fulfilled",value:e}},function(e){return{status:"rejected",reason:e}})}))}),function(){function e(t,o,n){for(var r=0;r<t.length;r++)o>0&&Array.isArray(t[r])?e(t[r],o-1,n):n.push(t[r]);return n}"function"!=typeof Array.prototype.flat&&(Array.prototype.flat=function(t){return e(this,(t=void 0===t?1:Math.floor(t))<0?0:t,[])})}(),"function"!=typeof Array.prototype.flatMap&&(Array.prototype.flatMap=function(e,t){return Array.prototype.map.call(this,e,t).flat(1)}),"function"!=typeof String.prototype.replaceAll&&(String.prototype.replaceAll=function(e,t){return"string"!=typeof e?this.replace(e,t):this.split(e).join("function"==typeof t?t(e,0,String(this)):String(t))}),"function"==typeof Object.values&&"function"==typeof Object.entries||(Object.values=Object.values||function(e){for(var t=Object.keys(e),o=[],n=0;n<t.length;n++)o.push(e[t[n]]);return o},Object.entries=Object.entries||function(e){for(var t=Object.keys(e),o=[],n=0;n<t.length;n++)o.push([t[n],e[t[n]]]);return o}),"function"!=typeof Object.fromEntries&&(Object.fromEntries=function(e){var t=Object.create(null);if("function"==typeof e.forEach)e.forEach(function(e){t[e[0]]=e[1]});else for(var o=Array.isArray(e)?e:Array.prototype.slice.call(e),n=0;n<o.length;n++)t[o[n][0]]=o[n][1];return t}),"function"!=typeof queueMicrotask&&(window.queueMicrotask=function(e){Promise.resolve().then(e).catch(function(e){setTimeout(function(){throw e},0)})}),window.Element&&"function"!=typeof Element.prototype.closest&&(Element.prototype.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches?t.matches(e):t.msMatchesSelector?t.msMatchesSelector(e):t.webkitMatchesSelector&&t.webkitMatchesSelector(e))return t;t=t.parentElement||t.parentNode}return null}),function(){if(window.Element){var e=Element.prototype;"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;--o>=0&&t.item(o)!==this;);return o>-1})}}(),function(){if("undefined"!=typeof Intl&&"function"!=typeof Intl.Locale){var e={US:"en",GB:"en",AU:"en",CA:"en",IN:"hi",IE:"en",NZ:"en",FR:"fr",DE:"de",ES:"es",IT:"it",PT:"pt",BR:"pt",MX:"es",AR:"es",CO:"es",CL:"es",RU:"ru",UA:"uk",PL:"pl",NL:"nl",BE:"nl",SE:"sv",NO:"no",DK:"da",FI:"fi",TR:"tr",GR:"el",CZ:"cs",SK:"sk",HU:"hu",RO:"ro",BG:"bg",HR:"hr",RS:"sr",JP:"ja",KR:"ko",VN:"vi",TH:"th",ID:"id",MY:"ms",PH:"tl",SA:"ar",AE:"ar",EG:"ar",IL:"he",IR:"fa",PK:"ur",BD:"bn",LK:"si"};t.prototype.maximize=function(){return this},Intl.Locale=t}function t(t,o){o=o||{},this.language=e[o.region]||"en"}}());var o;function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}o||(o=1,function(){var e=!1;try{var t=0,o=[];e="xbx"!=="aba".replaceAll("a",function(e,n){return t+=1,o.push(n),"x"})||2!==t||0!==o[0]||2!==o[1]}catch(t){e=!0}e&&(String.prototype.replaceAll=function(e,t){var o=String(this);if(e instanceof RegExp){if(!e.global)throw new TypeError("replaceAll requires a global RegExp");return o.replace(e,t)}var n=new RegExp(String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");return o.replace(n,t)})}(),function(){var e=!1;try{var t=Object.fromEntries([["a",1]]);e=Object.getPrototypeOf(t)!==Object.prototype}catch(t){e=!0}e&&(Object.fromEntries=function(e){var t={};function o(e){if(e)try{Object.defineProperty(t,e[0],{value:e[1],enumerable:!0,configurable:!0,writable:!0})}catch(o){t[e[0]]=e[1]}}if(e&&"function"==typeof e.forEach)e.forEach(o);else for(var n=Array.isArray(e)?e:Array.prototype.slice.call(e||[]),r=0;r<n.length;r++)o(n[r]);return t})}());var r,i,a={defaults:{enableAdBlock:!0,enableSponsorBlock:!0,enableSponsorBlockToasts:!0,sponsorBlockManualSkips:["intro","outro","filler"],enableSponsorBlockSponsor:!0,enableSponsorBlockIntro:!0,enableSponsorBlockOutro:!0,enableSponsorBlockInteraction:!0,enableSponsorBlockSelfPromo:!0,enableSponsorBlockPreview:!0,enableSponsorBlockMusicOfftopic:!0,enableSponsorBlockFiller:!1,enableSponsorBlockHighlight:!0,videoSpeed:1,preferredVideoQuality:"auto",enableDeArrowTitles:!0,enableDeArrowThumbnails:!0,routeColor:"#0f0f0f",routeBackgroundUrl:"",themePreset:"default",textTheme:"default",userAgentProfile:"auto",enableFixedUI:!1,enableHqThumbnails:!0,enableLongPress:!0,enableShorts:!0,dontCheckUpdateUntil:0,enableWhoIsWatchingMenu:!1,permanentlyEnableWhoIsWatchingMenu:!1,enableWhosWatchingMenuOnAppExit:!1,enableShowUserLanguage:!0,enableShowOtherLanguages:!1,showWelcomeToast:!0,enablePreviousNextButtons:!0,enableSuperThanksButton:!1,enableSpeedControlsButton:!0,enablePatchingVideoPlayer:!0,enableMPButton:!0,enableSwapMPWithPIP:!1,enablePreviews:!0,previewLengthSeconds:40,enableRemainingTime:!1,enablePauseOnBlur:!1,enableLowMemoryMode:!1,enableHideWatchedVideos:!1,hideWatchedVideosThreshold:80,hideWatchedVideosPages:[],enableHideEndScreenCards:!1,enableYouThereRenderer:!0,enableScreenDimming:!1,dimmingTimeout:60,dimmingOpacity:.5,enablePaidPromotionOverlay:!0,speedSettingsIncrement:.25,videoPreferredCodec:"any",enableAutoSubtitles:!0,autoSubtitleLanguage:"en",autoSubtitleAllowAuto:!0,launchToOnStartup:null,reloadHomeOnStartup:!0,disabledSidebarContents:[],disableChannelsOnSidebar:!1,enableUpdater:!0,autoFrameRate:!1,autoFrameRatePauseVideoFor:0,enableSigninReminder:!1,sortSubscriptionsByAlphabet:!1,enableReducedMotion:!1,enablePerformanceMode:!1,enablePanelShrink:!0,enableDeArrowPeek:!0,panelShrinkPercent:"60",clockMode:"off",clockFormat:"24h",clockPosition:"topRight",clockShowSeconds:!1,enableOnePressMode:!1,enableExperimentalResolution:!1,experimentalMaxResolution:"1440p"},ranges:{videoSpeed:[.05,5],hideWatchedVideosThreshold:[0,100],dimmingTimeout:[1,3600],dimmingOpacity:[0,1],speedSettingsIncrement:[.01,1],autoFrameRatePauseVideoFor:[0,1e4],previewLengthSeconds:[5,120],dontCheckUpdateUntil:[0,9007199254740991]},enums:{preferredVideoQuality:["auto","2160p","1440p","1080p","720p","480p","360p","240p","144p"],videoPreferredCodec:["any","vp9","av01","avc1"],themePreset:["default","black","darkGray","charcoal","navy","darkRed","darkGreen","darkPurple"],textTheme:["default","white","gray","red","blue","green","purple","yellow"],userAgentProfile:["auto","samsung","android"],experimentalMaxResolution:["1440p","2160p"],autoSubtitleLanguage:["en","hi","es","fr","de","pt","ja","ko","ru"],panelShrinkPercent:["50","60","70"],clockMode:["off","always","notPlaying"],clockFormat:["24h","12h","12hNoAmPm"],clockPosition:["topLeft","topRight","bottomLeft","bottomRight"]},themePresetColors:{default:"#0f0f0f",black:"#000000",darkGray:"#1c1a1a",charcoal:"#121212",navy:"#0d1b2a",darkRed:"#3b0505",darkGreen:"#052e1b",darkPurple:"#1a1025"}};var c=function(){if(i)return r;i=1;var e=a;return r={validateConfigValue:function(t,o){var r=e.defaults;if(!Object.prototype.hasOwnProperty.call(r,t))return!1;var i=r[t];if(null===i)return null===o||"string"==typeof o;if(Array.isArray(i))return Array.isArray(o)&&o.every(function(e){return"string"==typeof e});if("number"==typeof i){if("number"!=typeof o||!Number.isFinite(o))return!1;var a=e.ranges[t];return!a||o>=a[0]&&o<=a[1]}if(n(o)!==n(i))return!1;var c=e.enums[t];return(!c||-1!==c.indexOf(o))&&(!("routeColor"===t&&!/^#[0-9a-f]{6}$/i.test(o))&&!("routeBackgroundUrl"===t&&o&&!/^https?:\/\/\S+$/i.test(o)))}},r}(),l=e(c),u="ytaf-configuration",s=JSON.parse,f=JSON.stringify,p=function(e){return s(f(e))},d=p(a.defaults);d.enableFixedUI="undefined"==typeof window||!window.h5vcc||!window.h5vcc.tizentube||a.defaults.enableFixedUI;var h,y=l.validateConfigValue;function b(e){if(Object.prototype.hasOwnProperty.call(d,e))return void 0===h[e]&&(h[e]=p(d[e])),h[e];console.warn("[AxoTube:config] Unknown config key",e)}!function(){h=p(d);try{if(!window.localStorage||!window.localStorage[u])return;var e=s(window.localStorage[u]);if(!e||"object"!==n(e)||Array.isArray(e))return;Object.keys(e).forEach(function(t){y(t,e[t])&&(h[t]=p(e[t]))})}catch(e){console.warn("[AxoTube:config] Config read failed; using defaults:",e)}}();var m=new EventTarget,v={"1440p":"2560x1440","2160p":"3840x2160"},g={width:function(e){return Number(e)>0&&Number(e)<=7680},height:function(e){return Number(e)>0&&Number(e)<=4320},framerate:function(e){return Number(e)>0&&Number(e)<=60},bitrate:function(e){return Number(e)>0&&Number(e)<=2e8},eotf:function(e){return"bt709"===e||("smpte2084"===e||"arib-std-b67"===e)&&w()},channels:function(e){return Number(e)>0&&Number(e)<=8},cryptoblockformat:function(e){return"subsample"===e},"decode-to-texture":function(e){return"true"===e||"false"===e}};function w(){return!(!window.matchMedia||!window.matchMedia("(dynamic-range: high)").matches)}function S(e){var t=e.split("."),o="vp09"===t[0]?t[6]:"av01"===t[0]?t[7]:void 0;return"16"===o||"18"===o}var E="__axotubeResolutionOwner";if(!window[E]){if(window[E]=!0,b("enableExperimentalResolution"))try{window.h5vcc=window.h5vcc||{},window.h5vcc.system=window.h5vcc.system||{},window.h5vcc.system.getVideoContainerSizeOverride=function(){var e=b("experimentalMaxResolution");return v[e]||v["1440p"]},function(){if(window.MediaSource&&"function"==typeof MediaSource.isTypeSupported){var e=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(t){for(var o=String(t).split(";"),n=[o[0].trim()],r=1;r<o.length;r++){var i=o[r].trim(),a=i.indexOf("="),c=(-1===a?i:i.slice(0,a)).trim().toLowerCase(),l=(-1===a?"":i.slice(a+1)).trim().replace(/^"|"$/g,"");if("codecs"===c){for(var u=l.split(","),s=0;s<u.length;s++)if(S(u[s].trim())&&!w())return!1;n.push(i)}else if(g[c]){if(!g[c](l))return!1}else n.push(i)}return e(n.join("; "))}}}()}catch(e){console.warn("[AxoTube:experimentalResolution] Could not install overrides:",e)}m.addEventListener("configChange",function(e){var t,o=(null===(t=e.detail)||void 0===t?void 0:t.key)||"";("enableExperimentalResolution"===o||"experimentalMaxResolution"===o&&b("enableExperimentalResolution"))&&setTimeout(function(){return location.reload()},300)})}var P={avc1:["avc1"],vp9:["vp09","vp9"],av01:["av01"]};var k="__axotubeCodecOwner";if(!window[k]){window[k]=!0;try{!function(e){if(window.MediaSource&&"function"==typeof MediaSource.isTypeSupported){var t=function(e){if(!P[e])return[];var t=[];return Object.keys(P).forEach(function(o){o!==e&&(t=t.concat(P[o]))}),t}(e);if(0!==t.length){var o=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(e){var n=String(e).toLowerCase();if(-1!==n.indexOf("codecs"))for(var r=0;r<t.length;r++)if(-1!==n.indexOf(t[r]))return!1;return o(e)}}}}(b("videoPreferredCodec"))}catch(e){console.warn("[AxoTube:codecPreference] Could not install codec preference:",e)}m.addEventListener("configChange",function(e){var t;"videoPreferredCodec"===((null===(t=e.detail)||void 0===t?void 0:t.key)||"")&&setTimeout(function(){return location.reload()},300)})}var A={"www.gstatic.com":!0,"yt3.ggpht.com":!0,"clients1.google.com":!0,"s.youtube.com":!0,"jnn-pa.googleapis.com":!0,"yt3.googleusercontent.com":!0,"redirector.googlevideo.com":!0,"www.youtube.com":!0,"youtube.com":!0};function O(e,t){var o=e.location;if(!o||"localhost"!==o.hostname&&"127.0.0.1"!==o.hostname)return null;var n=e.document.createElement("a");n.href=String(t);var r,i,a=String(n.href||""),c=/^https:\/\/([^\/?#:]+)/i.exec(a);return c&&(r=c[1],i=String(r||"").toLowerCase(),A[i]||"googlevideo.com"===i||".googlevideo.com"===i.slice(-16))?o.origin+"/cors-bypass/"+a:null}!function(e){if(e&&!e.__axotubeCorsShim){if(e.__axotubeCorsShim=!0,"function"==typeof e.fetch){var t=e.fetch;e.fetch=function(o,r){try{var i=!!o&&"object"===n(o)&&"string"==typeof o.url,a=O(e,i?o.url:o);a&&(i?"GET"!==o.method&&"HEAD"!==o.method||(o=new e.Request(a,{method:o.method,headers:o.headers,credentials:"omit",mode:"cors"})):o=a)}catch(e){}return t.call(e,o,r)}}var o=e.XMLHttpRequest;if(o&&o.prototype&&"function"==typeof o.prototype.open){var r=o.prototype.open;o.prototype.open=function(t,o){var n=Array.prototype.slice.call(arguments);try{var i=O(e,o);i&&(n[1]=i)}catch(e){}return r.apply(this,n)}}}}(window)}();
|
|
1
|
+
!function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t;t||(t=1,function(){if("undefined"==typeof globalThis)try{Object.defineProperty(Object.prototype,"__globalThis__",{get:function(){return this},configurable:!0}),__globalThis__.globalThis=__globalThis__,delete Object.prototype.__globalThis__}catch(e){"undefined"!=typeof window?window.globalThis=window:"undefined"!=typeof self&&(self.globalThis=self)}}(),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.HTMLCollection&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=Array.prototype.forEach),function(){var e=window.EventTarget;if(void 0!==e)try{return void new e}catch(e){}window.EventTarget=function(){var e={};return{addEventListener:function(t,o){"function"==typeof o&&(e[t]||(e[t]=[]),-1===e[t].indexOf(o)&&e[t].push(o))},removeEventListener:function(t,o){var n=e[t];if(n){var r=n.indexOf(o);-1!==r&&n.splice(r,1)}},dispatchEvent:function(t){var o=e[t&&t.type];if(o)for(var n=o.slice(),r=0;r<n.length;r++)try{n[r].call(this,t)}catch(e){console.error(e)}return!(t&&t.defaultPrevented)}}},e&&(window.EventTarget.prototype=e.prototype)}(),function(){function e(){this.aborted=!1,this._cbs=[]}function t(){this.signal=new e}"undefined"==typeof AbortController&&(e.prototype.addEventListener=function(e,t){"abort"===e&&"function"==typeof t&&this._cbs.push(t)},e.prototype.removeEventListener=function(e,t){if("abort"===e){var o=this._cbs.indexOf(t);-1!==o&&this._cbs.splice(o,1)}},e.prototype.dispatchEvent=function(e){if(e&&"abort"===e.type)for(var t=this._cbs.slice(),o=0;o<t.length;o++)t[o](e)},t.prototype.abort=function(){this.signal.aborted||(this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",bubbles:!1,cancelable:!1}))},window.AbortSignal=e,window.AbortController=t)}(),function(){function e(e,t){var o,n=!!(t=t||{}).bubbles,r=!!t.cancelable,i=void 0!==t.detail?t.detail:null;try{(o=document.createEvent("CustomEvent")).initCustomEvent(e,n,r,i)}catch(t){(o=document.createEvent("Event")).initEvent(e,n,r),o.detail=i}return o}"function"!=typeof CustomEvent&&(window.Event&&window.Event.prototype&&(e.prototype=window.Event.prototype),window.CustomEvent=e)}(),"undefined"!=typeof Promise&&"function"!=typeof Promise.prototype.finally&&(Promise.prototype.finally=function(e){var t=this.constructor||Promise;return this.then(function(o){return t.resolve(e()).then(function(){return o})},function(o){return t.resolve(e()).then(function(){throw o})})}),"undefined"!=typeof Promise&&"function"!=typeof Promise.allSettled&&(Promise.allSettled=function(e){return Promise.all(Array.prototype.map.call(e,function(e){return Promise.resolve(e).then(function(e){return{status:"fulfilled",value:e}},function(e){return{status:"rejected",reason:e}})}))}),function(){function e(t,o,n){for(var r=0;r<t.length;r++)o>0&&Array.isArray(t[r])?e(t[r],o-1,n):n.push(t[r]);return n}"function"!=typeof Array.prototype.flat&&(Array.prototype.flat=function(t){return e(this,(t=void 0===t?1:Math.floor(t))<0?0:t,[])})}(),"function"!=typeof Array.prototype.flatMap&&(Array.prototype.flatMap=function(e,t){return Array.prototype.map.call(this,e,t).flat(1)}),"function"!=typeof String.prototype.replaceAll&&(String.prototype.replaceAll=function(e,t){return"string"!=typeof e?this.replace(e,t):this.split(e).join("function"==typeof t?t(e,0,String(this)):String(t))}),"function"==typeof Object.values&&"function"==typeof Object.entries||(Object.values=Object.values||function(e){for(var t=Object.keys(e),o=[],n=0;n<t.length;n++)o.push(e[t[n]]);return o},Object.entries=Object.entries||function(e){for(var t=Object.keys(e),o=[],n=0;n<t.length;n++)o.push([t[n],e[t[n]]]);return o}),"function"!=typeof Object.fromEntries&&(Object.fromEntries=function(e){var t=Object.create(null);if("function"==typeof e.forEach)e.forEach(function(e){t[e[0]]=e[1]});else for(var o=Array.isArray(e)?e:Array.prototype.slice.call(e),n=0;n<o.length;n++)t[o[n][0]]=o[n][1];return t}),"function"!=typeof queueMicrotask&&(window.queueMicrotask=function(e){Promise.resolve().then(e).catch(function(e){setTimeout(function(){throw e},0)})}),window.Element&&"function"!=typeof Element.prototype.closest&&(Element.prototype.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches?t.matches(e):t.msMatchesSelector?t.msMatchesSelector(e):t.webkitMatchesSelector&&t.webkitMatchesSelector(e))return t;t=t.parentElement||t.parentNode}return null}),function(){if(window.Element){var e=Element.prototype;"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;--o>=0&&t.item(o)!==this;);return o>-1})}}(),function(){if("undefined"!=typeof Intl&&"function"!=typeof Intl.Locale){var e={US:"en",GB:"en",AU:"en",CA:"en",IN:"hi",IE:"en",NZ:"en",FR:"fr",DE:"de",ES:"es",IT:"it",PT:"pt",BR:"pt",MX:"es",AR:"es",CO:"es",CL:"es",RU:"ru",UA:"uk",PL:"pl",NL:"nl",BE:"nl",SE:"sv",NO:"no",DK:"da",FI:"fi",TR:"tr",GR:"el",CZ:"cs",SK:"sk",HU:"hu",RO:"ro",BG:"bg",HR:"hr",RS:"sr",JP:"ja",KR:"ko",VN:"vi",TH:"th",ID:"id",MY:"ms",PH:"tl",SA:"ar",AE:"ar",EG:"ar",IL:"he",IR:"fa",PK:"ur",BD:"bn",LK:"si"};t.prototype.maximize=function(){return this},Intl.Locale=t}function t(t,o){o=o||{},this.language=e[o.region]||"en"}}());var o;function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}o||(o=1,function(){var e=!1;try{var t=0,o=[];e="xbx"!=="aba".replaceAll("a",function(e,n){return t+=1,o.push(n),"x"})||2!==t||0!==o[0]||2!==o[1]}catch(t){e=!0}e&&(String.prototype.replaceAll=function(e,t){var o=String(this);if(e instanceof RegExp){if(!e.global)throw new TypeError("replaceAll requires a global RegExp");return o.replace(e,t)}var n=new RegExp(String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");return o.replace(n,t)})}(),function(){var e=!1;try{var t=Object.fromEntries([["a",1]]);e=Object.getPrototypeOf(t)!==Object.prototype}catch(t){e=!0}e&&(Object.fromEntries=function(e){var t={};function o(e){if(e)try{Object.defineProperty(t,e[0],{value:e[1],enumerable:!0,configurable:!0,writable:!0})}catch(o){t[e[0]]=e[1]}}if(e&&"function"==typeof e.forEach)e.forEach(o);else for(var n=Array.isArray(e)?e:Array.prototype.slice.call(e||[]),r=0;r<n.length;r++)o(n[r]);return t})}());var r,i,a={defaults:{enableAdBlock:!0,enableSponsorBlock:!0,enableSponsorBlockToasts:!0,sponsorBlockManualSkips:["intro","outro","filler"],enableSponsorBlockSponsor:!0,enableSponsorBlockIntro:!0,enableSponsorBlockOutro:!0,enableSponsorBlockInteraction:!0,enableSponsorBlockSelfPromo:!0,enableSponsorBlockPreview:!0,enableSponsorBlockMusicOfftopic:!0,enableSponsorBlockFiller:!1,enableSponsorBlockHighlight:!0,videoSpeed:1,preferredVideoQuality:"auto",enableDeArrowTitles:!0,enableDeArrowThumbnails:!0,routeColor:"#0f0f0f",routeBackgroundUrl:"",themePreset:"default",textTheme:"default",userAgentProfile:"auto",enableFixedUI:!1,enableHqThumbnails:!0,enableLongPress:!0,enableShorts:!0,dontCheckUpdateUntil:0,enableWhoIsWatchingMenu:!1,permanentlyEnableWhoIsWatchingMenu:!1,enableWhosWatchingMenuOnAppExit:!1,enableShowUserLanguage:!0,enableShowOtherLanguages:!1,showWelcomeToast:!0,enablePreviousNextButtons:!0,enableSuperThanksButton:!1,enableSpeedControlsButton:!0,enablePatchingVideoPlayer:!0,enableMPButton:!0,enableSwapMPWithPIP:!1,enablePreviews:!0,previewLengthSeconds:40,enableRemainingTime:!1,enablePauseOnBlur:!1,enableLowMemoryMode:!1,enableHideWatchedVideos:!1,hideWatchedVideosThreshold:80,hideWatchedVideosPages:[],enableHideEndScreenCards:!1,enableYouThereRenderer:!0,enableScreenDimming:!1,dimmingTimeout:60,dimmingOpacity:.5,enablePaidPromotionOverlay:!0,speedSettingsIncrement:.25,videoPreferredCodec:"any",enableAutoSubtitles:!0,autoSubtitleLanguage:"en",autoSubtitleAllowAuto:!0,launchToOnStartup:null,reloadHomeOnStartup:!0,disabledSidebarContents:[],disableChannelsOnSidebar:!1,enableUpdater:!0,autoFrameRate:!1,autoFrameRatePauseVideoFor:0,enableSigninReminder:!1,sortSubscriptionsByAlphabet:!1,enableReducedMotion:!1,enablePerformanceMode:!1,enablePanelShrink:!0,enableDeArrowPeek:!0,panelShrinkPercent:"60",clockMode:"off",clockFormat:"24h",clockPosition:"topRight",clockShowSeconds:!1,enableOnePressMode:!1,enableExperimentalResolution:!1,experimentalMaxResolution:"1440p"},ranges:{videoSpeed:[.05,5],hideWatchedVideosThreshold:[0,100],dimmingTimeout:[1,3600],dimmingOpacity:[0,1],speedSettingsIncrement:[.01,1],autoFrameRatePauseVideoFor:[0,1e4],previewLengthSeconds:[5,120],dontCheckUpdateUntil:[0,9007199254740991]},enums:{preferredVideoQuality:["auto","2160p","1440p","1080p","720p","480p","360p","240p","144p"],videoPreferredCodec:["any","vp9","av01","avc1"],themePreset:["default","black","darkGray","charcoal","navy","darkRed","darkGreen","darkPurple"],textTheme:["default","white","gray","red","blue","green","purple","yellow"],userAgentProfile:["auto","samsung","android"],experimentalMaxResolution:["1440p","2160p"],autoSubtitleLanguage:["en","hi","es","fr","de","pt","ja","ko","ru"],panelShrinkPercent:["50","60","70"],clockMode:["off","always","notPlaying"],clockFormat:["24h","12h","12hNoAmPm"],clockPosition:["topLeft","topRight","bottomLeft","bottomRight"]},themePresetColors:{default:"#0f0f0f",black:"#000000",darkGray:"#1c1a1a",charcoal:"#121212",navy:"#0d1b2a",darkRed:"#3b0505",darkGreen:"#052e1b",darkPurple:"#1a1025"}};var c=function(){if(i)return r;i=1;var e=a;return r={validateConfigValue:function(t,o){var r=e.defaults;if(!Object.prototype.hasOwnProperty.call(r,t))return!1;var i=r[t];if(null===i)return null===o||"string"==typeof o;if(Array.isArray(i))return Array.isArray(o)&&o.every(function(e){return"string"==typeof e});if("number"==typeof i){if("number"!=typeof o||!isFinite(o))return!1;var a=e.ranges[t];return!a||o>=a[0]&&o<=a[1]}if(n(o)!==n(i))return!1;var c=e.enums[t];return(!c||-1!==c.indexOf(o))&&(!("routeColor"===t&&!/^#[0-9a-f]{6}$/i.test(o))&&!("routeBackgroundUrl"===t&&o&&!/^https?:\/\/\S+$/i.test(o)))}},r}(),l=e(c),u="ytaf-configuration",s=JSON.parse,f=JSON.stringify,p=function(e){return s(f(e))},d=p(a.defaults);d.enableFixedUI="undefined"==typeof window||!window.h5vcc||!window.h5vcc.tizentube||a.defaults.enableFixedUI;var h,y=l.validateConfigValue;function b(e){if(Object.prototype.hasOwnProperty.call(d,e))return void 0===h[e]&&(h[e]=p(d[e])),h[e];console.warn("[AxoTube:config] Unknown config key",e)}!function(){h=p(d);try{if(!window.localStorage||!window.localStorage[u])return;var e=s(window.localStorage[u]);if(!e||"object"!==n(e)||Array.isArray(e))return;Object.keys(e).forEach(function(t){y(t,e[t])&&(h[t]=p(e[t]))})}catch(e){console.warn("[AxoTube:config] Config read failed; using defaults:",e)}}();var m=new EventTarget,v={"1440p":"2560x1440","2160p":"3840x2160"},g={width:function(e){return Number(e)>0&&Number(e)<=7680},height:function(e){return Number(e)>0&&Number(e)<=4320},framerate:function(e){return Number(e)>0&&Number(e)<=60},bitrate:function(e){return Number(e)>0&&Number(e)<=2e8},eotf:function(e){return"bt709"===e||("smpte2084"===e||"arib-std-b67"===e)&&w()},channels:function(e){return Number(e)>0&&Number(e)<=8},cryptoblockformat:function(e){return"subsample"===e},"decode-to-texture":function(e){return"true"===e||"false"===e}};function w(){return!(!window.matchMedia||!window.matchMedia("(dynamic-range: high)").matches)}function S(e){var t=e.split("."),o="vp09"===t[0]?t[6]:"av01"===t[0]?t[7]:void 0;return"16"===o||"18"===o}var E="__axotubeResolutionOwner";if(!window[E]){if(window[E]=!0,b("enableExperimentalResolution"))try{window.h5vcc=window.h5vcc||{},window.h5vcc.system=window.h5vcc.system||{},window.h5vcc.system.getVideoContainerSizeOverride=function(){var e=b("experimentalMaxResolution");return v[e]||v["1440p"]},function(){if(window.MediaSource&&"function"==typeof MediaSource.isTypeSupported){var e=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(t){for(var o=String(t).split(";"),n=[o[0].trim()],r=1;r<o.length;r++){var i=o[r].trim(),a=i.indexOf("="),c=(-1===a?i:i.slice(0,a)).trim().toLowerCase(),l=(-1===a?"":i.slice(a+1)).trim().replace(/^"|"$/g,"");if("codecs"===c){for(var u=l.split(","),s=0;s<u.length;s++)if(S(u[s].trim())&&!w())return!1;n.push(i)}else if(g[c]){if(!g[c](l))return!1}else n.push(i)}return e(n.join("; "))}}}()}catch(e){console.warn("[AxoTube:experimentalResolution] Could not install overrides:",e)}m.addEventListener("configChange",function(e){var t,o=(null===(t=e.detail)||void 0===t?void 0:t.key)||"";("enableExperimentalResolution"===o||"experimentalMaxResolution"===o&&b("enableExperimentalResolution"))&&setTimeout(function(){return location.reload()},300)})}var P={avc1:["avc1"],vp9:["vp09","vp9"],av01:["av01"]};var k="__axotubeCodecOwner";if(!window[k]){window[k]=!0;try{!function(e){if(window.MediaSource&&"function"==typeof MediaSource.isTypeSupported){var t=function(e){if(!P[e])return[];var t=[];return Object.keys(P).forEach(function(o){o!==e&&(t=t.concat(P[o]))}),t}(e);if(0!==t.length){var o=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(e){var n=String(e).toLowerCase();if(-1!==n.indexOf("codecs"))for(var r=0;r<t.length;r++)if(-1!==n.indexOf(t[r]))return!1;return o(e)}}}}(b("videoPreferredCodec"))}catch(e){console.warn("[AxoTube:codecPreference] Could not install codec preference:",e)}m.addEventListener("configChange",function(e){var t;"videoPreferredCodec"===((null===(t=e.detail)||void 0===t?void 0:t.key)||"")&&setTimeout(function(){return location.reload()},300)})}var A={"www.gstatic.com":!0,"yt3.ggpht.com":!0,"clients1.google.com":!0,"s.youtube.com":!0,"jnn-pa.googleapis.com":!0,"yt3.googleusercontent.com":!0,"redirector.googlevideo.com":!0,"www.youtube.com":!0,"youtube.com":!0};function O(e,t){var o=e.location;if(!o||"localhost"!==o.hostname&&"127.0.0.1"!==o.hostname)return null;var n=e.document.createElement("a");n.href=String(t);var r,i,a=String(n.href||""),c=/^https?:\/\/([^\/?#:]+)/i.exec(a);return c&&(r=c[1],i=String(r||"").toLowerCase(),A[i]||"googlevideo.com"===i||".googlevideo.com"===i.slice(-16))?(/^http:\/\//i.test(a)&&(a="https://"+a.slice(7).replace(/^([^\/?#]*?):80(?=[\/?#]|$)/,"$1")),o.origin+"/cors-bypass/"+a):null}!function(e){if(e&&!e.__axotubeCorsShim){if(e.__axotubeCorsShim=!0,"function"==typeof e.fetch){var t=e.fetch;e.fetch=function(o,r){try{var i=!!o&&"object"===n(o)&&"string"==typeof o.url,a=O(e,i?o.url:o);a&&(i?"GET"!==o.method&&"HEAD"!==o.method||(o=new e.Request(a,{method:o.method,headers:o.headers,credentials:"omit",mode:"cors"})):o=a)}catch(e){}return t.call(e,o,r)}}var o=e.XMLHttpRequest;if(o&&o.prototype&&"function"==typeof o.prototype.open){var r=o.prototype.open;o.prototype.open=function(t,o){var n=Array.prototype.slice.call(arguments);try{var i=O(e,o);i&&(n[1]=i)}catch(e){}return r.apply(this,n)}}}}(window)}();
|