Scan your site now

Security Report Summary
E
Site:
Scanned Site(s):
1
IP Address:
185.88.181.10
Report Time:
28 Sep 2020 06:29:59 UTC
Checks:
Window Referrer
Window Opener
Comments
Enabled Debugging
Unsafe Functions
Warning:
Please have a look at the security issues / warnings in the report.
Security Issues
Window Referrer
  • window.open(e,"_blank")},e.prototype.redraw=function(){var e=(this.video_ad_div.offsetWidth,this.video_ad_div.offsetHeight,this.getDrawResizeCoef()),t=1.4;this.desktop_view&&(t=.9);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(this.adlink,"_blank"),this.closeFakePlayerAd(),t||this.need_doubleclick_ad?this.doubleclick_debug("secdbclick",e):this.doubleclick_debug("firstclick",e)},closeFakePlayerAd:function(){var e=this.url_low;this.url_high.length>0&&(e=this.url_high),this.globallink.href=e,this.advertdivcontainer&&(this.advertdivcontainer.style.visibility="hidden",this.advertdiv.style.visibility="hidden",this.advertclosebut.style.visibility="hidden",this.advertdoubleclick.style.visibility="hidden"),this.playlinks.style.visibility="visible",(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||/Symbian.3. Series60.5.[3-5]/.test(navigator.userAgent)||/UCBrowser/.test(navigator.userAgent)||this.is_smarttv)&&(this.videoplayer=document.createElement("video"),this.videoplayer.controls="controls",this.videoplayer.style.width="100%",this.videoplayer.style.backgroundColor="#000",this.videoplayer.src=this.globallink.href,this.videoplayer.poster=this.url_thumb,this.is_smarttv&&(this.videoplayer.autoplay="true"),this.video_div.replaceChild(this.videoplayer,this.globallink),this.hideElt(this.globallink)),this.redrawFakePlayer()},draw:function(){var e=this;if(this.send_debug_event("loaded"),this.load_start=(new Date).getTime(),this.global_div.innerHTML="",this.global_div.className="embed-responsive",this.desktop_view&&(this.global_div.className+=" desktop"),this.video_div=this.createElt("div","embed-responsive-item","hlsplayer"),this.global_div.appendChild(this.video_div),this.setupEvents(),this.drawVideoDiv(),this.drawBigButtons(),this.use_browser_controls?(this.drawBrowserControlsButtons(),this.drawSubscribeButton(),this.uploader_name&&(this.appendToVideoDiv(this.subscribebarbt),this.subscribebarbt.style.position="absolute",this.subscribebarbt.style.left="0",this.subscribebarbt.style.bottom="0")):(this.drawFastForward(),this.drawProgressBarBg(),this.drawButtonsBars(),this.drawProgressBar()),this.use_parameter_menu||this.drawQualityButtons(),this.is_embed&&this.drawEmbedElements(),this.display_inplayersquare?this.drawAdvertisement():this.closeAd(),this.displaySponsorlink(),this.redraw(),console.log("Video initial draw done"),this.use_hls?xv.console.log("HTML5 Player drawed with Hls.js : "+this.url_hls,"Player"):this.use_native_hls?xv.console.log("HTML5 Player drawed with native Hls : "+this.url_hls,"Player"):xv.console.log("HTML5 Player drawed with MP4 support : "+this.url_high,"Player"),this.send_device_speed){var t=(new Date).getTime()-this.load_start;this.send_debug_event("devicespeed",t),xv.console.log("HTML5 Player device speed "+t+"ms","Player")}if(this.desktop_view){if("undefined"==typeof window.xv||"undefined"==typeof window.xv.conf||"undefined"==typeof window.xv.conf.dyn||"boolean"!=typeof window.xv.conf.dyn.premium||!window.xv.conf.dyn.premium){!function(){if(!e.is_premium_site){var t=navigator.userAgent.match(/(chrome|crios)\/(\d+)\./i);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(e.https_protocol+"://www.xvideos.com"+e.video_url,"_blank");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(e.https_protocol+"://www.xvideos.com"+e.video_url,"_blank")}else t&&e.showPause(),e.showInfos(!1)},this.video_event_click=function(t){console.log("video_event_click(event) ",t);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(e.http_protocol+"://www.xvideos.com"+e.video_url,"_blank"):window.xv&&window.xvideos.player&&window.xvideos.player.openDownload&&window.xvideos.player.openDownload()},!1),this.setupButtonBarEvents(this.downloadbarbt,!0),this.rightbuttonsbar.appendChild(this.downloadbarbt),this.desktop_view&&(this.is_premium_site&&(this.loadPreference(),this.forceExpanded&&this.toggleExpand()),this.expandbarbt=this.createImgBtn("icon-screen-expand.svg","player.double_player_size"),this.expandbarbt.addEventListener("click",function(t){t.stopPropagation(),console.log("Expand click addEventListener"),e.toggleExpand()},!1),this.setupButtonBarEvents(this.expandbarbt,!0),this.rightbuttonsbar.appendChild(this.expandbarbt)),this.fullscreenbarbt=this.createImgBtn("icon-screen-fullscreen.svg","player.fullscreen"),this.fullscreenbarbt.addEventListener("click",function(t){console.log("Fullscreen click addEventListener"),t.stopPropagation(),e.fullscreen()}),this.setupButtonBarEvents(this.fullscreenbarbt,!0),this.rightbuttonsbar.appendChild(this.fullscreenbarbt)},drawSubscribeButton:function(){if(this.uploader_name){var e=this;this.subscribebarbt=this.createElt("div","subscribe");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(e.http_protocol+"://www.xvideos.com"+e.video_url,"_blank"):e.streamVideo()},function(e){}),this.support_native_hls&&this.support_hlsjs&&(this.use_hls||this.use_native_hls)&&this.addParameterElement(this.advancedmenu,-1,"buildinplayer",this.i18n.__("player.builtin_player"),!0,function(e){},function(t){console.log("Buildin player click"),e.loadPreference(),t.isChecked?(t.setChecked(!1),e.forcenativehls=!1):(t.setChecked(!0),e.forcenativehls=!0),e.savePreference(),alert("You need to reload the page to see the change")},function(t){e.forcenativehls&&(console.log("Init force native HLS"),t.setChecked(!0))}),this.addParameterElement(this.advancedmenu,-1,"ratio",this.i18n.__("player.ratio_auto"),!1,function(t){var i=e.video_div.offsetWidth/e.video_div.offsetHeight;if(e.videoRatio=e.video.videoWidth/e.video.videoHeight,-1===e.videoRatio||-1===t.ratio)e.video.style.transform="scaleX(1)";else{var r=t.ratio/e.videoRatio,s=1;i<1&&(s=1/r),e.video.style.transform="scale("+r*s+","+1*s+")"}},function(t){-1!==e.videoRatio&&e.videoRatio!==NaN&&(-1===t.ratio?(t.ratio=1.3333,t.setTitle("4/3")):1.3333===t.ratio?(t.ratio=1.7777,t.setTitle("16/9")):1.7777===t.ratio?(t.ratio=.5625,t.setTitle(e.i18n.__("player.vertical"))):(t.setTitle(e.i18n.__("player.ratio_auto")),t.ratio=-1),e.redrawParamers())},function(e){e.ratio=-1}),this.allow_touchseek&&this.addParameterElement(this.advancedmenu,-1,"previewimg",this.i18n.__("player.preview_img"),!0,function(e){},function(t){console.log("Buildin preview img"),e.loadPreference(),t.isChecked?(t.setChecked(!1),e.forcenopreviewimg=!0):(t.setChecked(!0),e.forcenopreviewimg=!1),e.savePreference()},function(t){e.forcenopreviewimg?console.log("Init no preview img"):t.setChecked(!0)})},addParameterElement:function(e,t,i,r,s,o,a,n){var l=this,d=this.createElt("li","setting",i);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(i.link,"_blank"),console.log("Sponsor popup click : '"+i.link+"'"),e.pause(),t.stopPropagation()},!1)}},displayLoadError:function(){if(this.errordlg)return this.presetShow("errordlg"),void this.video_div.appendChild(this.errordlg);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(this.adlink,"_blank"),this.closeAd(),this.redraw(),t||this.need_doubleclick_ad?this.doubleclick_debug("secdbclick",e):this.doubleclick_debug("firstclick",e)))},touchSeekShow:function(e){e.stopPropagation(),this.lastTouchSeekPosition=this.compute_seekpercent(e),this.touchseek_last_positions.length>3&&(this.touchseek_last_positions=this.touchseek_last_positions.slice(1)),this.touchseek_last_positions.push(this.lastTouchSeekPosition);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • window.open(l.o,l.rand(a.name,!r.name),l.getOptions(a.window))||l.lastWin,!0===l.ua.ff&&l.bg(),l.href(s),typeof a.cb===d&&a.cb()),!0)},bg:function(e){var t=this;return t.lastWin&&t.lastTarget&&!e?!0===t.ua.ie?t.switcher.simple(t):t.ua.g||t.switcher.pop(t):"oc"===e&&t.switcher.pop(t),t},switcher:{simple:function(e){try{e.lastWin.blur()}catch(i){}t.focus()},pop:function(e){!function(t){try{e.f=t.window.open("about:blank"),e.f&&e.f.close()}catch(i){}try{t.opener.window.focus()}catch(i){}}(e.lastWin)},tab:function(i,r){var o=r||"data:text/html,<script>window.close();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
Warnings
Comments
Comments should be removed from the public code of a web application, since it can give an aggressor critical insights into the inner structure of the program. By using this information, the attacker could easier understand how the user session is handled by javascript or figure out the pathway data is sent to the server.
  • /* Built on 2020-09-18 14:01:10 */[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • /* Built on 2020-08-21 10:33:46 */[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • /* Built on 2020-09-11 13:36:58 */[https://static-l3.xvideos-cdn.com/v-aa03c10235a/v3/js/skins/min/default.footer.static.js]
  • /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */[https://static-l3.xvideos-cdn.com/v3/js/libs/jquery.min.js]
  • /** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.3.6 Copyright jQuery Foundation and other contributors. * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE */[https://static-l3.xvideos-cdn.com/v3/js/skins/min/require.static.js]
  • /* Built on 2020-08-10 16:26:53 */[https://static-l3.xvideos-cdn.com/v-9c27dbc2b64/v3/js/skins/min/default.pp.static.js]
Enabled Debugging
The JavaScript debugging functions should always removed after development stage, because they could expose informations on the inner workings of the code. In production, it is a loophole and could show a possible attacker where to find possibly exploitable vulnerabilities or interesting variables.
  • console.log('Unable to load HTML5Player', 'Video page');[https://www.xvideos.com/video10712628/self_handjob_-_masturbation_video_for_cock_lovers]
  • console.log(i),null}},set:function(e,t,i){"string"==typeof i&&i.length>0&&(e=i+"."+e),this.s.setItem(e,JSON.stringify(t))},remove:function(e,t){"string"==typeof t&&t.length>0&&(e=t+"."+e),this.s.removeItem(e)},clear:function(){this.s.clear()}};var t="_globalns_",i=window.xv.cookies,n=function(){this.data={}};n.prototype={type:"cookie",_loadNs:function(e){if("string"==typeof e&&0!==e.length||(e=t),"object"!=typeof this.data[e]){this.data[e]={};var n=i.get("hexavid_storage_"+e);[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • console.log(e)}},window.xv.utils=e}(),function(){var e={};e.getChildren=function(e,t){var i=[];for(var n in e.childNodes)1!==e.childNodes[n].nodeType||!t&&"SCRIPT"===e.childNodes[n].nodeName||i.push(e.childNodes[n]);[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • console.log("i18n: Cannot load "+t.locale+" translations for catalog "+t.catalog+"."),"en"!==t.locale&&load_translations("en",t.catalog,function(e){"object"==typeof e?(console.log("i18n: Loaded en translations either."),t.trs=e):console.log("i18n: Cannot load en translations either."),t.status="loaded";for(var i in t._on_loaded)t._on_loaded[i](t)}),t.status="loaded";for(var i in t._on_loaded)t._on_loaded[i](t)}else{t.status="loaded",t.trs=e;for(var i in t._on_loaded)t._on_loaded[i](t)}}),-1},__:function(e,t,i){if("loaded"!==this.status)return this.load(),strtr_val(e.split(".").pop(),!1,i,t);[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • console.log("=> '"+t+"'");[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • console.log("[FuckAdBlock]["+e+"] "+t)},t.prototype.setOption=function(e,t){if(t!==undefined){var i=e;e={},e[i]=t}for(var n in e)this._options[n]=e[n],!0===this._options.debug&&this._log("setOption",'The option "'+n+'" he was assigned to "'+e[n]+'"');[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • console.log("videoads",e,"xhr : loaded")}4==a.readyState&&0==a.status&&console.log("videoads",e,"xhr : load error")},a.send(null)}else xv.sda.monitoring.start(this.type,this.loading_report_url),n.src=e;return this.createAdNode(n,t,i)},createAdNode:function(e,t,i){var n=document.createElement("a");[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • console.log("new VideoAds",e,t,i,r,s,o,a),this.view_callback=e,this.stats_callback=t,this.video_url=i,this.click_url=r,this.title=s,this.domain=o,this.instant_skip=a,this.is_ios=!1,this.use_ios_fake_play=!1,this.playing=!1,this.interval_update=!1,this.start_muted=!0,this.can_skip=!1,this.desktop_view=!1,this.vast_view_callback=[],this.vast_click_url=!1,this.vast_start_stats_callback=[],this.vast_firstQuartile_stats_callback=[],this.vast_midpoint_stats_callback=[],this.vast_thirdQuartile_stats_callback=[],this.vast_complete_stats_callback=[],this.vast_pause_stats_callback=[],this.vast_mute_stats_callback=[],this.vast_fullscreen_stats_callback=[],this.vast_skip_stats_callback=[],this.vast_progress_stats_callback=[],this.vast_click_tracking=[],/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&(this.is_ios=!0,/OS [1-9]_/.test(navigator.userAgent)&&(this.use_ios_fake_play=!0))};e.prototype=new player.uibase,e.prototype.onClose=null,e.prototype.onFullscreen=null,e.prototype.startWithSound=function(){this.start_muted=!1},e.prototype.setDesktopView=function(e){this.desktop_view=e},e.prototype.getTitle=function(){return this.title?this.title:this.domain},e.prototype.getClickUrl=function(){var e=this.click_url;return this.vast_click_url&&this.vast_click_url.length>10&&(e=e+"/"+btoa(this.vast_click_url)),e},e.prototype.setVideoUrl=function(e){this.video_url=e},e.prototype.addVastViewCallback=function(e){this.vast_view_callback.push(e)},e.prototype.setVastClickUrl=function(e){this.vast_click_url=e},e.prototype.setTitle=function(e){this.title=e},e.prototype.addVastClickTrackingCallback=function(e){this.vast_click_tracking.push(e)},e.prototype.addVastStartStatsCallback=function(e){this.vast_start_stats_callback.push(e)},e.prototype.addVastFirstQuartileStatsCallback=function(e){this.vast_firstQuartile_stats_callback.push(e)},e.prototype.addVastMidpointStatsCallback=function(e){this.vast_midpoint_stats_callback.push(e)},e.prototype.addVastThirdQuartileStatsCallback=function(e){this.vast_thirdQuartile_stats_callback.push(e)},e.prototype.addVastCompleteStatsCallback=function(e){this.vast_complete_stats_callback.push(e)},e.prototype.addVastPauseStatsCallback=function(e){this.vast_pause_stats_callback.push(e)},e.prototype.addVastMuteStatsCallback=function(e){this.vast_mute_stats_callback.push(e)},e.prototype.addVastFullScreenStatsCallback=function(e){this.vast_fullscreen_stats_callback.push(e)},e.prototype.addVastSkipStatsCallback=function(e){this.vast_skip_stats_callback.push(e)},e.prototype.addVastProgressCallback=function(e,t){var i=t.match(/^([0-9]+):([0-9]+):([0-9]+).([0-9]+)$/);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("OffsetSec",r);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("DblClick catched")}),this.video_ad_div.addEventListener("click",function(e){e.stopPropagation(),console.log("Click catched")}),this.video=this.createElt("video","videoad-video"),this.is_ios?this.use_ios_fake_play?this.addClass(this.video,"videoad-nocontrol-ios"):this.video.setAttribute("playsinline",""):this.video.controls=!1,this.start_muted?(console.log("VideoAds: Start the video muted"),this.video.muted="muted"):console.log("VideoAds: Start the video with sound"),this.video.autoplay="autoplay",this.video.src=this.video_url,this.video_ad_div.appendChild(this.video),this.video.addEventListener("click",function(){console.log("Click video ads")}),this.video.addEventListener("playing",function(){xv.console.log("VideoAdEvent: Playing at "+e.video.currentTime+" / "+e.video.duration,"Player"),e.playing||(e.playing=!0,e.makeViewCallback()),e.redraw()}),this.video.addEventListener("error",function(){xv.console.log("VideoAdEvent: error at "+e.video.currentTime+" / "+e.video.duration,"Player"),e.makeStatsCallback("error"),e.closeAd()}),this.video.addEventListener("ended",function(){xv.console.log("VideoAdEvent: Ended at "+e.video.currentTime+" / "+e.video.duration,"Player"),e.makeStatsCallback("full"),e.makeVastCallback("vast_complete_stats_callback"),e.closeAd()}),this.video.addEventListener("timeupdate",function(){var t=Math.round(e.video.duration-e.video.currentTime);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Skip timeout"),e.playing||(e.makeStatsCallback("error"),e.closeAd()),e.can_skip||(console.log("Wahou .. skip can't skip after 15 sec"),e.makeStatsCallback("error"),e.closeAd())},15e3),this.redraw(),this.redraw_internal=setInterval(function(){e.redraw()},300);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("VideoAds : div loaded","Player"),this.video_ad_div},e.prototype.openAdClick=function(){this.makeVastCallback("vast_click_tracking"),this.video.pause();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("View callback done")};try{e.send()}catch(t){return}this.makeVastCallback("vast_start_stats_callback")}},e.prototype.makeVastCallback=function(e){if("undefined"==typeof this[e])return void console.log("VideoAds : Vast "+e+" doesn't exist");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Stats callback done")};try{i.send()}catch(r){return}}},e.prototype.formatDuration=function(e){var t=Math.floor(e/60),i=Math.floor(e-60*t);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("setSeekBarColor : "+e),this.seek_bar_color=e},setPageReferer:function(e){this.page_referer=e},setIsPremiumSite:function(){this.is_premium_site=!0},setIsPremiumVideo:function(){this.is_premium_video=!0},setFlashCodeAvailable:function(){this.flashcode_available=!0},activateExtraDebug:function(){this.extra_debug=!0},setPlaylist:function(e,t,i,r,s){if(this.plprevbt&&!(i.length<=1)){this.playlist={current:!1,prev:!1,next:!1,idx:0,length:r||i.length};var o;for(o in i)if(i[o].id==this.id_video){"string"==typeof o&&(o=parseInt(o)),this.playlist.current=i[o],o>0&&(this.playlist.prev=i[o-1]),o<i.length-1&&(this.playlist.next=i[o+1]);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Fullscreen not supported, use browser controls"),this.use_browser_controls=!0):(console.log("Old browser detected"),this.use_browser_controls=!0),(/android 4.4/.test(navigator.userAgent.toLowerCase())||/android [5-9]/.test(navigator.userAgent.toLowerCase())||/android [1-2][0-9]/.test(navigator.userAgent.toLowerCase()))&&(/chrome\/[4-9][0-9]/.test(navigator.userAgent.toLowerCase())||/chrome\/[1-2][0-9][0-9]/.test(navigator.userAgent.toLowerCase())||/firefox/.test(navigator.userAgent.toLowerCase()))?(this.allow_touchseek=!0,console.log("allow TouchSeek")):this.desktop_view&&(console.log("Is a desktop"),this.allow_touchseek=!0),this.support_hlsjs=this.supportHLSjs(),(this.is_ios||this.is_ipad)&&(this.support_hlsjs=!1,this.use_parameter_menu=!1);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Support Native HLS"),this.support_native_hls=!0),this.desktop_view&&-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&(this.support_native_hls&&(this.is_safari=!0,this.support_hlsjs=!1,console.log("Safari do not support HLS.js")),!this.fullscreenSupported()))return console.log("Old safari browser, switch to Flash"),void this.drawFakePlayer();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("This browser do not support MP4"),void this.drawFakePlayer();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Android App"),this.is_android_app=!0),/playstation 4 /.test(navigator.userAgent.toLowerCase())&&(console.log("Playstation 4 detected"),this.is_ps4=!0),""!==this.url_hls&&(this.support_native_hls&&(this.is_ios||this.is_ipad||this.is_safari||this.is_ps4||this.forcenativehls)?this.use_native_hls=!0:this.support_hlsjs&&(this.support_native_hls&&this.forcenativehls?this.use_native_hls=!0:this.use_hls=!0)),this.desktop_view)if(this.is_smarttv){if(!this.supportDefaultHlsjs()){if(this.hasFlash())return this.is_flashplayer_displayed=!0,void console.log("SmartTV with flash. Displaying Flash");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Old Desktop without HLS or native HLS. Displaying Flash"),void(this.is_flashplayer_displayed=!0);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("VideoEvent: loadstart"),e.hlsobj&&e.use_hls&&e.forcenoautobuffer&&e.hlsobj.startLoad(),e.canPlay=!1,e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("timeupdate",function(){1!==e.video.networkState&&2!==e.video.networkState||(e.detectPlaying(),e.updateDuration())}),this.video.addEventListener("progress",function(){1!==e.video.networkState&&2!==e.video.networkState||(e.detectPlaying(),e.updateDuration())}),this.video.addEventListener("play",function(){var t="VideoEvent: play at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.use_hls&&!e.playClicked&&(console.log("VideoEvent play: play not clicked, force pause"),e.pause()),e.detectPlaying(),e.updateBtVisibity(),e.is_ps4&&!e.PS4FirstSeekDone&&(e.PS4FirstSeekDone=!0,e.seek(.5))}),this.video.addEventListener("seeking",function(){var t="VideoEvent: seeking at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.canPlay=!1,e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("waiting",function(){xv.console.log("VideoEvent: Waiting","Player"),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("suspend",function(){var t="VideoEvent: Suspend at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.canPlay=!0,e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("canplaythrough",function(){var t="VideoEvent: Can Play Throught at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.canPlay=!0,e.checkNeedSeek(),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("canplay",function(){var t="VideoEvent: Can Play at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.canPlay=!0,e.checkNeedSeek(),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("playing",function(){var t="VideoEvent: Playing at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.preloaded=!0,e.errortimer&&(clearTimeout(e.errortimer),delete e.errortimer),e.detectPlaying(),e.updateBtVisibity(),e.send_debug_event("playing")}),this.video.addEventListener("pause",function(){var t="VideoEvent: Pause at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.forcenoautobuffer&&e.playClicked&&!e.forcenobuffer_playafterpause&&(e.play(),e.forcenobuffer_playafterpause=!0),e.detectPlaying(),e.updateBtVisibity(),e.redraw()}),this.video.addEventListener("error",function(){var t="VideoEvent: error at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),3===e.video.networkState&&e.recoverError(),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("ended",function(){console.log("VideoEvent: Ended at "+e.video.currentTime+" / "+e.video.duration),!e.video.loop&&e.isFullScreen&&e.fullscreen(),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("abort",function(){var t="VideoEvent: abort at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("durationchange",function(){var t="VideoEvent: Duration Change at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("loadeddata",function(){xv.console.log("VideoEvent: Loaded Data","Player"),console.log("VideoEvent: Loaded Data"),e.canPlay=!0,e.checkNeedSeek(),e.detectPlaying(),e.updateBtVisibity()}),this.video.addEventListener("loadedmetadata",function(){var t="VideoEvent: Loadedmetadata";xv.console.log(t,"Player"),console.log(t),e.canPlay=!0,e.detectPlaying(),e.updateBtVisibity(),e.videoRatio=e.video.videoWidth/e.video.videoHeight,console.log("Video ratio",e.videoRatio),e.video.duration>0&&e.video.duration<=90&&e.loopbtn&&(e.force_no_loop||(e.video.loop="true",e.loopbtn.setChecked(!0))),console.log("self.thumb_slide_type ",e.thumb_slide_type),e.thumb_slide_type===HTML5Player.TYPE_MINUTE&&e.preloadMozaiqueMinThumbOnStart()}),this.video.addEventListener("seeked",function(){var t="VideoEvent: Seeked at "+e.video.currentTime+" / "+e.video.duration;xv.console.log(t,"Player"),console.log(t);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("webkitfullscreenchange"),e.toggleFullscreen()}),document.addEventListener("mozfullscreenchange",function(){console.log("mozfullscreenchange"),e.toggleFullscreen()}),document.addEventListener("fullscreenchange",function(){console.log("fullscreenchange"),e.toggleFullscreen()}),document.addEventListener("MSFullscreenChange",function(){console.log("MSFullscreenChange"),e.toggleFullscreen()})}},showPlayer:function(){this.global_div&&(console.log("HTML5: Show player"),this.showElt(this.global_div))},drawFakePlayer:function(){if(this.desktop_view&&this.hasFlash())return this.is_flashplayer_displayed=!0,console.log("Desktop with flash. Displaying Flash"),void xv.console.log("Use flash player for desktop","Player");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Close ad 1"),e.closeFakePlayerAd()},!1),this.advertclickdiv.addEventListener("click",function(t){e.fakeplayerAdvertClick(t,!1)},!1),this.advertdiv.addEventListener("click",function(t){e.fakeplayerAdvertClick(t,!0)},!1),this.advertdoubleclick.addEventListener("click",function(t){e.fakeplayerAdvertClick(t,!0)},!1)):(this.advertclosebut.onclick=function(){e.closeFakePlayerAd()},this.advertdoubleclick.onclick=function(t){e.fakeplayerAdvertClick(t,!0)}),this.video_div.appendChild(this.advertdivcontainer),this.redrawFakePlayer()}else this.closeFakePlayerAd();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Fake player drawed","Player")},redrawFakePlayer:function(){this.global_div.style.height=Math.round(this.video_div.offsetWidth/1.7777+40)+"px";var e=this.video_div.offsetHeight;this.video_div.offsetWidth<e&&(e=this.video_div.offsetWidth),e||(e=300);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Ad: No link found");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Ad picture not loaded");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Video initial draw done"),this.use_hls?xv.console.log("HTML5 Player drawed with Hls.js : "+this.url_hls,"Player"):this.use_native_hls?xv.console.log("HTML5 Player drawed with native Hls : "+this.url_hls,"Player"):xv.console.log("HTML5 Player drawed with MP4 support : "+this.url_high,"Player"),this.send_device_speed){var t=(new Date).getTime()-this.load_start;this.send_debug_event("devicespeed",t),xv.console.log("HTML5 Player device speed "+t+"ms","Player")}if(this.desktop_view){if("undefined"==typeof window.xv||"undefined"==typeof window.xv.conf||"undefined"==typeof window.xv.conf.dyn||"boolean"!=typeof window.xv.conf.dyn.premium||!window.xv.conf.dyn.premium){!function(){if(!e.is_premium_site){var t=navigator.userAgent.match(/(chrome|crios)\/(\d+)\./i);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Chrome >= 64 do not display popunder");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Storage available"),window.addEventListener("beforeunload",function(t){e.saveForDurationReport()}),setInterval(function(){e.saveForDurationReport()},2e3),setInterval(this.sendPendingDuration,1e4),setTimeout(this.sendPendingDuration,1e3*(Math.floor(2*Math.random())+2))):console.log("Storage not available"),this.video},saveForDurationReport:function(){if(this.video.duration){var e="videoreport_"+this.id_video,t=localStorage.getItem(e);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log(r),console.log("Buffer blocked detected "+((new Date).getTime()-e.bufferBlocked_timestamp)+" old ("+e.bufferBlocked_nbtime+" times)"),xv.console.log("Buffer blocked detected","Player"),2===e.bufferBlocked_nbtime&&e.send_debug_event("buffer_blocked")}}else e.bufferBlocked_lastvalue=e.loaderpictxt.innerHTML,e.bufferBlocked_timestamp=(new Date).getTime(),console.log("Buffering "+e.loaderpictxt.innerHTML+" detected");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("this.video_event",t),e.showad&&(e.closeAd(),e.redraw()),e.desktop_view){if(e.playClicked&&!e.video.ended)if(e.video.paused)e.play();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("video_event_click(event) ",t);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("video_event_click Click percent",i);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log('this.video_div.addEventListener("touchstart", '),r=(new Date).getTime(),setTimeout(function(){r&&(console.log("No click event, generate video event"),e.video_event(!0))},200))}),this.video_div.addEventListener("click",function(t){r=0,e.video_event_click(t)}),this.desktop_view&&(this.video_div.addEventListener("mouseover",function(t){e.cursoroverplayer=!0}),this.video_div.addEventListener("mouseleave",function(t){e.cursoroverplayer=!1}),this.video_div.addEventListener("mousemove",function(t){e.video_div.style.cursor="auto",e.showInfos()}),this.video_div.addEventListener("dblclick",function(t){var i=t.offsetY;e.video_div.offsetHeight>0&&i/e.video_div.offsetHeight>.85||e.fullscreen()}),window.addEventListener("keydown",function(t){if(!e.is_smarttv&&e.cursoroverplayer&&t.target==document.body){if(t.altKey||t.ctrlKey||t.shiftKey)return;if(32!=t.keyCode&&75!=t.keyCode||(t.preventDefault(),e.playClicked&&(e.video.paused?e.play():e.pause())),38==t.keyCode){if(t.preventDefault(),1==e.video.volume)return!1;var i=e.video.volume+.1;i>1&&(i=1),e.setVolume(i),e.showsoundcontrol=!0,e.cursorOverProgressBar(),e.cursorLeaveProgressBar(),e.showInfos()}if(40==t.keyCode){if(t.preventDefault(),0==e.video.volume)return!1;var i=e.video.volume-.1;i<0&&(i=0),e.setVolume(i),e.showsoundcontrol=!0,e.cursorOverProgressBar(),e.cursorLeaveProgressBar(),e.showInfos()}if(37==t.keyCode||81==t.keyCode||65==t.keyCode){if(t.preventDefault(),!e.canPlay)return!1;e.seek(e.video.currentTime-10),e.showInfos()}if(39==t.keyCode||68==t.keyCode){if(t.preventDefault(),!e.canPlay)return!1;e.seek(e.video.currentTime+10),e.showInfos()}return 70==t.keyCode&&(t.preventDefault(),e.fullscreen()),!1}}))},drawVideoDiv:function(){var e=this;this.video=document.createElement("video"),this.video.preload="auto",/firefox/.test(navigator.userAgent.toLowerCase())&&(this.video.preload="metadata"),this.use_browser_controls?this.is_ios?(this.hideVideoControls(),this.video.setAttribute("playsinline","")):this.video.controls="controls":this.is_ios&&!this.is_old_ios&&(this.hideVideoControls(),this.video.setAttribute("playsinline",""));[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("ChromeCast: sessionListener")},s=function(t){console.log("ChromeCast: receiverListener",t),e.loadPreference(),t===chrome.cast.ReceiverAvailability.AVAILABLE?(e.chromecastdetected=!0,e.use_hls||e.hideElt(e.video_click_handler)):(e.chromecastdetected=!1,e.showElt(e.video_click_handler)),e.savePreference(),e.updateBtVisibity(),e.redraw()},o=function(){console.log("ChromeCast: onInitSuccess")},a=function(){console.log("ChromeCast: onError")},n=new chrome.cast.SessionRequest(chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID),l=new chrome.cast.ApiConfig(n,r,s);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Google Chrome Cast loading error")};var i=document.createElement("script");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Progress Bar Click"),e.stopPropagation()}),this.desktop_view&&(this.progressbarbg.addEventListener("mouseenter",function(){e.cursorOverProgressBar()}),this.progressbarbg.addEventListener("mouseleave",function(){e.cursorLeaveProgressBar()})),this.progressbarbg.addEventListener("dblclick",function(e){console.log("Progress bar dblclick"),e.stopPropagation()})},drawProgressBar:function(){var e=this;if(this.progressbarcontainer=this.createElt("div","progress-bar-container"),this.appendToVideoDiv(this.progressbarcontainer),this.progressbar=this.createElt("div","progress-bar"),this.progressbar.addEventListener("dblclick",function(e){e.stopPropagation()}),this.progressbarcontainer.appendChild(this.progressbar),this.progressbarcontainer.addEventListener("click",function(t){if(console.log("progressbar seeking click"),t.stopPropagation(),e.touchseek_block_click)return void console.log("Seek click blocked");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Progress bar dblclick"),e.stopPropagation()}),this.progressbarbufferdiv=this.createElt("div","bufferdiv"),this.desktop_view&&this.progressbarbufferdiv.addEventListener("dblclick",function(e){console.log("progressbarbufferdiv dblclick"),e.stopPropagation()}),this.progressbar.appendChild(this.progressbarbufferdiv),this.desktop_view?this.progressbarcursor=this.createElt("div","cursor"):(this.progressbarcursor=this.createElt("div","roundcursor"),this.progressbarcursor.style.backgroundColor=this.seek_bar_color,this.progressbarcursor.style.borderColor=this.seek_bar_color),this.progressbar.appendChild(this.progressbarcursor),this.desktop_view||(this.progressbartext=this.createElt("div","progress-text-mobile noselect"),this.progressbarcontainer.appendChild(this.progressbartext)),this.allow_touchseek){if(this.computeThumbSlideType(),console.log("Thumb Slide : "+this.thumb_slide_type),this.progressbarseekcursor=this.createElt("div","seek-cursor"),this.hideElt(this.progressbarseekcursor),this.progressbar.appendChild(this.progressbarseekcursor),this.progressbarseekthumb=this.createElt("div","seek-thumb"),this.progressbarseekcursor.appendChild(this.progressbarseekthumb),this.thumb_slide_type==HTML5Player.TYPE_FULL){this.progressbarseekthumb.style.backgroundImage="url('"+this.thumb_slide_big+"')";var t=new Image;t.onerror=function(){console.log("Thumb slide full don't seems to be available"),e.thumb_slide_type=HTML5Player.TYPE_SMALL,e.progressbarseekthumb.style.background="url('"+e.thumb_slide+"')"},t.src=this.thumb_slide_big}else this.thumb_slide_type==HTML5Player.TYPE_MINUTE?this.progressbarseekthumb.style.backgroundImage="url('"+this.thumb_slide_min+"0.jpg')":this.progressbarseekthumb.style.backgroundImage="url('"+this.thumb_slide+"')";if(this.desktop_view&&this.progressbarseekthumb.addEventListener("mousemove",function(t){if(t&&t.target&&"function"==typeof t.target.getBoundingClientRect&&"seek-thumb"===t.target.className){var i=t.target.getBoundingClientRect();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Unable to get rect");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Unable to get rect (2)");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("is a touch screen"),this.progressbarcontainer.addEventListener("touchstart",function(t){e.touchseek_last_positions=[],e.forcenopreviewimg||(console.log("touchstart"),e.showElt(e.progressbarseekcursor),e.desktop_view&&e.showElt(e.progressbarseekfakecursordesktop),e.touchSeekShow(t))},!1),this.progressbarcontainer.addEventListener("touchend",function(t){console.log("touchend");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Seek End "+r),e.touchseek_block_click=!0,setTimeout(function(){e.touchseek_block_click=!1},500),e.seek(r)}e.touchSeekHide()},!1),this.progressbarcontainer.addEventListener("touchcancel",function(t){console.log("touchcancel"),e.touchSeekHide()},!1),this.progressbarcontainer.addEventListener("touchleave",function(t){console.log("touchleave"),e.touchSeekHide()},!1),this.progressbarcontainer.addEventListener("touchmove",function(t){e.touchSeekShow(t)},!0)),this.desktop_view&&(this.progressbarcontainer.addEventListener("mouseenter",function(){e.cursorOverProgressBar()}),this.progressbarcontainer.addEventListener("mouseleave",function(){e.cursorLeaveProgressBar()}),this.progressbarcontainer.addEventListener("mouseover",function(t){e.forcenopreviewimg||(e.showElt(e.progressbarseekcursor),e.desktop_view&&e.showElt(e.progressbarseekfakecursordesktop),e.touchSeekShow(t))},!0),this.progressbarcontainer.addEventListener("mousemove",function(t){e.forcenopreviewimg||(e.showElt(e.progressbarseekcursor),e.desktop_view&&e.showElt(e.progressbarseekfakecursordesktop),e.touchSeekShow(t))},!1),this.progressbarcontainer.addEventListener("mouseleave",function(t){e.touchSeekHide()},!0)),this.desktop_view&&(this.progressbardetectcursor=this.createElt("div","pgbar-cursor-detect"),this.progressbar.appendChild(this.progressbardetectcursor))}},drawFastForward:function(){if(this.desktop_view)return void console.log("FastForward : Do not display because is desktop view");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("FastForward : DRAWING");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Fastbackward timeout done"),t.activate_fastforward=!1,t.current_fastforward=0,e.removeClass(e.fastforward_left,"content-visible")},1e3),e.video.currentTime<10||(t.current_fastforward+=10,e.fastforward_left_txt.innerHTML=t.current_fastforward+" sec",e.seek(e.video.currentTime-10),t.timer2=window.setTimeout(function(){e.addClass(e.fastforward_left,"content-visible")},50))};this.fastforward_left.addEventListener("dblclick",function(i){if(!e.video.duration)return void console.log("Fastforward : no video duration");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Fastfoward timeout done"),t.activate_fastforward=!1,t.current_fastforward=0,e.removeClass(e.fastforward_right,"content-visible")},1e3),e.video.currentTime+10>e.video.duration||(t.current_fastforward+=10,e.fastforward_right_txt.innerHTML=t.current_fastforward+" sec",e.seek(e.video.currentTime+10),t.timer2=window.setTimeout(function(){e.addClass(e.fastforward_right,"content-visible")},50))};this.fastforward_right.addEventListener("dblclick",function(t){if(!e.video.duration)return void console.log("Fastforward : no video duration");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Close Ad"),t.stopPropagation(),e.closeAd(),e.redraw()},!1),this.advertdivcontainer.appendChild(this.advertclosebut);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Advert div click"),t.stopPropagation(),e.advertClick(t,!0)}),this.advertdiv.addEventListener("touchstart",function(e){e.stopPropagation()}),this.advertclickdiv.addEventListener("click",function(t){t.stopPropagation(),console.log("this.advertdiv.addEventListener("+t.type),e.advertClick(t,!1)},!1),this.advertclickdiv.addEventListener("touchstart",function(e){e.stopPropagation()},!1),this.advertdoubleclick.addEventListener("touchstart",function(t){t.stopPropagation(),console.log("this.advertdoubleclick.addEventListener("+t.type),e.doubleclick_ad_allowclick=!0,setTimeout(function(){e.doubleclick_ad_allowclick=!1},500)},!1),this.advertdoubleclick.addEventListener("click",function(t){console.log("this.advertdoubleclick.click("+t.type),t.stopPropagation(),e.advertClick(t,!0)},!1)},drawBigButtons:function(){var e=this;this.bigbuttons=this.createElt("div","big-buttons"),this.appendToVideoDiv(this.bigbuttons),this.bigbuttons_sub=this.createElt("div","big-buttons-sub"),this.plprevbt=this.createElt("div","big-button pl-btn"),this.plprevbt.style.visibility="hidden",this.bigbuttons.appendChild(this.plprevbt),this.plprevbt.addEventListener("click",function(t){console.log("Playlist Backward Butt click"),t.stopPropagation(),e.playlist&&e.playlist.prev&&(e.write_cookie("html5_plfullscreen",e.isFullScreen?"1":"0"),window.location.href=e.playlist.prev.uri)},!1),this.plprevbtimg=this.createImgBtn("icon-step-backward.svg","player.previous_pl_video",{"%name%":""}),this.plprevbt.appendChild(this.plprevbtimg),this.playbt=this.createElt("div","big-button play"),this.bigbuttons.appendChild(this.playbt),this.playbt.addEventListener("click",function(t){console.log("Play click addEventListener"),t.stopPropagation(),!e.playClicked&&e.use_hls&&e.forcenoautobuffer&&e.hlsobj.startLoad(),!e.playClicked&&e.desktop_view&&(e.cursorOverProgressBar(),e.cursorLeaveProgressBar(),e.redraw()),e.playClicked&&e.showPause(),e.playClicked=!0,e.addClass(e.video_div,"play-clicked"),e.displayVideosAds()||(e.use_browser_controls&&e.showVideoControls(),e.play(),e.force_play_fullscreen&&e.fullscreen(),e.updateBtVisibity(),e.redraw(),e.desktop_view&&"function"==typeof window.openpop&&window.openpop())}),this.playbtimg=this.createImgBtn("icon-play.svg","player.play"),this.playbt.appendChild(this.playbtimg),this.playbt.appendChild(this.createElt("br")),this.playbttxt=this.createElt("span"),this.playbttxt.innerHTML=this.i18n.__("player.play"),this.hideElt(this.playbttxt),this.desktop_view||(this.pausebt=this.createElt("div","big-button pause"),this.bigbuttons.appendChild(this.pausebt),this.pausebt.addEventListener("click",function(t){console.log("Pause click addEventListener"),t.stopPropagation(),e.pause()}),this.pausebtimg=this.createImgBtn("icon-pause.svg","player.pause"),this.pausebt.appendChild(this.pausebtimg),this.use_browser_controls&&(this.replaybt=this.createElt("div","big-button replay"),this.bigbuttons.appendChild(this.replaybt),this.replaybt.addEventListener("click",function(t){console.log("Replay click addEventListener"),t.stopPropagation(),e.replay()}),this.replaybtimg=this.createImgBtn("icon-repeat.svg","player.replay"),this.replaybt.appendChild(this.replaybtimg))),this.is_ios||this.is_ipad||this.use_browser_controls||(this.chromecastbt=this.createElt("div","big-button"),this.topleftdiv.insertBefore(this.chromecastbt,this.videotitlediv),this.chromecastbt.addEventListener("click",function(t){console.log("Chromecast click addEventListener"),t.stopPropagation(),e.chromecastVideo()}),this.chromecastbtimg=this.createImgBtn("icon-chromecast.svg","player.chromecast"),this.chromecastbt.appendChild(this.chromecastbtimg),this.chromecastbt.appendChild(this.createElt("br")),this.chromecastbttxt=this.createElt("span"),this.chromecastbttxt.innerHTML=this.i18n.__("player.chromecast"),this.chromecastbt.appendChild(this.chromecastbttxt)),this.plnextbt=this.createElt("div","big-button pl-btn"),this.plnextbt.style.visibility="hidden",this.bigbuttons.appendChild(this.plnextbt),this.plnextbt.addEventListener("click",function(t){console.log("Playlist Forward Butt click"),t.stopPropagation(),e.playlist&&e.playlist.next&&(e.write_cookie("html5_plfullscreen",e.isFullScreen?"1":"0"),window.location.href=e.playlist.next.uri)},!1),this.plnextbt.addEventListener("touchstart",function(e){e.stopPropagation()}),this.plnextbtimg=this.createImgBtn("icon-step-forward.svg","player.next_pl_video",{"%name%":""}),this.plnextbt.appendChild(this.plnextbtimg),this.bigbuttons.appendChild(this.bigbuttons_sub),this.loaderpic=this.createElt("div","video-loader"),this.video_div.appendChild(this.loaderpic),this.loaderpicbuffer=this.createElt("div","buffer"),this.loaderpic.appendChild(this.loaderpicbuffer),this.loaderpictxt=this.createElt("div","label",this.i18n.__("player.buffering")),this.loaderpic.appendChild(this.loaderpictxt)},setupButtonBarEvents:function(e,t,i){if(this.desktop_view){var r=this;t&&(e.addEventListener("mouseenter",function(){r.cursorOverProgressBar()}),e.addEventListener("mouseleave",function(){r.cursorLeaveProgressBar()})),i&&e.addEventListener("dblclick",function(e){e.stopPropagation()})}},drawButtonsBars:function(){var e=this;if(this.leftbuttonsbar=this.createElt("div","buttons-bar left"),this.leftbuttonsbar.addEventListener("touchstart",function(e){e.stopPropagation()}),this.leftbuttonsbar.addEventListener("click",function(e){e.stopPropagation()}),this.appendToVideoDiv(this.leftbuttonsbar),this.replaybarbt=this.createImgBtn("icon-repeat.svg","player.replay"),this.replaybarbt.addEventListener("click",function(t){console.log("Replay click addEventListener"),t.stopPropagation(),e.replay()}),this.leftbuttonsbar.appendChild(this.replaybarbt),this.playbarbt=this.createImgBtn("icon-play.svg","player.play"),this.playbarbt.addEventListener("click",function(t){console.log("Small Play Butt click"),t.stopPropagation(),!e.playClicked&&e.use_hls&&e.forcenoautobuffer&&e.hlsobj.startLoad(),e.playClicked=!0,e.addClass(e.video_div,"play-clicked"),e.showPause(),e.displayVideosAds()||(e.use_browser_controls&&e.showVideoControls(),e.play(),e.desktop_view&&"function"==typeof window.openpop&&window.openpop())},!1),this.setupButtonBarEvents(this.playbarbt,!0),this.leftbuttonsbar.appendChild(this.playbarbt),this.pausebarbt=this.createImgBtn("icon-pause.svg","player.pause"),this.pausebarbt.addEventListener("click",function(t){console.log("Small Pause Btt click"),t.stopPropagation(),e.pause()},!1),this.setupButtonBarEvents(this.pausebarbt,!0),this.leftbuttonsbar.appendChild(this.pausebarbt),this.soundonbarbt=this.createImgBtn("icon-volume-full.svg","player.mute"),this.soundonbarbt.addEventListener("click",function(t){console.log("Sound on click addEventListener"),t.stopPropagation(),e.mute(),e.showInfos(!1),e.updateBtVisibity()}),this.setupButtonBarEvents(this.soundonbarbt,!1,!0),this.leftbuttonsbar.appendChild(this.soundonbarbt),this.soundoffbarbt=this.createImgBtn("icon-volume-mute-bold.svg","player.unmute"),this.soundoffbarbt.addEventListener("click",function(t){console.log("Sound off click addEventListener"),t.stopPropagation(),e.unmute(),e.showInfos(!1),e.updateBtVisibity()}),this.setupButtonBarEvents(this.soundoffbarbt,!1,!0),this.leftbuttonsbar.appendChild(this.soundoffbarbt),this.desktop_view&&(this.soundvolglobal=this.createElt("div","volume-bar"),this.soundvolglobal.style.backgroundImage="url('"+this.http_protocol+"://"+this.static_domain+"/v3/img/player/volume-bar-empty.svg')",this.soundvolglobal.addEventListener("click",function(t){console.log("Sound vol global click"),t.stopPropagation();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Progress bar text click"),e.stopPropagation()}),this.setupButtonBarEvents(this.progressbartext,!1,!0),this.leftbuttonsbar.appendChild(this.progressbartext)),this.desktop_view&&(this.plprevbarbt=this.createImgBtn("icon-step-backward.svg","player.previous_pl_video",{"%name%":""}),this.plprevbarbt.addEventListener("click",function(t){console.log("Small Playlist Backward Butt click"),t.stopPropagation(),e.playlist&&e.playlist.prev&&(e.write_cookie("html5_plfullscreen",e.isFullScreen?"1":"0"),window.location.href=e.playlist.prev.uri)},!1),this.setupButtonBarEvents(this.plprevbarbt,!0),this.leftbuttonsbar.appendChild(this.plprevbarbt),this.plnextbarbt=this.createImgBtn("icon-step-forward.svg","player.next_pl_video",{"%name%":""}),this.plnextbarbt.addEventListener("click",function(t){console.log("Small Playlist Forward Butt click"),t.stopPropagation(),e.playlist&&e.playlist.next&&(e.write_cookie("html5_plfullscreen",e.isFullScreen?"1":"0"),window.location.href=e.playlist.next.uri)},!1),this.setupButtonBarEvents(this.plnextbarbt,!0),this.leftbuttonsbar.appendChild(this.plnextbarbt)),this.drawSubscribeButton(),this.uploader_name&&this.leftbuttonsbar.appendChild(this.subscribebarbt),this.rightbuttonsbar=this.createElt("div","buttons-bar right"),this.appendToVideoDiv(this.rightbuttonsbar),this.use_parameter_menu){this.paramsbarbt=this.createElt("div","settings-btn"),this.rightbuttonsbar.appendChild(this.paramsbarbt);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("parametersbt click"),t.stopPropagation(),e.showparametersmenu=!e.showparametersmenu,e.showparametersmenu||(e.showqualitiesmenu=!1,e.showadvancedmenu=!1,e.showspeedmenu=!1),e.showInfos(!0)},!1),this.setupButtonBarEvents(this.paramsbarbt,!0,!0),this.drawParameters()}this.downloadbarbt=this.createImgBtn("icon-download.svg","download.title"),this.downloadbarbt.addEventListener("click",function(t){console.log("Download bar btt click"),t.stopPropagation(),e.pause(),e.is_embed?window.open(e.http_protocol+"://www.xvideos.com"+e.video_url,"_blank"):window.xv&&window.xvideos.player&&window.xvideos.player.openDownload&&window.xvideos.player.openDownload()},!1),this.setupButtonBarEvents(this.downloadbarbt,!0),this.rightbuttonsbar.appendChild(this.downloadbarbt),this.desktop_view&&(this.is_premium_site&&(this.loadPreference(),this.forceExpanded&&this.toggleExpand()),this.expandbarbt=this.createImgBtn("icon-screen-expand.svg","player.double_player_size"),this.expandbarbt.addEventListener("click",function(t){t.stopPropagation(),console.log("Expand click addEventListener"),e.toggleExpand()},!1),this.setupButtonBarEvents(this.expandbarbt,!0),this.rightbuttonsbar.appendChild(this.expandbarbt)),this.fullscreenbarbt=this.createImgBtn("icon-screen-fullscreen.svg","player.fullscreen"),this.fullscreenbarbt.addEventListener("click",function(t){console.log("Fullscreen click addEventListener"),t.stopPropagation(),e.fullscreen()}),this.setupButtonBarEvents(this.fullscreenbarbt,!0),this.rightbuttonsbar.appendChild(this.fullscreenbarbt)},drawSubscribeButton:function(){if(this.uploader_name){var e=this;this.subscribebarbt=this.createElt("div","subscribe");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("subscribebarbt click"),s.innerHTML=e.unescape(e.i18n.__("player.in_progress"));[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("parametersmenu click"),t.stopPropagation(),e.showInfos(!0)}),this.parametersmenu.addEventListener("dblclick",function(e){e.stopPropagation()}),this.setupButtonBarEvents(this.parametersmenu,!0),this.paramscheckboxes=[],this.addParameterElement(this.parametersmenu,-1,"loop",this.i18n.__("player.loop"),!0,function(e){},function(t){console.log("Loop click click"),t.isChecked?(t.setChecked(!1),e.video.loop=!1,e.video.duration>0&&e.video.duration<=90&&e.setForceNoLoop(!0)):(t.setChecked(!0),e.video.loop="true",e.setForceNoLoop(!1)),e.savePreference()},function(t){e.loopbtn=t,"undefined"!=typeof e.video.duration&&e.video.duration>0&&e.video.duration<=90&&(t.setChecked(!0),e.video.loop="true")}),e.desktop_view&&this.addParameterElement(this.parametersmenu,-1,"chromecast",this.i18n.__("player.chromecast"),!1,function(t){e.chromecastdetected&&chrome.cast?t.show():t.hide()},function(t){e.chromecastVideo()},function(e){}),e.advancedmenu=e.createElt("ul","settings-menu secondary-menu noselect"),e.hideElt(e.advancedmenu),e.appendToVideoDiv(e.advancedmenu),e.advancedmenu.addEventListener("click",function(t){t.stopPropagation(),e.showInfos(!0)}),e.advancedmenu.addEventListener("dblclick",function(e){e.stopPropagation()}),e.setupButtonBarEvents(e.advancedmenu,!0),e.addParameterElement(e.parametersmenu,-1,"advanced",e.i18n.__("player.advanced"),!1,function(t){e.showadvancedmenu?t.styleSetForced():t.styleSetNeutral()},function(t){console.log("Click on speed button"),e.showadvancedmenu=!e.showadvancedmenu,e.showqualitiesmenu=!1,e.showspeedmenu=!1,e.updateBtVisibity(),e.redrawParamers(),e.redraw()},function(e){e.styleSetNeutral()}),e.speedmenu=e.createElt("ul","settings-menu secondary-menu noselect"),e.hideElt(e.speedmenu),e.appendToVideoDiv(e.speedmenu),e.speedmenu.addEventListener("click",function(t){t.stopPropagation(),e.showInfos(!0)}),e.speedmenu.addEventListener("dblclick",function(e){e.stopPropagation()}),e.setupButtonBarEvents(e.speedmenu,!0),e.addParameterElement(e.parametersmenu,0,"speed",e.i18n.__("player.speed")+": "+e.speed.toFixed(1)+" X",!1,function(t){t.setTitle(e.i18n.__("player.speed")+": "+e.speed.toFixed(1)+" X"),e.showspeedmenu?t.styleSetForced():t.styleSetNeutral()},function(t){console.log("Click on speed button"),e.showspeedmenu=!e.showspeedmenu,e.showqualitiesmenu=!1,e.showadvancedmenu=!1,e.updateBtVisibity(),e.redrawParamers(),e.redraw()},function(e){e.styleSetNeutral()});[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Click on speed "+t.speed),e.speed=t.speed,e.video.playbackRate=t.speed,e.redrawParamers()},function(r){r.speed=t[i],e.speed===r.speed?r.styleSetForced():r.styleSetNeutral()});[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Auto buffer click"),e.loadPreference(),t.isChecked?(t.setChecked(!1),e.forcenoautobuffer=!0):(t.setChecked(!0),e.forcenoautobuffer=!1),e.savePreference()},function(t){e.forcenoautobuffer?console.log("Init no auto buffer"):t.setChecked(!0)}):!this.use_native_hls&&this.url_high&&this.url_low&&(this.addParameterElement(this.parametersmenu,-1,"quality_hq","360p",!1,function(t){e.force_lq?t.styleSetNeutral():t.styleSetForced()},function(t){console.log("360p quality click"),e.setHQ(),e.redraw()},function(t){e.force_lq?t.styleSetNeutral():t.styleSetForced()}),this.addParameterElement(this.parametersmenu,-1,"quality_lq","250p",!1,function(t){e.force_lq?t.styleSetForced():t.styleSetNeutral()},function(t){console.log("250p quality redraw click"),e.setLQ(),e.redraw()},function(t){e.force_lq?t.styleSetForced():t.styleSetNeutral()})),this.desktop_view||this.addParameterElement(this.parametersmenu,-1,"externalplayer",this.i18n.__("player.external_player"),!1,function(e){},function(t){console.log("External player click"),e.is_embed?window.open(e.http_protocol+"://www.xvideos.com"+e.video_url,"_blank"):e.streamVideo()},function(e){}),this.support_native_hls&&this.support_hlsjs&&(this.use_hls||this.use_native_hls)&&this.addParameterElement(this.advancedmenu,-1,"buildinplayer",this.i18n.__("player.builtin_player"),!0,function(e){},function(t){console.log("Buildin player click"),e.loadPreference(),t.isChecked?(t.setChecked(!1),e.forcenativehls=!1):(t.setChecked(!0),e.forcenativehls=!0),e.savePreference(),alert("You need to reload the page to see the change")},function(t){e.forcenativehls&&(console.log("Init force native HLS"),t.setChecked(!0))}),this.addParameterElement(this.advancedmenu,-1,"ratio",this.i18n.__("player.ratio_auto"),!1,function(t){var i=e.video_div.offsetWidth/e.video_div.offsetHeight;if(e.videoRatio=e.video.videoWidth/e.video.videoHeight,-1===e.videoRatio||-1===t.ratio)e.video.style.transform="scaleX(1)";else{var r=t.ratio/e.videoRatio,s=1;i<1&&(s=1/r),e.video.style.transform="scale("+r*s+","+1*s+")"}},function(t){-1!==e.videoRatio&&e.videoRatio!==NaN&&(-1===t.ratio?(t.ratio=1.3333,t.setTitle("4/3")):1.3333===t.ratio?(t.ratio=1.7777,t.setTitle("16/9")):1.7777===t.ratio?(t.ratio=.5625,t.setTitle(e.i18n.__("player.vertical"))):(t.setTitle(e.i18n.__("player.ratio_auto")),t.ratio=-1),e.redrawParamers())},function(e){e.ratio=-1}),this.allow_touchseek&&this.addParameterElement(this.advancedmenu,-1,"previewimg",this.i18n.__("player.preview_img"),!0,function(e){},function(t){console.log("Buildin preview img"),e.loadPreference(),t.isChecked?(t.setChecked(!1),e.forcenopreviewimg=!0):(t.setChecked(!0),e.forcenopreviewimg=!1),e.savePreference()},function(t){e.forcenopreviewimg?console.log("Init no preview img"):t.setChecked(!0)})},addParameterElement:function(e,t,i,r,s,o,a,n){var l=this,d=this.createElt("li","setting",i);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Download click addEventListener"),t.stopPropagation(),window.xv&&window.xvideos.player&&window.xvideos.player.openDownload&&(e.pause(),window.xvideos.player.openDownload())})},drawEmbedElements:function(){this.logoxvideos=this.createElt("div","xv-logo"),this.desktop_view?this.logoxvideos.style.width="120px":this.logoxvideos.style.width="25%",this.appendToVideoDiv(this.logoxvideos);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("LQ click addEventListener"),t.stopPropagation(),e.setLQ()}),this.highqualitybt=this.createElt("div","quality-btn quality-default","","360p"),this.appendToVideoDiv(this.highqualitybt),this.highqualitybt.addEventListener("click",function(t){console.log("HQ click addEventListener"),t.stopPropagation(),e.setHQ()})},displaySponsorlink:function(){if(this.sponsors&&0!==this.sponsors.length&&!this.sponsorpopup){var e=this;this.sponsorpopup=this.createElt("div","videoad-title videoad-title-invideo noselect"),this.setupButtonBarEvents(this.sponsorpopup,!0),this.appendToVideoDiv(this.sponsorpopup);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Sponsor popup click : '"+i.link+"'"),e.pause(),t.stopPropagation()},!1)}},displayLoadError:function(){if(this.errordlg)return this.presetShow("errordlg"),void this.video_div.appendChild(this.errordlg);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Error button retry click addEventListener"),t.stopPropagation(),e.recoverError(!0)})},chromecastVideo:function(){if(!chrome.cast)return alert("Error: Chrome cast don't seems to be supported"),this.chromecastdetected=!1,this.updateBtVisibity(),void this.redraw();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Chrome Cast issue",t),e.chromecastmedia=!1,e.chromecastsession=!1,clearInterval(e.chromecasttimer),e.updateBtVisibity(),e.redraw()})},openMessageBox:function(){var e=this;if(this.messagediv)return void this.presetShow("messagediv");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Message Div Click"),e.stopPropagation()}),this.messagetxtdiv=this.createElt("div","message-content"),this.messagediv.appendChild(this.messagetxtdiv),this.messagedivclose=this.createImgBtn("icon-close.svg","player.close"),this.messagedivclose.className="dlg-close-btn",this.messagedivclose.addEventListener("click",function(t){console.log("Close message"),e.showInfos(!1),e.showmessage=!1,e.updateBtVisibity(),e.redraw()},!1),this.messagediv.appendChild(this.messagedivclose)},advertClick:function(e,t){if("undefined"==typeof this.adlink)return void console.log("Ad: No link found");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Ad picture not loaded");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Fatal: No advert div found");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Ad loaded"),t.adsquare_picture_loaded=!0,t.showElt(t.advertclickdiv),t.advertclickdiv.style.visibility=""}),this.advertdiv.appendChild(i),this.is_fakeplayer_displayed||(this.showad=!0,this.updateBtVisibity(),this.redraw())}},setNoSquareAd:function(){window.xvideos.player.toggleSize(!0)},nbView_getNbView:function(){var e=xv.cookies.get("xv_nbview");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("displayVideosAds: Not the 2nd play (or more). Bypass videosads display"),this.videoads=null,this.closeAd(),!1;if(!this.videoads){if(console.log("displayVideosAds: No videoads to display"),2==this.nbView_getNbView()&&this.videoads_miss){console.log("displayVideosAds: 2nd play and no ads. Missed");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("VideoAds: Video not muted. Starting with sound"),this.videoads.startWithSound()),this.videoads_div=this.videoads.getAdDiv(),this.video_div.appendChild(this.videoads_div),this.videoads.redraw(),console.log("displayVideosAds: Starting the video ad"),!0}},createDebugVideoAds:function(){this.closeAd(),this.videoads=new player.videoads("https://test.com/view/","https://test.com/stats/","https://media.trafficfactory.biz/banners/64/e7/be/2c6d115727eefef5fa0bc88cf371db60.mp4","http://www.google.com","Label","test.com"),this.videoads.setHttpProtocol(this.http_protocol),this.videoads.setStaticDomain(this.static_domain),this.videoads.setI18n(this.i18n),this.videoads.setDesktopView(this.desktop_view)},checkVideoAds:function(){var e=this;return this.use_browser_controls&&!this.is_new_iphone?void console.log("VideoAds not compatible with browser control"):this.is_fakeplayer_displayed||this.is_flashplayer_displayed?void console.log("VideoAds not compatible with fake player"):-1===this.nbView_getNbView()?(console.log("checkVideoAds() Video ads already viewed"),this.block_popup=!0,void this.closeAd()):void document.addEventListener("DOMContentLoaded",function(){if("object"==typeof xv&&"object"==typeof xv.conf&&"object"==typeof xv.conf.dyn&&"object"==typeof xv.conf.dyn.ads)var t=0,i=setInterval(function(){t++,(xv.cookies.get("wpn_ad_cookie")||t>10)&&(clearInterval(i),e.callForVideoAds(xv.conf.dyn.ads.tracker))},200)})},callForVideoAds:function(e){var t=this;console.log("checkVideoAds() Trying to load videos ads");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("checkVideoAds() WPN Call failed");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Video Ads bac JSON")}if(e.tracker_id&&xv.cookies.setLocal("wpn_ad_cookie",e.tracker_id,6048e5,"/"),!t.playClicked)if(e.banners){"undefined"!=typeof e.miss[0]&&(t.videoads_miss=e.miss[0]);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("checkVideoAds() WPN Call failed (2)")}},makeVastCall:function(e){var t=this,i=createRequestObject();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("checkVideoAds() VAST Call failed ("+i.status+")"),void(t.videoads=!1);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("VAST Call done");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Vast: Node InLine or Wrapper not found"),void(t.videoads=!1);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("VASTAdTagURI",n.textContent),t.makeVastCall(n.textContent)),"Impression"===n.nodeName&&(console.log("Impression",n.textContent),t.videoads.addVastViewCallback(n.textContent)),"Creatives"===n.nodeName){if(e){var l=n.getElementsByTagName("MediaFile");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("VAST No media file to display"),void(t.videoads=!1);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Vast Video",d,"url",l[d].textContent,"=>",u),u=t.videoads.setVideoUrl(u)}for(var c=n.getElementsByTagName("Tracking"),h=0;h<c.length;h++){var f=c[h],p=f.getAttribute("event");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Vast event start",f.textContent),t.videoads.addVastStartStatsCallback(f.textContent)),"firstQuartile"===p&&(console.log("Vast event firstQuartile",f.textContent),t.videoads.addVastFirstQuartileStatsCallback(f.textContent)),"midpoint"===p&&(console.log("Vast event midpoint",f.textContent),t.videoads.addVastMidpointStatsCallback(f.textContent)),"thirdQuartile"===p&&(console.log("Vast event thirdQuartile",f.textContent),t.videoads.addVastThirdQuartileStatsCallback(f.textContent)),"complete"===p&&(console.log("Vast event complete",f.textContent),t.videoads.addVastCompleteStatsCallback(f.textContent)),"pause"===p&&(console.log("Vast event pause",f.textContent),t.videoads.addVastPauseStatsCallback(f.textContent)),"fullscreen"===p&&(console.log("Vast event fullscreen",f.textContent),t.videoads.addVastFullScreenStatsCallback(f.textContent)),"mute"===p&&(console.log("Vast event mute",f.textContent),t.videoads.addVastMuteStatsCallback(f.textContent)),"skip"===p&&(console.log("Vast event skip",f.textContent),t.videoads.addVastSkipStatsCallback(f.textContent)),"progress"===p){var g=f.getAttribute("offset");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Vast event progress",g,"-",f.textContent),t.videoads.addVastProgressCallback(f.textContent,g)}}if(e){var v=n.getElementsByTagName("ClickThrough");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("VAST No click url"),void(t.videoads=!1);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Vast click",d,"url",v[d].textContent),t.videoads.setVastClickUrl(v[d].textContent);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Vast iconClickThrough",d,"url",m[d].textContent),t.videoads.setTitle(m[d].textContent)}}for(var y=n.getElementsByTagName("ClickTracking"),h=0;h<y.length;h++){var b=y[h];console.log("Vast event click",b.textContent),t.videoads.addVastClickTrackingCallback(b.textContent)}}}return}catch(_){return console.log(t.videoads),t.videoads=!1,void console.log("VAST ERROR",_)}}};try{i.send()}catch(r){return void console.log("checkVideoAds() VAST Call failed (2)")}},xmlGetNodes:function(e,t){var r=[],s=e.childNodes;for(i=0;i<s.length;i++)s[i].nodeName==t&&r.push(s[i]);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Init HLS"),this.use_hls=!0;var t=25e6;this.desktop_view&&(t=5e7);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Hls.Events.MEDIA_ATTACHED")}),this.hlsobj.on(Hls.Events.MEDIA_DETACHED,function(){console.log("Hls.Events.MEDIA_DETACHED")}),this.hlsobj.on(Hls.Events.FRAG_PARSING_INIT_SEGMENT,function(t,i){console.log("Hls.Events.FRAG_PARSING_INIT_SEGMENT "+t+" id = "+i.id+" level = "+i.level),e.redrawParamers()}),this.hlsobj.on(Hls.Events.FRAG_PARSING_METADATA,function(e,t){console.log("Hls.Events.FRAG_PARSING_METADATA",e,t)}),this.hlsobj.on(Hls.Events.LEVEL_SWITCH,function(t,i){console.log("Hls.Events.LEVEL_SWITCH",t,i.level),e.redrawParamers()}),this.hlsobj.on(Hls.Events.MANIFEST_LOADING,function(e,t){console.log("Hls.Events.MANIFEST_LOADING",e,t.url)}),this.hlsobj.on(Hls.Events.MANIFEST_LOADED,function(t,i){if(console.log("Hls.Events.MANIFEST_LOADED "+t+" nb levels "+e.hlsobj.levels.length),!this.hlsLevelAutoForced){this.hlsLevelAutoForced=!0;var r=e.getLocalStorage("forcequality");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Best level",o,"for speed",a,"Kb/s"),xv.console.log("Hls.Events.LEVEL_LOADED Best level "+o+" for speed "+a+" Kb/s","Player")}else o=1,console.log("No network speed history, using",o);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Hls.Events.MANIFEST_PARSED",t,i),"undefined"==typeof i.levels)return void console.log("Hls levels do not exist");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Click on quality button"),e.showqualitiesmenu=!e.showqualitiesmenu,e.showspeedmenu=!1,e.showadvancedmenu=!1,e.updateBtVisibity(),e.redrawParamers(),e.redraw()},function(e){e.styleSetNeutral()}),e.addParameterElement(e.qualitymenu,0,"levelauto",e.i18n.__("player.auto"),!1,function(t){e.hlsobj.autoLevelEnabled?(t.styleSetForced(),e.qualitiesmenubuttonlabel=e.i18n.__("player.auto")):t.styleSetNeutral()},function(t){console.log("Click on level auto"),e.setLocalStorage("forcequality",-1,1),e.hlsobj.nextLevel=-1,e.hlsobj.autoLevelCapping=-1,e.redrawParamers()},function(e){e.styleSetForced()});[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Click on level "+t.hlslevel),e.setLocalStorage("forcequality",t.hlslevel,86400),e.hlsobj.nextLevel=t.hlslevel,e.hlsobj.autoLevelCapping=-1,e.redrawParamers()},function(e){e.hlslevel=r,e.hlslevelname=i.levels[r].name,e.styleSetNeutral()});[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Hls.Events.LEVEL_LOADED",e,t.level)}),this.hlsobj.on(Hls.Events.FRAG_BUFFERED,function(t,i){console.log("Hls.Events.FRAG_BUFFERED "+t+" url = "+i.frag.url),e.redrawParamers()}),this.hlsobj.on(Hls.Events.FRAG_CHANGED,function(t,i){console.log("Hls.Events.FRAG_CHANGED",t,"Level",i.frag.level,"Url",i.frag.url),e.redrawParamers(),e.updateBtVisibity()}),this.hlsobj.on(Hls.Events.FRAG_LOADING,function(t,i){console.log("Hls.Events.FRAG_LOADING",t),e.updateBuffering(0)}),this.hlsobj.on(Hls.Events.ERROR,function(t,i){switch(console.log("Hls.Events.ERROR",t,i.type,i.details,i.fatal),xv.console.log("Hls.Events.ERROR "+i.type+" "+i.url,"Player"),e.hlsNbError++,e.hlsNbError>20&&e.send_debug_event("many_errors"),i.type){case Hls.ErrorTypes.NETWORK_ERROR:i.fatal&&e.recoverError();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Error BUFFER_NUDGE_ON_STALL ("+(i.fatal?"fatal":"not fatal")+")","Player"),i.fatal&&(console.log("recoverMediaError at "+new Date),e.hlsobj.recoverMediaError())):i.fatal&&e.recoverError();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Hls.Events.FPS_DROP",e,t)}),this.hlsobj.on(Hls.Events.FRAG_LOAD_PROGRESS,function(t,i){if("object"!=typeof i.stats||"undefined"==typeof i.stats.loaded)return void console.log("Not an XMLProgress event");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Progress "+i.frag.url+" "+i.stats.loaded+" / "+i.stats.total+" : "+n+" % (Paused : "+e.video.paused+", Seeking : "+e.video.seeking+", ReadyState : "+e.video.readyState+", CurrentTime "+Math.round(100*e.video.currentTime)/100+"/"+Math.round(100*e.video.duration)/100+")"),i.stats.total===i.stats.loaded&&(e.total_video_transfer+=i.stats.total),e.updateBuffering(n)}),this.hlsobj.loadSource(this.url_hls),this.hlsobj.startLevel=0,!0},streamVideo:function(){this.closeAd(),this.pause(),this.drawnDownloadLinks(this.i18n.__("download.use_external_app"),this.url_high,this.url_low)},drawnDownloadLinks:function(e,t,i){var r=this.createElt("div","pl-dl-box pl-msg-box");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("start moving at "+r),i=r},s=function(t){var r=e.touch_getPosition(t);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("self.relateddiv.offsetLeft "+e.relateddiv.offsetLeft+" self.relateddiv.offsetWidth "+e.relateddiv.offsetWidth);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("newposition "+o),o>0&&(o=0),o<e.video_div.offsetWidth-e.relateddiv.offsetWidth&&(o=e.video_div.offsetWidth-e.relateddiv.offsetWidth),e.relateddiv.style.left=o+"px",console.log("moving at "+r+" diff = "+s+" new position "+o)},o=function(e){i=-1};this.relateddivcontainer.addEventListener("touchstart",r),this.relateddivcontainer.addEventListener("touchmove",s),this.relateddivcontainer.addEventListener("touchend",o),this.relateddivcontainer.addEventListener("touchcancel",o),this.relateddivcontainer.addEventListener("touchleave",o);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("SUGGEST LOADING ERROR ready stats "+n.status);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("SUGGEST LOADING ERROR JSON",f)}for(var i in t.v){a++;var r=t.v[i],s=e.createElt("div","related-video");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("urlRPC Call error")}},drawNextPlaylist:function(){if(this.plnextloaded)return this.plnexttimer||this.plnextclosed||this.startPlaylistCountdown(),void this.redraw();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Close Playlist"),t.stopPropagation(),e.plnextclosed=!0,e.stopPlaylistCountdown(),e.drawRelated(),e.updateBtVisibity(),e.redraw()},!1),this.plnextcontainer.appendChild(this.plnextclosebut),this.startPlaylistCountdown(),this.plnextloaded=!0,this.redraw()},startPlaylistCountdown:function(){this.stopPlaylistCountdown(),this.plnexttime=6,this.updatePlaylistCountdown();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("setBuffering: is Buffering");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Buffer timeout"),t.send_debug_event("buffer_timeout"))},1e4)}else{clearTimeout(this.bufferingTimeoutTimer),this.bufferingTimeoutTimer=!1;var i=(new Date).getTime()-this.lastBufferTimestamp;this.video.duration&&(this.firstTimeBuffered=!0,console.log("setBuffering: is not Buffering in "+i+" ms"),this.send_debug_event("buffer_duration",i))}this.updateBtVisibity(),this.positionBigButtons()}},detectPlaying:function(){if(this.use_hls&&!this.playClicked&&this.forcenoautobuffer)return this.isPlaying=!1,this.canPlay=!0,void this.setBuffering(!1);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Show pausebt end"),e.showpausebt=!1,e.updateBtVisibity()},3e3),this.updateBtVisibity(),this.positionBigButtons()}},showInfos:function(e){this.allow_showInfos=!0,this.allow_showInfosTimer&&clearTimeout(this.allow_showInfosTimer);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Show Info end"),t.allow_showInfos=!1,t.allow_showInfosTimer=!1,t.showpausebt=!1,t.showsoundcontrol=!1,t.video.paused||t.desktop_view||(t.showparametersmenu=!1,t.showqualitiesmenu=!1,t.showspeedmenu=!1,t.showadvancedmenu=!1),t.touchSeekHide(),t.updateBtVisibity(),t.redraw(),t.desktop_view&&(t.video_div.style.cursor="none",t.allow_completHideSeekBar=setTimeout(function(){t.completHideSeekBar=!0,t.updateBtVisibity()},5e3))},3e3),this.updateBtVisibity(),e?this.positionBigButtons():this.redraw()},hideInfos:function(){this.allow_showInfos=!1,this.allow_showInfosTimer&&clearTimeout(this.allow_showInfosTimer),this.allow_showInfosTimer=!1,this.showpausebt=!1,this.showsoundcontrol=!1,this.touchSeekHide(),this.updateBtVisibity()},seek:function(e){if(this.chromecastmedia){console.log("html5player.seek("+e.toFixed(2)+") Chromecast");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Chromecast Seek ok")})}if(this.video.duration){if(e==NaN||e==Infinity)return void console.log("html5player.seek : Invalid value",e);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("html5player.seek : Invalid value",e);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("html5player.seek("+e.toFixed(2)+")"),this.video.currentTime=e.toFixed(2),this.showbigthumb=!1}},play:function(){console.log("html5player.play()"),this.closeAd(),this.showbigthumb=!1,this.video.poster="",this.chromecastmedia?this.chromecastmedia.play():this.video.play()},replay:function(){this.plnextclosed=!1,this.stopPlaylistCountdown(),this.endReached=!1,this.video.currentTime=0,this.play()},pause:function(){console.log("html5player.pause()"),this.chromecastmedia?this.chromecastmedia.pause():this.video.pause()},mute:function(){this.loadPreference(),this.video.muted=!0,this.desktop_view&&(this.soundvolglobalvolume.style.width="0%"),this.savePreference()},unmute:function(){this.loadPreference(),this.video.muted=!1,this.desktop_view&&(this.soundvolglobalvolume.style.width=Math.round(100*this.video.volume)+"%"),this.savePreference()},setVolume:function(e){this.loadPreference(),this.video.muted=!1,this.video.volume=e,this.desktop_view&&(this.soundvolglobalvolume.style.width=Math.round(100*e)+"%"),this.savePreference()},setLQ:function(){this.force_lq||(this.loadPreference(),this.force_lq=!0,this.savePreference(),this.loadVideoSrc())},setHQ:function(){this.force_lq&&(this.loadPreference(),this.force_lq=!1,this.savePreference(),this.loadVideoSrc())},setForceNoLoop:function(e){this.loadPreference(),this.force_no_loop=e,this.savePreference()},fullscreen:function(){if(console.log("this.isFullScreen: "+this.isFullScreen),this.fullscreenSupported())document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():this.video_div.requestFullscreen?this.video_div.requestFullscreen():this.video_div.mozRequestFullScreen?this.video_div.mozRequestFullScreen():this.video_div.webkitRequestFullscreen?this.video_div.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):this.video_div.msRequestFullscreen?this.video_div.msRequestFullscreen():alert("Not supported"),this.toggleFullscreen();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Video ratio",t),t>1.3&&(window.screen.orientation.lock("landscape"),this.is_android_app&&(console.log("AndroidInterface.message('HORIZ')"),"undefined"!=typeof AndroidInterface&&AndroidInterface.message("HORIZ"))),t<.9&&(window.screen.orientation.lock("portrait"),this.is_android_app&&(console.log("AndroidInterface.message('VERT')"),"undefined"!=typeof AndroidInterface&&AndroidInterface.message("VERT")))}else this.is_android_app&&(console.log("AndroidInterface.message('UNKOWN')"),"undefined"!=typeof AndroidInterface&&AndroidInterface.message("UNKOWN"));[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("AndroidInterface.message('OFF')"),"undefined"!=typeof AndroidInterface&&AndroidInterface.message("OFF"));[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("closeAd() : Ad already closed");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("closeAd() : Closing ad"),this.showintro=!1,this.showad=!1,this.use_browser_controls&&!this.is_new_iphone&&this.showVideoControls(),this.showInfos(!0),this.updateBtVisibity()},hideSponsor:function(e){if(this.showsponsor)return e?(this.showsponsor=!1,void this.updateBtVisibity()):void(this.video.duration&&(this.video.currentTime<.1*this.video.duration||(this.showsponsor=!1,this.updateBtVisibity())))},showVideoControls:function(){console.log("showVideoContols() : Showing controls"),this.video.className="",this.video.controls="controls",this.showbigthumb=!1},hideVideoControls:function(){console.log("hideVideoControls() : Hide controls"),this.video.className="ios_player",this.video.controls=!1},loadVideoSrc:function(){if(this.saveNeedSeek(),this.use_hls)return void this.initHls();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Use native HLS",this.url_hls),void(this.video.src=this.url_hls);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Use HTML5 MP4",e),this.video.src=e},saveNeedSeek:function(){this.video.currentTime&&(this.pending_seek=this.video.currentTime,this.isPlaying||this.isBuffering&&!this.video.paused?this.seek_was_playing=!0:this.seek_was_playing=!1,console.log("saveNeedSeek at "+this.pending_seek+" (was playing "+this.seek_was_playing+")"))},checkNeedSeek:function(){this.pending_seek&&(this.seek_was_playing?(this.video.play(),console.log("seekNeed detected to ",this.pending_seek," and play needed")):(this.video.pause(),console.log("seekNeed detected to ",this.pending_seek)),this.video.currentTime=this.pending_seek.toFixed(2),this.pending_seek=0)},cursorOverProgressBar:function(){this.cursoroverprogressbartimer&&(clearTimeout(this.cursoroverprogressbartimer),this.cursoroverprogressbartimer=!1),this.cursoroverprogressbar=!0,this.redraw()},cursorLeaveProgressBar:function(){var e=this;this.cursoroverprogressbartimer||(this.cursoroverprogressbartimer=setTimeout(function(){e.showparametersmenu=!1,e.showqualitiesmenu=!1,e.showspeedmenu=!1,e.showadvancedmenu=!1,e.cursoroverprogressbar=!1,e.updateBtVisibity(),e.redraw()},2e3))},showBigProgressBar:function(){if(this.use_browser_controls)return!1;if(this.cursoroverprogressbar)return!0;if(this.video.ended)return!0;if(this.desktop_view){if(this.allow_showInfos||this.video.paused||!this.canPlay||this.isBuffering)return!0;if(!this.playClicked)return!0}else if(this.allow_showInfos||this.video.paused||!this.canPlay||this.isBuffering)return!0;return!1},computeThumbSlideType:function(){if(!this.thumb_slide_big)return void(this.thumb_slide_type=HTML5Player.TYPE_SMALL);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Error recovery",(new Date).getTime(),this.lastErrorRecovery),!this.pendingUrlRPCUpdate){if(this.send_debug_event("playerror"),this.use_hls&&7==this.id_cdn_hls&&this.sendDebugLogs(),!e&&(new Date).getTime()-this.lastErrorRecovery<18e5)return console.log("Error recovery. Too fast."),this.isPlayError=!0,void this.updateBtVisibity();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("updateUrlRPC try to update URL after a fatal error","Player");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("updateUrlRPC error status",i.status);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Url RPC Call bad json")}e.url_hls&&t.hls&&(e.url_hls=t.hls,e.id_cdn_hls=t.hls_idcdn,xv.console.log("updateUrlRPC update hls "+t.hls,"Player")),e.url_low&&t.mp4_low&&(e.url_low=t.mp4_low,e.id_cdn=t.mp4_idcdn,xv.console.log("updateUrlRPC mp4 low "+t.mp4_low,"Player")),e.url_high&&t.mp4_high&&(e.url_high=t.mp4_high,e.id_cdn=t.mp4_idcdn,xv.console.log("updateUrlRPC mp4 high "+t.mp4_high,"Player")),e.loadVideoSrc()}};try{i.send()}catch(r){console.log("urlRPC Call error")}},toggleExpand:function(){this.isExpanded?this.isExpanded=!1:this.isExpanded=!0,this.is_premium_site&&(this.loadPreference(),this.forceExpanded=this.isExpanded,this.savePreference()),window.xvideos.player.toggleSize()},loadPreference:function(){var e=this.get_cookie("html5_pref");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Unable to get rect");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Unable to get rect (2)");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("doubleclick_debug , type = "+e+" , pos x = "+i+", pox y = "+r),("firstdbclick"!==e&&"firstclick"!==e||(this.dbclick_first_x=i,this.dbclick_first_y=r,this.dbclick_start_date=(new Date).getTime(),this.dbclick_sec_x=-1,this.dbclick_sec_y=-1,"firstdbclick"!==e))&&-1!==this.dbclick_first_x&&-1!==this.dbclick_first_y){var o=0;"secdbclick"===e&&(this.dbclick_sec_x=i,this.dbclick_sec_y=r,o=(new Date).getTime()-this.dbclick_start_date);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Calling",l),this.doubleclick_stats_send=!0;var d=createRequestObject();[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Not enought stats");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("check_speed_stats Network speed "+r+" Kb/s","Player"),this.save_networkspeed(r),this.send_debug_event("network_speed",r),this.fragStatsSended=!0}},preloadMozaiqueMinThumbOnStart:function(){if(console.log("preloadMozaiqueMinThumbOnStart"),!this.video.duration)return void console.log("preloadMozaiqueMinThumbOnStart No duration");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("preloadMozaiqueMinThumbOnStart start preloading");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("start preloading thumb min "+e);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Send debug event '"+e+"'");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("setLocalStorage",e,r),localStorage.setItem(e,JSON.stringify(r))},getLocalStorage:function(e){if(!this.storageAvailable())return!1;var t=localStorage.getItem(e);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("getLocalStorage",e,t),!t)return console.log("Key",e,"doesn't exist"),!1;var i=JSON.parse(t);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Key",e,"expire"),localStorage.removeItem(e),!1):i.value)},sendPendingDuration:function(){var e=(new Date).getTime(),t=localStorage.getItem("durationsend_lock");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Duration send locked",t,e);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Duration send: Bad JSON for "+r+" '"+o+"'"),localStorage.setItem(r,JSON.stringify({sended:!0,timestamp:(new Date).getTime()}));[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Duration send: Bad JSON for "+r+" '"+o+"'"),localStorage.setItem(r,JSON.stringify({sended:!0,timestamp:(new Date).getTime()}));[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Duration send: Unable to unjson "+r+" '"+o+"'"),localStorage.setItem(r,JSON.stringify({sended:!0,timestamp:(new Date).getTime()}));[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Sending duration "+s.duration+" for video "+s.video_id);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("supportDefaultHlsjs : false"),!1;if(/android 4.4./.test(navigator.userAgent.toLowerCase()))return console.log("supportHLSjs : false : Android 4.4 detected"),!1;var e=/chrome\/([0-9]+)\./.exec(navigator.userAgent.toLowerCase());[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("supportHLSjs : false : Chrome < 46"),!1):/windows phone 8.0/.test(navigator.userAgent.toLowerCase())?(console.log("supportHLSjs : false : Windows Phone 8.0"),!1):(console.log("supportHLSjs : true"),!0)},supportDefaultHlsjs:function(){return"undefined"!=typeof window.MediaSource&&"undefined"!=typeof window.MediaSource.isTypeSupported&&("undefined"!=typeof Hls&&!!Hls.isSupported())},sendDebugLogs:function(){this.consolelog},getPageCategories:function(){return"string"==typeof window.wpn_categories?window.wpn_categories:"object"==typeof xv&&"object"==typeof xv.conf&&"object"==typeof xv.conf.ads&&"string"==typeof xv.conf.ads.categories?xv.conf.ads.categories:""}},HTML5Player.TYPE_SMALL="SMALL",HTML5Player.TYPE_FULL="FULL",HTML5Player.TYPE_MINUTE="MIN";var loadPopup=function(){!function(e,t,i,r,s){"use strict";e.popunder=function(i,r,s,o){var a=e.popunder.helper;if(0===arguments.length&&(i=t.aPopunder),s||r)a.bindEvents(i,r,s);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Unable to load ads");[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Popunder (2) bad json")}if(i.url){var r=!1;window.openpop_url=i.url,$(document).click(function(e){if(!r){var t=$(e.target);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("Popunder (1) bad json")}if(t.url){var i=!1;window.openpop_url=t.url,$(document).click(function(e){if(!i){var t=$(e.target);[https://static-l3.xvideos-cdn.com/v-097137dac0a/v3/js/skins/min/player.html5hls.static.js]
  • console.log("No popup for robot");[https://static-l3.xvideos-cdn.com/v-9c27dbc2b64/v3/js/skins/min/default.pp.static.js]
Unsafe Functions
eval() is eval! This functions and similar ones (document.write(), document.writeln(), element.innerHTML, element.outerHTML, element.insertAdjacentHTML()) should never be used in production stage of a website, because the parsing of the executable string is often not secure and result therefore often in a cross-site scripting vulnerability. Instead of these functions create html elements by script and add it to the DOM object.
  • document.write('<script src="https://static-l3.xvideos-cdn.com/v3/js/libs/jquery-1.7.2.min.js"><\/script>')} require.onError=function(err){if(xv&&xv.console&&xv.console.logRJS){xv.console.logRJS(err);[https://www.xvideos.com/video10712628/self_handjob_-_masturbation_video_for_cock_lovers]
  • eval("("+text+")")},get_version_path=function(e,t){return"object"!=typeof xv||"object"!=typeof xv.conf||"object"!=typeof xv.conf.dyn||"object"!=typeof xv.conf.dyn.i18nvers?"":"object"!=typeof xv.conf.dyn.i18nvers[e]||"string"!=typeof xv.conf.dyn.i18nvers[e][t]?"":"/v-"+xv.conf.dyn.i18nvers[e][t]},load_translations=function(e,t,i){var n=!1,o=get_version_path(t,e);[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • document.write("\x3c!--"+e+" / "+t.join(", ")+"--\x3e")},t=["error","warn","info","debug","log"];for(var i in t)!function(t){"undefined"==typeof window.console[t]&&(window.console[t]=function(){for(var i=[t.toUpperCase()],n=0;n<arguments.length;n++)i.push(arguments[n]);[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • document.write(e)},i.prepareVideo=function(e){var t=!1;if("object"==typeof e)t=e,e=t.id.substr(6);[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • document.write(o)}catch(f){return}if("default"===a){var c=document.getElementById("listing-settings"),h=document.getElementById("related-videos");[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • document.write(r)},initiated_navs:[],available_cat_orders:["order-az-asc","order-az-desc","order-top-asc"],tmp_separate_history_by_cat:function(){if(this.can_use_save()){var e=this.get_save("history","XNXX_cats_order_5");[https://static-l3.xvideos-cdn.com/v-58b6d0f2178/v3/js/skins/min/default.header.static.js]
  • eval(text)},req(cfg)}function newContext(u){var i,e,l,c,d,g={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},p={},f={},r={},h=[],m={},n={},v={},x=1,b=1;function q(e,t,i){var r,n,o,a,s,u,c,d,p,f,l=t&&t.split("/"),h=g.map,m=h&&h["*"];if(e&&(u=(e=e.split("/")).length-1,g.nodeIdCompat&&jsSuffixRegExp.test(e[u])&&(e[u]=e[u].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&l&&(e=l.slice(0,l.length-1).concat(e)),function(e){var t,i;for(t=0;t<e.length;t++)if("."===(i=e[t]))e.splice(t,1),t-=1;else if(".."===i){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;0<t&&(e.splice(t-1,2),t-=2)}}(e),e=e.join("/")),i&&h&&(l||m)){e:for(o=(n=e.split("/")).length;0<o;o-=1){if(s=n.slice(0,o).join("/"),l)for(a=l.length;0<a;a-=1)if((r=getOwn(h,l.slice(0,a).join("/")))&&(r=getOwn(r,s))){c=r,d=o;break e}!p&&m&&getOwn(m,s)&&(p=getOwn(m,s),f=o)}!c&&p&&(c=p,d=f),c&&(n.splice(0,d,c),e=n.join("/"))}return getOwn(g.pkgs,e)||e}function E(t){isBrowser&&each(scripts(),function(e){if(e.getAttribute("data-requiremodule")===t&&e.getAttribute("data-requirecontext")===l.contextName)return e.parentNode.removeChild(e),!0})}function w(e){var t=getOwn(g.paths,e);[https://static-l3.xvideos-cdn.com/v3/js/skins/min/require.static.js]
Additional Information
Link Opener
The window.open("https://example.com/", "_blanc", "noopener"); attribute should always be added to the window.open() function, which open a site in a new tab, to reduce the risk of reverse tabnabbing. Otherwise javascript on the new page has full control over the previous visited page, including permission to change the DOM object and possibly steal session cookies.
Link Referrer
The window.open("https://example.com/", "_blanc", "referrer"); attribute should always be added to the window.open() function to prevent reverse tabnabbing for older browser, which do not support the noopener attribute and to prevent phishing attacks.
Comments
Comments should be removed from the public code of a web application, since it can give an aggressor critical insights into the inner structure of the program. By using this information, the attacker could easier understand how the user session is handled by javascript or figure out the pathway data is sent to the server.
Enabled Debugging
The JavaScript debugging functions should always removed after development stage, because they could expose informations on the inner workings of the code. In production, it is a loophole and could show a possible attacker where to find possibly exploitable vulnerabilities or interesting variables.
Unsafe Functions
eval() is eval! This functions and similar ones (document.write(), document.writeln(), element.innerHTML, element.outerHTML, element.insertAdjacentHTML()) should never be used in production stage of a website, because the parsing of the executable string is often not secure and result therefore often in a cross-site scripting vulnerability. Instead of these functions create html elements by script and add it to the DOM object.
Scanned URL(s)
Self handjob - masturbation video for cock lovers - XVIDEOS.COM