modify landing page

This commit is contained in:
Bkk1234 committed 2026-11-16 01:39:59 +07:00
commit dd232b1c02
2599 files changed
+226992

No files matched your search

@@ -0,0 +1,3 @@
"use strict";var _min=("undefined"!=typeof __min?__min:null)||_min||{};_min=function(e){function t(e,t,r){function n(e,t){var r=null;switch(t=i(e,t),e){case o.Emitter.NEW_VIDEO_EVENT:r=g();break;case o.Emitter.NEW_SCRAPE_EVENT:r=h();break;case o.Emitter.CLICK:case o.Emitter.VIEWPORT:r=d();break;case o.Emitter.URL_REPORT:case o.Emitter.DAILY_USER:r=p();break;case o.Emitter.VIDEO_VIEWS:r=c();break;case o.Emitter.CUSTOM_EVENTS:r=u();break;case o.Emitter.CROWD_SOURCE:r=l()}r.push(e,t)}function i(t,r){switch(t){case o.Emitter.VIDEO_VIEWS:r.hadImpressionSession=e.parseBool(r.hadImpressionSession),r.hadImpressionSession?visibilityAnalyticsService.setHadImpressionSession():r.hadImpressionSession=visibilityAnalyticsService.hadImpressionSession()}return r}function a(){for(var e=0;e<s.length;e++)s[e].flush()}var s=[],l=function(){var n=new m(e,t,r.UrlReporter,(!0));return n.setMasQueueLength(1),n.init(),s.push(n),function(){return n}}(),c=function(){var n=new m(e,t,r.UrlReporter,(!0));return n.init(),s.push(n),function(){return n}}(),u=function(){var n=new m(e,t,r.UrlReporter,(!0));return n.init(),s.push(n),function(){return n}}(),d=function(){var n=new m(e,t,r.UrlReporter,(!0));return n.enableStorage("_minEE1"),n.init(),s.push(n),function(){return n}}(),p=function(){var n=new m(e,t,r.UrlReporter,(!0));return n.init(),s.push(n),function(){return n}}(),g=function(){var n=new m(e,t,r.VideoData,(!1),o.ReportMethods.GET);return n.init(),s.push(n),function(){return n.setValidator(e.validateScraperURL),n}}(),h=function(){var n=new m(e,t,r.UrlReporter,(!1));return n.init(),s.push(n),function(){return n}}();return{getVideoViewsReporter:c,getCounterServerReporter:d,getPlayerContent:g,getPlayerContentDelayed:h,send:n,flushAll:a}}function r(e,t,r){var n=r;if(""!==n){e[f.QUERY_PARAMS_SOURCE]+=n+" ",0===n.indexOf(t)&&(n=n.slice(1));for(var i,o,a=n.split("&"),s=/^qadt([\d\w]+)$/,l=0;l<a.length;l++)i=a[l].split("="),o=i[0],s.test(o)&&(o=o.replace(s,"$1"),e[o]=i[1])}}function n(){function e(){setInterval(function(){d.dispatchEvent(o.Events.ONE_SECONDS_INTERVAL,{interval:1e3}),location.href!=t&&(t=location.href,d.dispatchEvent(o.Events.URL_MANIPULATION_INTERVAL_SERVICE,{interval:1e3}))},1e3),setInterval(function(){d.dispatchEvent(o.Events.THREE_SECONDS_INTERVAL)},3e3)}var t=location.href;return{init:e}}if(_min.debug)window._minAlreadyLoaded=!1;else{if(window._minAlreadyLoaded)return void console.warn("Minute.ly already loaded");window._minAlreadyLoaded=!0}!function(){function t(e,t){var n=r();if(n){var i="POST";n.open(i,e,!0),n.setRequestHeader("User-Agent","XMLHTTP/1.0"),t&&n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),4!=n.readyState&&n.send(t)}}function r(){for(var e=!1,t=0;t<u.length;t++){try{e=u[t]()}catch(r){continue}break}return e}function n(){for(var e={},t=0;t<arguments.length;t+=1)for(var r=arguments[t],n=Object.keys(r),i=0;i<n.length;i+=1)e[n[i]]=r[n[i]];return e}function i(e){var t=/(mi-[\d|scraper-\d.]*\.js)/m,r=e&&e.stack,n=e&&e.message;if(r&&t.test(r)){var i={message:n,stack:JSON.stringify(r)};a(i)}}function o(){return{ver:c.flavor.file.replace(/[^\d.]/g,"").slice(0,-1),env:"production",publisher_id:c._publisher,source:_min.compatibility.isDeviceMobile()?2:1,user_id:c.sessionData.uid,session_id:c.sessionData.sessionId,url:window.self===window.top?window.location.href:document.referrer,level:"error",category:"general"}}function a(e){"string"==typeof e&&(e={message:e}),e.level="error";var t=n(o(),e);s(JSON.stringify(t))}function s(e){l("//errors.tldw.me/",e)}function l(e,r){navigator.sendBeacon?navigator.sendBeacon(e+"_.gif",r):t(e+"_.gif",r)}var c=JSON.parse(JSON.stringify(e)),u=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];window.addEventListener("error",function(e){i(e.error)}),window.addEventListener("unhandledrejection",function(e){i(e.reason)})}();var i=function(){function e(e){return Array.prototype.slice.call(e)}var t=function(){this.listeners=Object.create(null)};return t.prototype.addEventListener=function(t,r,n){var i=e(arguments);i=i.length>3?i.slice(3):[],this.listeners[t]=this.listeners[t]||[],this.listeners[t].push({context:n,callback:r,isOnce:!1,args:i})},t.prototype.addEventListenerOnce=function(t,r,n){var i=e(arguments);i=i.length>3?i.slice(3):[],this.listeners[t]=this.listeners[t]||[],this.listeners[t].push({context:n,callback:r,isOnce:!0,args:i})},t.prototype.removeEventListener=function(e,t,r){if(this.listeners[e]){for(var n=this.listeners[e].length,i=[],o=0;o<n;o++){var a=this.listeners[e][o];a.context===r&&a.callback===t||i.push(a)}this.listeners[e]=i}},t.prototype.removeAllEventListener=function(){this.listeners={}},t.prototype.dispatchEvent=function(e,t){var r={type:e,data:t},n=Array.prototype.slice.call(arguments,2);n.unshift(r);var i=this.listeners[e],o=0;if(i)for(var a=i.length-1;a>=0;a--){var s=i[a];if(s&&s.cLine truncated
var t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),t.toUTCString()},s.addWinEventListener=function(e,t,r,n){t.addEventListener?t.addEventListener(e,r.bind(n),!1):t.attachEvent&&t.attachEvent(e,r.bind(n))},s.removeWinEventListener=function(e,t,r,n){t.addEventListener?t.removeEventListener(e,r,!1):t.attachEvent&&t.detachEvent(e,r)},s.hasOwnProperty=Object.prototype.hasOwnProperty,s.isObjEmpty=function(e){if(null==e)return!0;if(e.length>0)return!1;if(0===e.length)return!0;for(var t in e)if(s.hasOwnProperty.call(e,t))return!1;return!0},s.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},s.includes=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return!0;return!1},s.isJsonString=function(e){try{JSON.parse(e)}catch(t){return!1}return!0},s.isDateString=function(e){try{new Date(e)}catch(t){return!1}return!0},s.getParamsFromUrl=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)"),n=r.exec(e);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},s.isValidURL=function(e){var t={valid:!0,obj:{}};try{t.obj=new URL(e)}catch(r){t.valid=!1}return t},function(){function e(e){function t(){return S}function r(){if(!h){var e=void 0;h=new s.cleanWindowInstance.XMLHttpRequest,m===c?f+="_.gif?"+E:(m=u,f+="_.gif",e=E);try{h.open(m,f,!0)}catch(t){return}y&&h.setRequestHeader(i,y),h.onload=n,h.onerror=g,h.ontimeout=p,h.timeout=v,h.send(e)}}function n(){h.status>=200&&h.status<300?_.dispatch():P.dispatch("XHR_Complete:"+h.status)}function p(){P.dispatch("timeout")}function g(){P.dispatch("error:"+h.status)}var h,f=e.url||"",m=e.method||c,y=m===c?o:l,v=e.timeout||5e3,E=e.data,_=new a.utils.Signal,P=new a.utils.Signal,S="XHR"+d++;return{getID:t,load:r,onComplete:_,onError:P,Methods:{GET:c,POST:u}}}function t(t,r){var n=new e(t),i=function(e){p[n.getID()]=void 0,n.onComplete.removeAll(),n.onError.removeAll(),r(e)};return p[n.getID()]=n,n.onComplete.addOnce(i),n.onError.addOnce(i),n.load(),n}function r(e,r){return e.method=c,t(e,r)}function n(e,r){return e.method=u,t(e,r)}var i="Content-Type",o="image/gif",l="application/text",c="get",u="post",d=0;a.utils=a.utils||{},a.utils.ajax=a.utils.ajax||{},a.utils.ajax.XHRRequest=e;var p={};a.utils.ajax.sendGetRequest=r,a.utils.ajax.sendPostRequest=n}();var y=function(){function e(e){r(o.Urls.Logger,e,o.ReportMethods.POST)}function t(e){r(o.Urls.Error,e,o.ReportMethods.POST)}function r(e,t,r){if(!r&&V)return void p(e+"_.gif?"+t);r=r||o.ReportMethods.POST;var l=a.utils.ajax;switch(r){case o.ReportMethods.GIF:i(e,t);break;case o.ReportMethods.GET:l.sendGetRequest({url:e,data:t},n);break;case o.ReportMethods.POST:s.sendBeaconNative?s.sendBeaconNative.call(navigator,e+"_.gif",t):l.sendPostRequest({url:e,data:t},n)}}function n(e){}function i(e,t){var r=new Image;r.onload=function(){l(this)},r.onerror=function(){s.sendErrorReport("EmitterErrorContent:NoTrace"),l(this)},r.src=e+"_.gif?"+t,document.body.appendChild(r)}function l(e){try{document.body.removeChild(e)}catch(t){}}function c(){var e=V.getItem(w);e=e?JSON.parse(e):[],M=e}function u(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push({owner:n.owner,url:n.url,state:n.state,time:n.time,retry:n.retry})}return t}function d(){clonedList=u(M),V.setItem(w,JSON.stringify(clonedList)),M=null}function p(e){var t={owner:U,url:e,image:null,state:T,time:0,retry:-1};c(),g(t),M.push(t),d()}function g(e){e.image=h(e),e.time=s.getTimeNow(),e.retry+=1,e.state=D,document.body.appendChild(e.image)}function h(e){var t=new Image;return t.onload=function(){f(e)},t.onerror=function(){m(e)},t.src=e.url,t}function f(e){c(),v(e),d()}function m(e){if(s.sendErrorReport("EmitterErrorContent:"+JSON.stringify(e)),e.retry===F)return c(),v(e),void d();var t=e.retry*R;setTimeout(function(){c(),y(e),d()},t)}function y(e){_(e),E(e),g(e),M.push(e)}function v(e){_(e),E(e)}function E(e){for(var t=-1,r=0;r<M.length;r++)e.url===M[r].url&&(t=r);t>-1&&M.splice(t,1)}function _(e){try{document.body.removeChild(e.image)}catch(t){}}function P(){c(),S(),d()}function S(){for(var e,t=0;t<M.length;t++)e=M[t],I(e)&&A(e)}function I(e){if(e.guid===U)return!0;var t=s.getTimeNow()-e.time;return t>N&&(e.guid=U,e.retry=-1,!0)}function A(e){var t=!1;switch(e.state){case T:case b:t=!0;break;case C:v(e);break;case D:var r=s.getTimeNow()-e.time;r>O&&(t=!0)}t&&y(e)}var w="_minRTrs",T=0,D=1,b=2,C=3,O=2e4,N=35e3,L=5e3,R=5e3,F=20,U=s.generateUnique(),V=null,M=null,k=null;return V&&(k=new a.utils.Timer(L,P),k.start()),{send:r,sendLog:e,sendError:t}}(),v=(function(){function e(e,t){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=n.right>r.right,a=n.left<r.left,s=n.top>=r.bottom,l=n.bottom<=r.top,c={state:i.FULLY_VISIBLE,percentage:1};return s||l?(c.percentage=0,c.state=i.HIDDEN,c):(a?c.percentage=(n.right-r.left)/n.width:o&&(c.percentage=(n.width-(n.right-r.right))/n.width),c.percentage>0&&c.percentage<1?c.state=i.ANALYTICS_VISIBLE:c.percentage<=0?c.state=i.HIDDEN:c.state=i.FULLY_VISIBLE,c.percentaLine truncated
},e.prototype.handleDriver_PlayerVideoChanged=function(e){d.dispatchEvent(o.Events.PLAYER_VIDEO_CHANGED,{container:e.scrapData.playerPlaceholder,playerJS:e.scrapData.playerJS,articleUrl:e.scrapData.url,videoId:e.scrapData.videoId,newVideoId:e.videoId})},a.scrap.plugin.PlayerVideoChanged=e,a.scrap.factory.addPlugin(e)}(),function(){function t(){t.__superCtor__.call(this),this._driverList=[]}s["extends"](t,a.scrap.plugin.Base),t.getType=function(){return a.scrap.ScrapPlugin.VIDEO_VIEW},t.getName=function(){return"VideoViews"},t.prototype.getType=function(){return t.getType()},t.prototype.addDriver=function(e){this._driverList.push(e),e.onVideoView().add(this.handleVideoView,this)},t.prototype.handleVideoView=function(t){d.dispatchEvent(o.Events.PLAYER_PLAYING,{videoId:t.videoId,counter:t.counter});var r={url:t.url,vid:t.videoId,test_mode:F.getGroupCode(),comp:N.isBrowserSupported()?1:0,source:N.getAnalyticsSource(),publisher:e._publisher,hadImpression:t.hadImpression,hadImpressionSession:visibilityAnalyticsService.hadImpressionSession(),counter:t.counter,script_time:g.getScriptTime(),config_time:g.getConfigTime()};R.send(o.Emitter.VIDEO_VIEWS,r)},a.scrap.plugin.VideoViews=t,a.scrap.factory.addPlugin(t)}(),function(){function e(){this._onPlayerInstanceFound=new a.utils.Signal,this._onPlayerFeaturedInstanceFound=new a.utils.Signal,this._onPlayerPlaceholderFound=new a.utils.Signal,this._onContainerPlaceholderList=new a.utils.Signal,this._detectorList=[],this._pickerList=[],this._counter=0,this._scraperTimer=null}a.scrap.DetectorsCollector=e,e.prototype.onPlayerInstanceFound=function(){return this._onPlayerInstanceFound},e.prototype.onPlayerFeaturedInstanceFound=function(){return this._onPlayerFeaturedInstanceFound},e.prototype.onContainerPlaceholderList=function(){return this._onContainerPlaceholderList},e.prototype.onPlayerPlaceholderFound=function(){return this._onPlayerPlaceholderFound},e.prototype.init=function(){this.initPlayers(),this.initPicker(),this.startTimer(),this.detectNewPlayers()},e.prototype.initPlayers=function(){for(var e,t,r=a.scrap.factory.getAllRegisterdDetectors(),n=Object.keys(r),i=0;i<n.length;i++)e=a.scrap.factory.getDetector(n[i]),t=new e,t.onPlayerInstanceFound().add(this.handleDetector_PlayerInstanceFound,this),t.onPlayerPlaceholderFound().add(this.handleDetector_PlayerPlaceholderFound,this),t.onContainerPlaceholderList().add(this.handleDetector_ContainerPlaceholderList,this),this._detectorList.push(t);0===this._detectorList.length&&s.log("No scrapers found to initialize.")},e.prototype.initPicker=function(){for(var e,t=a.scrap.factory.getAllRegisteredPickers(),r=Object.keys(t),n=0;n<r.length;n++)e=a.scrap.factory.getPicker(r[n]),this.createPicker(e);0===this._pickerList.length&&(this.createPicker(a.scrap.picker.Base),s.log("No picker found to initialize - using Base"))},e.prototype.addDriver=function(e){for(var t=0;t<this._pickerList.length;t++){var r=this._pickerList[t];r.addDriver(e)}e.onDisposed().addOnce(this.handleDriver_Disposed,this)},e.prototype.createPicker=function(e){var t=new e;t.setPlayerCollection(this),t.onPlayerFeaturedInstanceFound().add(this.handlePicker_PlayerFeaturedInstanceFound,this),this._pickerList.push(t)},e.prototype.handleDetector_PlayerInstanceFound=function(e){e.index=this._counter,this._onPlayerInstanceFound.dispatch(e),this._counter++},e.prototype.handleDetector_PlayerPlaceholderFound=function(e){this._onPlayerPlaceholderFound.dispatch(e)},e.prototype.handlePicker_PlayerFeaturedInstanceFound=function(e){this._onPlayerFeaturedInstanceFound.dispatch(e)},e.prototype.handleDetector_ContainerPlaceholderList=function(e){this._onContainerPlaceholderList.dispatch(e)},e.prototype.handleDriver_Disposed=function(e){for(var t=0;t<this._detectorList.length;t++){var r=this._detectorList[t];r.playerDisposed(e.getID())}},e.prototype.startTimer=function(){d.addEventListener(o.Events.THREE_SECONDS_INTERVAL,this.detectNewPlayers,this)},e.prototype.detectNewPlayers=function(){for(var e=0;e<this._detectorList.length;e++){var t=this._detectorList[e];t.detectNewPlayers()}}}(),function(){function e(e){this._detectorCollection=e,this._pluginHash=[],this._init()}a.scrap.PluginsCollector=e,e.prototype.addDriver=function(e){for(var t=0;t<this._pluginHash.length;t++){var r=this._pluginHash[t];r.addDriver(e)}},e.prototype._init=function(){for(var e=0;e<a.scrap.ScrapPluginAll.length;e++){var t=a.scrap.factory.getPlugin(a.scrap.ScrapPluginAll[e]);if(t)if(!t.shouldRun||t.shouldRun()){var r=new t;r.setPlayerCollection(this._detectorCollection),this._pluginHash.push(r)}else s.log("Plugin "+(t.getName()||t.getType())+" is not running.")}}}(),function(){function e(){e.__superCtor__.call(this),this._driverHash={},this._detectorCollection=new a.scrap.DetectorsCollector,this._detectorCollection.onPlayerInstanceFound().add(this.handleDetector_PlayerInstanceFound,this),this._detectorCollection.init(),this._pluginsCollection=new a.scrap.PluginsCollector(this._detectorCollection),a.scrap.startUrLine truncated