axotube 1.15.4 → 1.30.0
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 -0
- package/dist/userScript.js +1 -3
- package/package.json +15 -25
- package/.gitattributes +0 -2
- package/.github/FUNDING.yml +0 -1
- package/.history/.gitignore_20251216185632 +0 -6
- package/.history/.gitignore_20260513121150 +0 -7
- package/.history/.gitignore_20260513121909 +0 -6
- package/.history/.npmrc_20260514105441 +0 -0
- package/.history/.npmrc_20260514105444 +0 -1
- package/.history/package_20251216185632.json +0 -25
- package/.history/package_20260513121305.json +0 -25
- package/.history/package_20260513121308.json +0 -25
- package/.history/package_20260513121520.json +0 -25
- package/.history/package_20260513122152.json +0 -25
- package/.history/package_20260514104836.json +0 -25
- package/.history/package_20260514104844.json +0 -25
- package/LICENSE +0 -674
- package/README.md +0 -24
- package/dist/service.js +0 -50399
package/dist/early.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";function e(n){return e="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},e(n)}var n,o,r={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",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"],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"}};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a=function(){if(o)return n;o=1;var t=r;return n={validateConfigValue:function(n,o){var r=t.defaults;if(!Object.prototype.hasOwnProperty.call(r,n))return!1;var a=r[n];if(null===a)return null===o||"string"==typeof o;if(Array.isArray(a))return Array.isArray(o)&&o.every(function(e){return"string"==typeof e});if("number"==typeof a){if("number"!=typeof o||!Number.isFinite(o))return!1;var i=t.ranges[n];return!i||o>=i[0]&&o<=i[1]}if(e(o)!==e(a))return!1;var l=t.enums[n];if(l&&!l.includes(o))return!1;if("routeColor"===n&&!/^#[0-9a-f]{6}$/i.test(o))return!1;if("routeBackgroundUrl"===n&&o)try{var u=new URL(o);if("http:"!==u.protocol&&"https:"!==u.protocol)return!1}catch(e){return!1}return!0}},n}(),i=t(a),l="ytaf-configuration",u=JSON.parse,c=JSON.stringify,d=function(e){return u(c(e))},s=d(r.defaults);s.enableFixedUI="undefined"==typeof window||!window.h5vcc||!window.h5vcc.tizentube||r.defaults.enableFixedUI;var f,p=i.validateConfigValue;function b(e){if(Object.prototype.hasOwnProperty.call(s,e))return void 0===f[e]&&(f[e]=d(s[e])),f[e];console.warn("[AxoTube:config] Unknown config key",e)}!function(){f=d(s);try{if(!window.localStorage||!window.localStorage[l])return;var n=u(window.localStorage[l]);if(!n||"object"!==e(n)||Array.isArray(n))return;Object.keys(n).forEach(function(e){p(e,n[e])&&(f[e]=d(n[e]))})}catch(e){console.warn("[AxoTube:config] Config read failed; using defaults:",e)}}();var h=new EventTarget,m={"1440p":"2560x1440","2160p":"3840x2160"},v={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)&&y()},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 y(){return!(!window.matchMedia||!window.matchMedia("(dynamic-range: high)").matches)}function S(e){var n=e.split("."),o="vp09"===n[0]?n[6]:"av01"===n[0]?n[7]:void 0;return"16"===o||"18"===o}var w="__axotubeResolutionOwner";if(!window[w]){if(window[w]=!0,b("enableExperimentalResolution"))try{window.h5vcc=window.h5vcc||{},window.h5vcc.system=window.h5vcc.system||{},window.h5vcc.system.getVideoContainerSizeOverride=function(){var e=b("experimentalMaxResolution");return m[e]||m["1440p"]},function(){if(window.MediaSource&&"function"==typeof MediaSource.isTypeSupported){var e=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(n){for(var o=String(n).split(";"),r=[o[0].trim()],t=1;t<o.length;t++){var a=o[t].trim(),i=a.indexOf("="),l=(-1===i?a:a.slice(0,i)).trim().toLowerCase(),u=(-1===i?"":a.slice(i+1)).trim().replace(/^"|"$/g,"");if("codecs"===l){for(var c=u.split(","),d=0;d<c.length;d++)if(S(c[d].trim())&&!y())return!1;r.push(a)}else if(v[l]){if(!v[l](u))return!1}else r.push(a)}return e(r.join("; "))}}}()}catch(e){console.warn("[AxoTube:experimentalResolution] Could not install overrides:",e)}h.addEventListener("configChange",function(e){var n,o=(null===(n=e.detail)||void 0===n?void 0:n.key)||"";("enableExperimentalResolution"===o||"experimentalMaxResolution"===o&&b("enableExperimentalResolution"))&&setTimeout(function(){return location.reload()},300)})}var g={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 n=function(e){if(!g[e])return[];var n=[];return Object.keys(g).forEach(function(o){o!==e&&(n=n.concat(g[o]))}),n}(e);if(0!==n.length){var o=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(e){var r=String(e).toLowerCase();if(-1!==r.indexOf("codecs"))for(var t=0;t<n.length;t++)if(-1!==r.indexOf(n[t]))return!1;return o(e)}}}}(b("videoPreferredCodec"))}catch(e){console.warn("[AxoTube:codecPreference] Could not install codec preference:",e)}h.addEventListener("configChange",function(e){var n;"videoPreferredCodec"===((null===(n=e.detail)||void 0===n?void 0:n.key)||"")&&setTimeout(function(){return location.reload()},300)})}}();
|