سيرفر تحميل المتعدد
سيرفرات تحميل 1080p
document.addEventListener('DOMContentLoaded', () => {
// ===== تشفير روابط السيرفرات Base64 =====
function encodeBase64(str) {
return btoa(unescape(encodeURIComponent(str)));
}
function decodeBase64(str) {
return decodeURIComponent(escape(atob(str)));
}
// شفر كل data-watch
document.querySelectorAll('li[data-watch]').forEach(li => {
const url = li.getAttribute('data-watch');
if (url) {
const encoded = encodeBase64(url);
li.setAttribute('data-watch-enc', encoded);
li.removeAttribute('data-watch');
}
});
// شفر كل iframe src
document.querySelectorAll('iframe[src]').forEach(iframe => {
const src = iframe.getAttribute('src');
if (src) {
const encoded = encodeBase64(src);
iframe.setAttribute('src-enc', encoded);
iframe.removeAttribute('src');
}
});
// فك التشفير عند الضغط على سيرفر من السيرفرات
document.querySelectorAll('li[data-watch-enc]').forEach(li => {
li.addEventListener('click', () => {
const encoded = li.getAttribute('data-watch-enc');
if (!encoded) return;
const decoded = decodeBase64(encoded);
const player = document.querySelector('.WatchIframe iframe');
if (player) {
player.src = decoded;
}
});
});
// ===== حماية F12 وكلك يمين في صفحة السيرفرات فقط =====
if (window.location.pathname.includes('/watch')) {
// منع كلك يمين
window.addEventListener('contextmenu', e => e.preventDefault());
// منع F12 وأدوات المطور والاختصارات
window.addEventListener('keydown', e => {
if (
e.key === 'F12' ||
(e.ctrlKey && e.shiftKey && ['I', 'J', 'C'].includes(e.key.toUpperCase())) ||
(e.ctrlKey && e.key.toUpperCase() === 'U') ||
(e.ctrlKey && e.key.toUpperCase() === 'S') || // منع حفظ الصفحة لو تبي
(e.ctrlKey && e.key.toUpperCase() === 'A') // منع تحديد الكل لو تبي
) {
e.preventDefault();
location.href = '/'; // يطرد على الصفحة الرئيسية بسرعة
}
});
// كشف فتح أدوات المطور عن طريق أبعاد النافذة
setInterval(() => {
if (window.outerHeight - window.innerHeight > 100 || window.outerWidth - window.innerWidth > 100) {
location.href = '/';
}
}, 500);
}
});