Данный раздел сайта может содержать информацию, предназначенную для лиц, достигших 18 лет. Чтобы продолжить, подтвердите достижение данного возраста.
";
var currentPageUrl = window.location.href;
var urlParts = currentPageUrl.split('/');
var pageNumber = urlParts.length > 1 && !isNaN(parseInt(urlParts[urlParts.length - 2])) ? parseInt(urlParts[urlParts.length - 2]) : 1;
var $html = '';
var $add = 'true';
if (pageNumber>1) {
var $video_start = $limit * (pageNumber - 1);
var $video_end = $video_start + $limit;
}
var user_data_db_v = localStorage.getItem('user_data_db_v');
if(user_data_db_v===null) {
user_data_db_v = 1;
}
var request = indexedDB.open('user_data_db', user_data_db_v);
request.onerror = function(event) {
console.error("Error opening IndexedDB database:", event.target.errorCode);
};
request.onsuccess = function(event) {
var db = event.target.result;
var transaction = db.transaction(['favourites_videos'], 'readonly');
var store = transaction.objectStore('favourites_videos');
var getAllRequest = store.getAll();
getAllRequest.onerror = function(event) {
console.error("Error reading data from IndexedDB:", event.target.errorCode);
};
getAllRequest.onsuccess = function(event) {
var videos = event.target.result;
var allVideos = [];
videos.forEach(function(videoRecord) {
allVideos = allVideos.concat(videoRecord.video);
});
allVideos.sort(function(a, b) {
return b.timestamp - a.timestamp;
});
if (allVideos.length === 0) {
document.querySelectorAll('385.js-favourites-clear-all').forEach(el => {
el.style.display = 'none';
});
$html += $empty_content;
} else {
$html += '';
allVideos.forEach(function(video, index) {
if (pageNumber>1) {
if (index > $video_start && index = $limit) {
return;
}
}
if ($add=='true') {
$models = '';
$thumb_info = '';
if (video.k4!=undefined && video.k4=='1') {
$thumb_info += '
';
}
if (video.object_rating!=undefined) {
$thumb_info += '
' + video.object_rating + '
';
}
if (video.video_viewed!=undefined) {
$thumb_info += '
' + video.video_viewed + '
';
}
if (video.shemale!=undefined && video.shemale=='1') {
$thumb_info += '
';
}
$thumb_info += '
';
$html += '';
const xhr = new XMLHttpRequest();
xhr.open('GET', video.screenshot, true);
xhr.onload = function() {
if (xhr.status === 200) {
} else {
document.getElementById('video_id_' + video.video_id).setAttribute('data-action', 'delet');
}
};
xhr.onerror = function() {
document.getElementById('video_id_' + video.video_id).setAttribute('data-action', 'delet');
};
xhr.send();
}
});
}
document.getElementById('favorites_block').innerHTML = $html;
if (allVideos.length>$limit) {
var $html_pagination = '';
document.getElementById('pagination').innerHTML = $html_pagination;
}
};
};
我们使用 cookie 来优化网站功能并为您提供最佳体验。 了解更多
e6d957fcd9