admin

window.isPublished = true

window.hash = window.location.hash.slice(1)

if (window.hash.includes(‘internal’)) {
window.scenario = window.hash
window.currentRecommendId = null
} else if (window.hash.includes(‘_’) && (window.hash.split(‘_’)[0].length === 32 || window.hash.split(‘_’)[0].length === 36)) {
window.scenario = window.hash.split(‘_’)[1]
window.currentRecommendId = window.hash.split(‘_’)[0]
} else if (window.hash && (window.hash.length === 32 || window.hash.length === 36)) {
window.scenario = null
window.currentRecommendId = window.hash
} else {
window.scenario = null
window.currentRecommendId = null
}

if (window.hash && ! window.hash.includes(‘:’)) {
window.history.replaceState(null, null, ‘ ‘)
}

window.dataLayer.push({
event: ‘videoVisit’,
item: {
dvd_id: ‘roe-225-uncensored-leak’,
},
})

if (window.scenario) {
window.dataLayer.push({
event: ‘recommendationVisit’,
recommendation: {
scenario: window.scenario,
},
})
}

document.addEventListener(‘DOMContentLoaded’, () => {
let source
let isPreviewing = false

eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!”.replace(/^/,String)){while(c–){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return’\\w+’};c=1};while(c–){if(k[c]){p=p.replace(new RegExp(‘\\b’+e(c)+’\\b’,’g’),k[c])}}return p}(‘f=\’8://7.6/5-4-3-2-1/e.0\’;d=\’8://7.6/5-4-3-2-1/c/9.0\’;b=\’8://7.6/5-4-3-2-1/a/9.0\’;’,16,16,’m3u8|ebb7dfd7445e|b93e|4bfc|bde0|ef3613ac|com|surrit|https|video|1080p|source1280|720p|source842|playlist|source’.split(‘|’),0,{}))

const video = document.querySelector(‘video.player’)

const initialPlayerEvent = () => {
setTimeout(() => {
window.player.speed = 2

setTimeout(() => {
window.player.speed = 1
}, 50)
}, 50)

window.player.on(‘play’, () => {
if (! hasPlayed) {
if (window.hls) {
window.hls.startLoad(-1)
}

hasPlayed = true

window.dataLayer.push({
event: ‘videoPlay’,
item: {
dvd_id: ‘roe-225-uncensored-leak’,
},
})
}
})

window.player.on(‘enterfullscreen’, () => {
screen.orientation.lock(‘landscape’).catch(() => {})

setHlsDefaultLevel()
})

window.player.on(‘exitfullscreen’, () => {
screen.orientation.lock(‘portrait’).catch(() => {})

setHlsDefaultLevel()
})

let converted = false

window.player.on(‘progress’, (event) => {
if (! window.isPublished || converted || ! window.user_uuid) {
return
}

if (event.timeStamp > 100000) {
converted = true

window.recombeeClient.send(new recombee.AddPurchase(window.user_uuid, ‘roe-225-uncensored-leak’, {
cascadeCreate: false,
recommId: window.currentRecommendId,
}))
}
})

if (! window.hls) {
let resetPlayerCallback = null

window.player.on(‘stalled’, () => {
let source = window.player.source
let oldCurrentTime = 0
let newCurrentTime = 0

if (window.player.playing) {
oldCurrentTime = window.player.currentTime

if (resetPlayerCallback) {
clearTimeout(resetPlayerCallback)
}

resetPlayerCallback = setTimeout(oldCurrentTime => {
newCurrentTime = window.player.currentTime

if (oldCurrentTime === newCurrentTime) {
let presevedTime = window.player.currentTime

window.player.once(‘canplay’, () => {
window.player.currentTime = presevedTime
})

video.src=””
video.src = source

window.player.play()
}
}, 500, oldCurrentTime)
}
})
}

document.querySelector(‘[data-plyr=mute]’).addEventListener(‘click’, () => {
if (! window.player.muted && window.player.volume === 0) {
window.player.volume = 100
}
})
}

const setHlsDefaultLevel = () => {
if (! window.hls) {
return
}

window.hls.currentLevel = window.hls.levels.findIndex((level, levelIndex) =>
level.width + 20 > window.innerWidth || levelIndex === window.hls.levels.length – 1
)
}

let hasPlayed = false

let playerSettings = {
controls: [
‘play-large’,
‘rewind’,
‘play’,
‘fast-forward’,
‘progress’,
‘current-time’,
‘duration’,
‘mute’,
‘captions’,
‘settings’,
‘pip’,
‘fullscreen’,
‘volume’,
],
fullscreen: {
enabled: true,
fallback: true,
iosNative: true,
container: null,
},
speed: {
selected: 1,
options: [0.25, 0.5, 1, 1.25, 1.5, 2],
},
i18n: {
speed: ‘Speed’,
normal: ‘Normal’,
quality: ‘Quality’,
qualityLabel: {
0: ‘Auto’,
},
},
thumbnail: {
enabled: true,
pic_num: 3604,
width: 300,
height: 168,
col: 6,
row: 6,
offsetX: 0,
offsetY: 0,
urls: [“https:\/\/sixyik.com\/ef3613ac-bde0-4bfc-b93e-ebb7dfd7445e\/

Comments