Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51e41df3ca | ||
|
|
97079931f2 | ||
|
|
22ed7a4bda | ||
|
|
774c8f0f02 | ||
|
|
b5c2c97559 |
@@ -152,6 +152,117 @@
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// 2.3 Dedicated Local Admin Login Modal (Alt+A)
|
||||||
|
function openLocalAdminLoginModal() {
|
||||||
|
var existingModal = document.getElementById('yaktube-admin-login-modal');
|
||||||
|
if (existingModal) {
|
||||||
|
existingModal.style.display = 'flex';
|
||||||
|
var uInput = existingModal.querySelector('#yaktube-admin-username');
|
||||||
|
if (uInput) uInput.focus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var modal = document.createElement('div');
|
||||||
|
modal.id = 'yaktube-admin-login-modal';
|
||||||
|
modal.className = 'yaktube-modal-overlay';
|
||||||
|
modal.setAttribute('role', 'dialog');
|
||||||
|
modal.setAttribute('aria-modal', 'true');
|
||||||
|
modal.setAttribute('aria-labelledby', 'yaktube-admin-modal-title');
|
||||||
|
|
||||||
|
modal.innerHTML =
|
||||||
|
'<div class="yaktube-modal-card" style="max-width: 420px; background:#181824; border:1px solid rgba(255,143,55,0.4); border-radius:18px; padding:26px; color:#fff; box-shadow:0 16px 40px rgba(0,0,0,0.8); text-align:left;">' +
|
||||||
|
'<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;">' +
|
||||||
|
'<h3 id="yaktube-admin-modal-title" style="margin:0; font-size:18px; color:#ff8f37;">⚙️ Sunucu Yöneticisi Girişi</h3>' +
|
||||||
|
'<button id="yaktube-admin-modal-close" class="yaktube-voice-modal-close-btn" aria-label="Kapat">✕</button>' +
|
||||||
|
'</div>' +
|
||||||
|
'<p style="font-size:13px; color:#aaa; margin-bottom:16px;">Yerel yönetici (admin) kullanıcı adı ve şifrenizle giriş yaparak PeerTube yönetim paneline erişebilirsiniz.</p>' +
|
||||||
|
'<form id="yaktube-admin-direct-form" style="display:flex; flex-direction:column; gap:12px;">' +
|
||||||
|
'<div style="display:flex; flex-direction:column; gap:4px;">' +
|
||||||
|
'<label for="yaktube-admin-username" style="font-size:13px; font-weight:600; color:#ddd;">Kullanıcı Adı veya E-posta:</label>' +
|
||||||
|
'<input type="text" id="yaktube-admin-username" required style="background:#22222e; border:1px solid #444; border-radius:8px; padding:10px 12px; color:#fff; font-size:14px; outline:none;" />' +
|
||||||
|
'</div>' +
|
||||||
|
'<div style="display:flex; flex-direction:column; gap:4px;">' +
|
||||||
|
'<label for="yaktube-admin-password" style="font-size:13px; font-weight:600; color:#ddd;">Şifre:</label>' +
|
||||||
|
'<input type="password" id="yaktube-admin-password" required style="background:#22222e; border:1px solid #444; border-radius:8px; padding:10px 12px; color:#fff; font-size:14px; outline:none;" />' +
|
||||||
|
'</div>' +
|
||||||
|
'<div id="yaktube-admin-login-error" style="color:#ef4444; font-size:13px; display:none; margin-top:4px;"></div>' +
|
||||||
|
'<button type="submit" id="yaktube-admin-login-submit" style="background:linear-gradient(135deg, #ff8f37 0%, #ff5e3a 100%); color:#fff; border:none; border-radius:8px; padding:12px; font-weight:700; font-size:14px; cursor:pointer; margin-top:6px;">Yönetici Olarak Giriş Yap</button>' +
|
||||||
|
'</form>' +
|
||||||
|
'</div>';
|
||||||
|
|
||||||
|
document.body.appendChild(modal);
|
||||||
|
|
||||||
|
modal.querySelector('#yaktube-admin-modal-close').addEventListener('click', function () {
|
||||||
|
modal.style.display = 'none';
|
||||||
|
});
|
||||||
|
modal.addEventListener('click', function (e) {
|
||||||
|
if (e.target === modal) modal.style.display = 'none';
|
||||||
|
});
|
||||||
|
|
||||||
|
var form = modal.querySelector('#yaktube-admin-direct-form');
|
||||||
|
var errEl = modal.querySelector('#yaktube-admin-login-error');
|
||||||
|
var uInput = modal.querySelector('#yaktube-admin-username');
|
||||||
|
var pInput = modal.querySelector('#yaktube-admin-password');
|
||||||
|
var sBtn = modal.querySelector('#yaktube-admin-login-submit');
|
||||||
|
|
||||||
|
uInput.focus();
|
||||||
|
|
||||||
|
form.addEventListener('submit', async function (ev) {
|
||||||
|
ev.preventDefault();
|
||||||
|
errEl.style.display = 'none';
|
||||||
|
sBtn.disabled = true;
|
||||||
|
sBtn.innerText = 'Giriş Yapılıyor...';
|
||||||
|
|
||||||
|
try {
|
||||||
|
var clientRes = await fetch('/api/v1/oauth-clients/local');
|
||||||
|
var clientData = await clientRes.json();
|
||||||
|
|
||||||
|
var bodyParams = new URLSearchParams({
|
||||||
|
client_id: clientData.client_id,
|
||||||
|
client_secret: clientData.client_secret,
|
||||||
|
grant_type: 'password',
|
||||||
|
username: uInput.value.trim(),
|
||||||
|
password: pInput.value
|
||||||
|
});
|
||||||
|
|
||||||
|
var tokenRes = await fetch('/api/v1/users/token', {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||||
|
body: bodyParams.toString()
|
||||||
|
});
|
||||||
|
|
||||||
|
var tokenData = await tokenRes.json();
|
||||||
|
if (!tokenRes.ok || !tokenData.access_token) {
|
||||||
|
throw new Error(tokenData.error_description || tokenData.error || 'Kullanıcı adı veya şifre hatalı.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Store tokens
|
||||||
|
localStorage.setItem('access_token', tokenData.access_token);
|
||||||
|
localStorage.setItem('refresh_token', tokenData.refresh_token);
|
||||||
|
localStorage.setItem('token_type', tokenData.token_type || 'Bearer');
|
||||||
|
localStorage.setItem('username', uInput.value.trim());
|
||||||
|
|
||||||
|
// Get user details
|
||||||
|
var meRes = await fetch('/api/v1/users/me', {
|
||||||
|
headers: { Authorization: 'Bearer ' + tokenData.access_token }
|
||||||
|
});
|
||||||
|
if (meRes.ok) {
|
||||||
|
var meData = await meRes.json();
|
||||||
|
localStorage.setItem('email', meData.email || '');
|
||||||
|
localStorage.setItem('displayName', meData.displayName || meData.username || '');
|
||||||
|
}
|
||||||
|
|
||||||
|
announce('Yönetici girişi başarılı! Yönetim paneline yönlendiriliyorsunuz.', true);
|
||||||
|
window.location.href = '/admin';
|
||||||
|
} catch (err) {
|
||||||
|
errEl.innerText = err.message;
|
||||||
|
errEl.style.display = 'block';
|
||||||
|
sBtn.disabled = false;
|
||||||
|
sBtn.innerText = 'Yönetici Olarak Giriş Yap';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// 2. YakNet SSO Header & Login Flow
|
// 2. YakNet SSO Header & Login Flow
|
||||||
function injectYakNetSSO() {
|
function injectYakNetSSO() {
|
||||||
// 2.1 Header: Place YakNet Account widget in top-right .buttons-container
|
// 2.1 Header: Place YakNet Account widget in top-right .buttons-container
|
||||||
@@ -326,11 +437,7 @@
|
|||||||
if (showAdminBtn) {
|
if (showAdminBtn) {
|
||||||
showAdminBtn.addEventListener('click', function (e) {
|
showAdminBtn.addEventListener('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
subElements.forEach(function (el) {
|
openLocalAdminLoginModal();
|
||||||
el.style.display = '';
|
|
||||||
});
|
|
||||||
showAdminBtn.style.display = 'none';
|
|
||||||
announce('Yönetici kullanıcı adı ve şifre giriş formu açıldı.');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -339,6 +446,21 @@
|
|||||||
|
|
||||||
// 3. Intelligent Branding & A11y DOM Auto-Fixer
|
// 3. Intelligent Branding & A11y DOM Auto-Fixer
|
||||||
function autoFixDOM() {
|
function autoFixDOM() {
|
||||||
|
injectAccessiblePlayerBar();
|
||||||
|
|
||||||
|
// Check if on 403 / unauthorized page and provide admin login button
|
||||||
|
var notAuthorizedEl = document.querySelector('my-not-found, .not-found, .forbidden, my-forbidden, .error-page');
|
||||||
|
if (notAuthorizedEl && !document.getElementById('yaktube-403-admin-btn')) {
|
||||||
|
var btn403 = document.createElement('div');
|
||||||
|
btn403.id = 'yaktube-403-admin-btn';
|
||||||
|
btn403.style.margin = '20px auto';
|
||||||
|
btn403.style.textAlign = 'center';
|
||||||
|
btn403.innerHTML =
|
||||||
|
'<button style="background:linear-gradient(135deg, #ff8f37 0%, #ff5e3a 100%); color:#fff; border:none; padding:12px 24px; border-radius:10px; font-weight:700; cursor:pointer; font-size:15px;">🔑 Sunucu Yöneticisi Olarak Giriş Yap (Alt+A)</button>';
|
||||||
|
btn403.querySelector('button').addEventListener('click', openLocalAdminLoginModal);
|
||||||
|
notAuthorizedEl.appendChild(btn403);
|
||||||
|
}
|
||||||
|
|
||||||
injectYakNetSSO();
|
injectYakNetSSO();
|
||||||
|
|
||||||
// Aggressively remove generic Framasoft Open-in-App / Play Store banners
|
// Aggressively remove generic Framasoft Open-in-App / Play Store banners
|
||||||
@@ -576,13 +698,13 @@
|
|||||||
|
|
||||||
setInterval(autoFixDOM, 1000);
|
setInterval(autoFixDOM, 1000);
|
||||||
|
|
||||||
// 3. Keyboard Shortcuts Modal
|
// 3. Screen-Reader & Turkish Q Optimized Shortcuts & Player Bar (v1.4.1)
|
||||||
function toggleShortcutsModal() {
|
function toggleShortcutsModal() {
|
||||||
var modal = document.getElementById('yaktube-shortcuts-dialog');
|
var modal = document.getElementById('yaktube-shortcuts-dialog');
|
||||||
if (modal) {
|
if (modal) {
|
||||||
if (modal.style.display === 'none' || !modal.style.display) {
|
if (modal.style.display === 'none' || !modal.style.display) {
|
||||||
modal.style.display = 'flex';
|
modal.style.display = 'flex';
|
||||||
announce('Klavye kısayolları yardım penceresi açıldı. Kapatmak i�in Escape tuşuna basın.');
|
announce('Klavye kısayolları yardım penceresi açıldı. Kapatmak için Escape tuşuna basın.');
|
||||||
var closeBtn = document.getElementById('yaktube-shortcuts-close');
|
var closeBtn = document.getElementById('yaktube-shortcuts-close');
|
||||||
if (closeBtn) closeBtn.focus();
|
if (closeBtn) closeBtn.focus();
|
||||||
} else {
|
} else {
|
||||||
@@ -597,35 +719,43 @@
|
|||||||
modal.setAttribute('aria-modal', 'true');
|
modal.setAttribute('aria-modal', 'true');
|
||||||
modal.setAttribute('aria-labelledby', 'yaktube-shortcuts-title');
|
modal.setAttribute('aria-labelledby', 'yaktube-shortcuts-title');
|
||||||
modal.innerHTML =
|
modal.innerHTML =
|
||||||
'<div class="yaktube-modal-card" style="max-width: 520px;">' +
|
'<div class="yaktube-modal-card" style="max-width: 600px; background:#1e1e24; border-radius:18px; padding:24px; color:#fff; box-shadow:0 16px 40px rgba(0,0,0,0.8);">' +
|
||||||
'<h3 id="yaktube-shortcuts-title" class="yaktube-modal-title" style="margin-top:0;">?? YakTube Klavye K�sayollar�</h3>' +
|
'<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;">' +
|
||||||
'<table class="yaktube-shortcuts-table">' +
|
'<h3 id="yaktube-shortcuts-title" style="margin:0; font-size:18px; color:#ff8f37;">⌨️ Klavye Kısayolları (Ekran Okuyucu Uyumlu)</h3>' +
|
||||||
'<thead><tr><th>Kısayol</th><th>İşlev</th></tr></thead>' +
|
'<button id="yaktube-shortcuts-close" class="yaktube-voice-modal-close-btn" aria-label="Kapat">✕</button>' +
|
||||||
|
'</div>' +
|
||||||
|
'<div style="font-size:12px; color:#aaa; margin-bottom:14px;">💡 <b>Ekran Okuyucu Notu:</b> Sanal imleç (Browse mode) açıkken kısayolları <b>Alt</b> tuşuyla birlikte kullanabilir veya video oynatıcı butonlarından faydalanabilirsiniz.</div>' +
|
||||||
|
'<table class="yaktube-shortcuts-table" style="width:100%; border-collapse:collapse; font-size:13px;">' +
|
||||||
|
'<thead><tr style="border-bottom:1px solid rgba(255,255,255,0.1); text-align:left; color:#aaa;"><th style="padding:6px 0;">Kısayol (Evrensel / Tek Tuş)</th><th style="padding:6px 0;">İşlev</th></tr></thead>' +
|
||||||
'<tbody>' +
|
'<tbody>' +
|
||||||
'<tr><td><span class="yaktube-kbd">Space</span> veya <span class="yaktube-kbd">K</span></td><td>Oynat / Duraklat</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + K</span> veya <span class="yaktube-kbd">Space</span></td><td>Oynat / Duraklat</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">Sol Ok</span> veya <span class="yaktube-kbd">J</span></td><td>5 saniye geri sar</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + J</span> veya <span class="yaktube-kbd">J</span></td><td>10 saniye geri sar</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">Sağ Ok</span> veya <span class="yaktube-kbd">L</span></td><td>5 saniye ileri sar</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + L</span> veya <span class="yaktube-kbd">L</span></td><td>10 saniye ileri sar</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">Yukarı / Aşağı Ok</span></td><td>Sesi %5 artır / azalt</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + Yukarı / Aşağı</span></td><td>Sesi %5 artır / azalt</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">M</span></td><td>Sesi Kapat / A� (Mute)</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + M</span> veya <span class="yaktube-kbd">M</span></td><td>Sesi Kapat / Aç (Mute)</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">F</span></td><td>Tam Ekran</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + T</span> veya <span class="yaktube-kbd">T</span></td><td>Sinema / Tiyatro Modu</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">C</span></td><td>Altyazıları A� / Kapat</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + I</span> veya <span class="yaktube-kbd">I</span></td><td>Hızlı Video Bilgisi & İstatistikler</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">/</span> (Bölü)</td><td>Arama kutusuna hızlı git</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + C</span> veya <span class="yaktube-kbd">C</span></td><td>Altyazıları Aç / Kapat</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">0 - 9</span></td><td>Videonun %0 - %90 noktasına atla</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + .</span> / <span class="yaktube-kbd">Alt + ,</span></td><td>Oynatma hızını artır / azalt</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">?</span> (Shift+/)</td><td>Bu yardım kılavuzunu aç / kapat</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + S</span> veya <span class="yaktube-kbd">/</span> (Shift+7)</td><td>Arama penceresini aç</td></tr>' +
|
||||||
'<tr><td><span class="yaktube-kbd">Esc</span></td><td>Pencereleri kapat</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + V</span> veya <span class="yaktube-kbd">Shift + V</span></td><td>Sesli aramayı başlat</td></tr>' +
|
||||||
|
'<tr><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + H</span> veya <span class="yaktube-kbd">F1</span> veya <span class="yaktube-kbd">?</span></td><td>Bu kılavuzu aç / kapat</td></tr>' +
|
||||||
'</tbody>' +
|
'</tbody>' +
|
||||||
'</table>' +
|
'</table>' +
|
||||||
'<button id="yaktube-shortcuts-close" class="yaktube-modal-close-btn" aria-label="Kılavuzu Kapat">Kılavuzu Kapat (Esc)</button>' +
|
|
||||||
'</div>';
|
'</div>';
|
||||||
document.body.appendChild(modal);
|
document.body.appendChild(modal);
|
||||||
|
|
||||||
document.getElementById('yaktube-shortcuts-close').addEventListener('click', function () {
|
var closeBtn = modal.querySelector('#yaktube-shortcuts-close');
|
||||||
modal.style.display = 'none';
|
if (closeBtn) {
|
||||||
|
closeBtn.addEventListener('click', function () {
|
||||||
|
modal.style.display = 'none';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
modal.addEventListener('click', function (e) {
|
||||||
|
if (e.target === modal) modal.style.display = 'none';
|
||||||
});
|
});
|
||||||
|
|
||||||
var closeBtn = document.getElementById('yaktube-shortcuts-close');
|
announce('Klavye kısayolları yardım penceresi açıldı. Kapatmak için Escape tuşuna basın.');
|
||||||
if (closeBtn) closeBtn.focus();
|
|
||||||
announce('Klavye kısayolları yardım penceresi açıldı. Kapatmak i�in Escape tuşuna basın.');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -648,7 +778,181 @@
|
|||||||
return mins + ' dakika ' + secs + ' saniye';
|
return mins + ' dakika ' + secs + ' saniye';
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. Global Keydown Listener
|
function showQuickVideoInfo() {
|
||||||
|
var video = getVideoElement();
|
||||||
|
if (!video) {
|
||||||
|
announce('Şu anda aktif oynatılan bir video bulunmuyor.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var titleEl = document.querySelector('h1.video-title, .video-name, my-video-watch h1, .title');
|
||||||
|
var title = titleEl ? titleEl.textContent.trim() : 'Video';
|
||||||
|
var curTime = formatTime(video.currentTime);
|
||||||
|
var totalTime = formatTime(video.duration || 0);
|
||||||
|
var remaining = formatTime((video.duration || 0) - video.currentTime);
|
||||||
|
var speed = (video.playbackRate || 1) + 'x';
|
||||||
|
var volume = Math.round((video.volume || 1) * 100) + '%';
|
||||||
|
var quality = video.videoHeight ? video.videoHeight + 'p' : 'Otomatik';
|
||||||
|
|
||||||
|
// Visual Toast
|
||||||
|
var existingToast = document.querySelector('.yaktube-video-info-toast');
|
||||||
|
if (existingToast) existingToast.remove();
|
||||||
|
|
||||||
|
var toast = document.createElement('div');
|
||||||
|
toast.className = 'yaktube-video-info-toast';
|
||||||
|
toast.innerHTML =
|
||||||
|
'<div class="yaktube-info-toast-title">📊 Video Bilgisi & Durum</div>' +
|
||||||
|
'<div class="yaktube-info-toast-row"><span>Başlık:</span> <b>' +
|
||||||
|
(title.length > 28 ? title.substring(0, 28) + '...' : title) +
|
||||||
|
'</b></div>' +
|
||||||
|
'<div class="yaktube-info-toast-row"><span>Konum / Süre:</span> <b>' +
|
||||||
|
curTime +
|
||||||
|
' / ' +
|
||||||
|
totalTime +
|
||||||
|
'</b></div>' +
|
||||||
|
'<div class="yaktube-info-toast-row"><span>Kalan Süre:</span> <b>' +
|
||||||
|
remaining +
|
||||||
|
'</b></div>' +
|
||||||
|
'<div class="yaktube-info-toast-row"><span>Çözünürlük:</span> <b>' +
|
||||||
|
quality +
|
||||||
|
'</b></div>' +
|
||||||
|
'<div class="yaktube-info-toast-row"><span>Hız & Ses:</span> <b>' +
|
||||||
|
speed +
|
||||||
|
' | ' +
|
||||||
|
volume +
|
||||||
|
'</b></div>';
|
||||||
|
|
||||||
|
document.body.appendChild(toast);
|
||||||
|
setTimeout(function () {
|
||||||
|
if (toast.parentElement) toast.remove();
|
||||||
|
}, 4000);
|
||||||
|
|
||||||
|
announce(
|
||||||
|
'Video Bilgisi: ' +
|
||||||
|
title +
|
||||||
|
'. Konum: ' +
|
||||||
|
curTime +
|
||||||
|
', Toplam Süre: ' +
|
||||||
|
totalTime +
|
||||||
|
', Kalan: ' +
|
||||||
|
remaining +
|
||||||
|
', Oynatma Hızı: ' +
|
||||||
|
speed +
|
||||||
|
', Ses: yüzde ' +
|
||||||
|
Math.round(video.volume * 100) +
|
||||||
|
', Çözünürlük: ' +
|
||||||
|
quality,
|
||||||
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
var speedSteps = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];
|
||||||
|
|
||||||
|
function adjustPlaybackSpeed(increase) {
|
||||||
|
var video = getVideoElement();
|
||||||
|
if (!video) return;
|
||||||
|
var curSpeed = video.playbackRate || 1;
|
||||||
|
if (increase) {
|
||||||
|
var nextIdx = speedSteps.findIndex(function (s) {
|
||||||
|
return s > curSpeed;
|
||||||
|
});
|
||||||
|
video.playbackRate = nextIdx !== -1 ? speedSteps[nextIdx] : 2;
|
||||||
|
announce('Oynatma hızı ' + video.playbackRate + ' katına çıkarıldı.');
|
||||||
|
} else {
|
||||||
|
var prevSteps = speedSteps.filter(function (s) {
|
||||||
|
return s < curSpeed;
|
||||||
|
});
|
||||||
|
video.playbackRate = prevSteps.length > 0 ? prevSteps[prevSteps.length - 1] : 0.25;
|
||||||
|
announce('Oynatma hızı ' + video.playbackRate + ' katına düşürüldü.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3.1. Injects Accessible Player Action Bar under the Watch Video
|
||||||
|
function injectAccessiblePlayerBar() {
|
||||||
|
if (!window.location.pathname.includes('/videos/watch/')) return;
|
||||||
|
var video = getVideoElement();
|
||||||
|
if (!video) return;
|
||||||
|
|
||||||
|
var targetContainer = document.querySelector(
|
||||||
|
'my-video-watch, .video-watch, .watch-container, #yaktube-ondemand-container'
|
||||||
|
);
|
||||||
|
if (!targetContainer) return;
|
||||||
|
|
||||||
|
var existingBar = document.getElementById('yaktube-player-action-bar');
|
||||||
|
if (existingBar) return;
|
||||||
|
|
||||||
|
var bar = document.createElement('div');
|
||||||
|
bar.id = 'yaktube-player-action-bar';
|
||||||
|
bar.className = 'yaktube-player-action-bar';
|
||||||
|
bar.setAttribute('role', 'toolbar');
|
||||||
|
bar.setAttribute('aria-label', 'Erişilebilir Video Kontrolleri');
|
||||||
|
|
||||||
|
bar.innerHTML =
|
||||||
|
'<span class="yaktube-player-bar-label">⚡ Oynatıcı Kontrolleri:</span>' +
|
||||||
|
'<button id="yaktube-bar-rewind-btn" class="yaktube-player-action-btn" aria-label="10 Saniye Geri Sar (Alt+J)">⏪ 10sn Geri</button>' +
|
||||||
|
'<button id="yaktube-bar-play-btn" class="yaktube-player-action-btn" aria-label="Oynat veya Duraklat (Alt+K)">⏯️ Oynat/Duraklat</button>' +
|
||||||
|
'<button id="yaktube-bar-forward-btn" class="yaktube-player-action-btn" aria-label="10 Saniye İleri Sar (Alt+L)">⏩ 10sn İleri</button>' +
|
||||||
|
'<button id="yaktube-bar-speed-btn" class="yaktube-player-action-btn" aria-label="Oynatma Hızını Değiştir (Alt+.)">⚡ Hız</button>' +
|
||||||
|
'<button id="yaktube-bar-theater-btn" class="yaktube-player-action-btn" aria-label="Sinema Modunu Aç/Kapat (Alt+T)">🎭 Sinema</button>' +
|
||||||
|
'<button id="yaktube-bar-info-btn" class="yaktube-player-action-btn" aria-label="Video Bilgisi ve İstatistikleri (Alt+I)">📊 Bilgi</button>' +
|
||||||
|
'<button id="yaktube-bar-help-btn" class="yaktube-player-action-btn" aria-label="Kısayol Kılavuzu (Alt+H veya F1)">⌨️ Kısayollar</button>';
|
||||||
|
|
||||||
|
var playerWrap =
|
||||||
|
document.querySelector('.player-container, .video-player-container, .player-wrapper, my-video-watch .player') ||
|
||||||
|
targetContainer;
|
||||||
|
if (playerWrap && playerWrap.nextSibling) {
|
||||||
|
playerWrap.parentNode.insertBefore(bar, playerWrap.nextSibling);
|
||||||
|
} else {
|
||||||
|
targetContainer.prepend(bar);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Attach button actions
|
||||||
|
bar.querySelector('#yaktube-bar-rewind-btn').addEventListener('click', function () {
|
||||||
|
if (video) {
|
||||||
|
video.currentTime = Math.max(0, video.currentTime - 10);
|
||||||
|
announce('10 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
bar.querySelector('#yaktube-bar-play-btn').addEventListener('click', function () {
|
||||||
|
if (video) {
|
||||||
|
if (video.paused) {
|
||||||
|
video.play();
|
||||||
|
announce('Video oynatılıyor.');
|
||||||
|
} else {
|
||||||
|
video.pause();
|
||||||
|
announce('Video duraklatıldı.');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
bar.querySelector('#yaktube-bar-forward-btn').addEventListener('click', function () {
|
||||||
|
if (video) {
|
||||||
|
video.currentTime = Math.min(video.duration || 99999, video.currentTime + 10);
|
||||||
|
announce('10 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
bar.querySelector('#yaktube-bar-speed-btn').addEventListener('click', function () {
|
||||||
|
adjustPlaybackSpeed(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
bar.querySelector('#yaktube-bar-theater-btn').addEventListener('click', function () {
|
||||||
|
document.body.classList.toggle('yaktube-theater-mode');
|
||||||
|
var isT = document.body.classList.contains('yaktube-theater-mode');
|
||||||
|
announce(isT ? 'Sinema modu açıldı.' : 'Sinema modundan çıkıldı.');
|
||||||
|
});
|
||||||
|
|
||||||
|
bar.querySelector('#yaktube-bar-info-btn').addEventListener('click', function () {
|
||||||
|
showQuickVideoInfo();
|
||||||
|
});
|
||||||
|
|
||||||
|
bar.querySelector('#yaktube-bar-help-btn').addEventListener('click', function () {
|
||||||
|
toggleShortcutsModal();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 4. Global Keydown Listener (Screen-Reader & Turkish Q Optimized)
|
||||||
window.addEventListener('keydown', function (e) {
|
window.addEventListener('keydown', function (e) {
|
||||||
if (e.key === 'Escape') {
|
if (e.key === 'Escape') {
|
||||||
var shortcutsModal = document.getElementById('yaktube-shortcuts-dialog');
|
var shortcutsModal = document.getElementById('yaktube-shortcuts-dialog');
|
||||||
@@ -669,7 +973,15 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.key === '?' || (e.shiftKey && e.key === '/')) {
|
// Admin Login: Alt+A
|
||||||
|
if (e.altKey && (e.key === 'a' || e.key === 'A') && !isInputFocused()) {
|
||||||
|
e.preventDefault();
|
||||||
|
openLocalAdminLoginModal();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Help Dialog: Alt+H, F1 or '?' key
|
||||||
|
if ((e.altKey && (e.key === 'h' || e.key === 'H')) || e.key === 'F1' || e.key === '?') {
|
||||||
if (!isInputFocused()) {
|
if (!isInputFocused()) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
toggleShortcutsModal();
|
toggleShortcutsModal();
|
||||||
@@ -677,18 +989,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.key === '/' && !isInputFocused()) {
|
// Search Open: Alt+S, Ctrl+K or '/' key (Turkish Q Shift+7)
|
||||||
|
if (
|
||||||
|
((e.altKey && (e.key === 's' || e.key === 'S')) ||
|
||||||
|
(e.ctrlKey && (e.key === 'k' || e.key === 'K')) ||
|
||||||
|
e.key === '/') &&
|
||||||
|
!isInputFocused()
|
||||||
|
) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var searchInput =
|
openFullSearchModal('', false);
|
||||||
document.querySelector('input[type="search"]') ||
|
return;
|
||||||
document.querySelector('input[name="search"]') ||
|
}
|
||||||
document.querySelector('.search-input') ||
|
|
||||||
document.querySelector('input');
|
// Voice Search Open: Alt+V or Shift+V
|
||||||
if (searchInput) {
|
if (
|
||||||
searchInput.focus();
|
((e.altKey && (e.key === 'v' || e.key === 'V')) || (e.shiftKey && (e.key === 'v' || e.key === 'V'))) &&
|
||||||
if (searchInput.select) searchInput.select();
|
!isInputFocused()
|
||||||
announce('Arama kutusuna odaklanıldı.');
|
) {
|
||||||
}
|
e.preventDefault();
|
||||||
|
openFullSearchModal('', true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -700,8 +1019,10 @@
|
|||||||
if (!video) return;
|
if (!video) return;
|
||||||
|
|
||||||
var key = e.key.toLowerCase();
|
var key = e.key.toLowerCase();
|
||||||
|
var alt = e.altKey;
|
||||||
|
|
||||||
if (key === ' ' || key === 'k') {
|
// Play / Pause (Alt+K, Space or K)
|
||||||
|
if (key === ' ' || key === 'k' || (alt && key === 'k')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (video.paused) {
|
if (video.paused) {
|
||||||
video.play();
|
video.play();
|
||||||
@@ -710,27 +1031,45 @@
|
|||||||
video.pause();
|
video.pause();
|
||||||
announce('Video duraklatıldı.');
|
announce('Video duraklatıldı.');
|
||||||
}
|
}
|
||||||
} else if (key === 'j' || e.key === 'ArrowLeft') {
|
}
|
||||||
|
// Seek 10s Back / Forward (Alt+J / Alt+L or J / L)
|
||||||
|
else if (key === 'j' || (alt && key === 'j')) {
|
||||||
|
e.preventDefault();
|
||||||
|
video.currentTime = Math.max(0, video.currentTime - 10);
|
||||||
|
announce('10 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
|
} else if (key === 'l' || (alt && key === 'l')) {
|
||||||
|
e.preventDefault();
|
||||||
|
video.currentTime = Math.min(video.duration || 99999, video.currentTime + 10);
|
||||||
|
announce('10 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
|
}
|
||||||
|
// Seek 5s Back / Forward (ArrowLeft / ArrowRight or Alt+Left/Right)
|
||||||
|
else if (e.key === 'ArrowLeft' || (alt && e.key === 'ArrowLeft')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.currentTime = Math.max(0, video.currentTime - 5);
|
video.currentTime = Math.max(0, video.currentTime - 5);
|
||||||
announce('5 saniye geri sarıldı. Åu an: ' + formatTime(video.currentTime));
|
announce('5 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
} else if (key === 'l' || e.key === 'ArrowRight') {
|
} else if (e.key === 'ArrowRight' || (alt && e.key === 'ArrowRight')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.currentTime = Math.min(video.duration || 99999, video.currentTime + 5);
|
video.currentTime = Math.min(video.duration || 99999, video.currentTime + 5);
|
||||||
announce('5 saniye ileri sarıldı. Åu an: ' + formatTime(video.currentTime));
|
announce('5 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
|
||||||
} else if (e.key === 'ArrowUp') {
|
}
|
||||||
|
// Volume Up / Down (ArrowUp / ArrowDown or Alt+Up/Down)
|
||||||
|
else if (e.key === 'ArrowUp' || (alt && e.key === 'ArrowUp')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.volume = Math.min(1, video.volume + 0.05);
|
video.volume = Math.min(1, (video.volume || 1) + 0.05);
|
||||||
announce('Ses seviyesi yüzde ' + Math.round(video.volume * 100));
|
announce('Ses seviyesi yüzde ' + Math.round(video.volume * 100));
|
||||||
} else if (e.key === 'ArrowDown') {
|
} else if (e.key === 'ArrowDown' || (alt && e.key === 'ArrowDown')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.volume = Math.max(0, video.volume - 0.05);
|
video.volume = Math.max(0, (video.volume || 1) - 0.05);
|
||||||
announce('Ses seviyesi yüzde ' + Math.round(video.volume * 100));
|
announce('Ses seviyesi yüzde ' + Math.round(video.volume * 100));
|
||||||
} else if (key === 'm') {
|
}
|
||||||
|
// Mute (Alt+M or M)
|
||||||
|
else if (key === 'm' || (alt && key === 'm')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.muted = !video.muted;
|
video.muted = !video.muted;
|
||||||
announce(video.muted ? 'Ses kapatıldı (Sessiz).' : 'Ses açıldı.');
|
announce(video.muted ? 'Ses kapatıldı (Sessiz).' : 'Ses açıldı.');
|
||||||
} else if (key === 'f') {
|
}
|
||||||
|
// Fullscreen (Alt+F or F)
|
||||||
|
else if (key === 'f' || (alt && key === 'f')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (!document.fullscreenElement) {
|
if (!document.fullscreenElement) {
|
||||||
var container = video.closest('.video-js') || video.parentElement || video;
|
var container = video.closest('.video-js') || video.parentElement || video;
|
||||||
@@ -740,7 +1079,21 @@
|
|||||||
if (document.exitFullscreen) document.exitFullscreen();
|
if (document.exitFullscreen) document.exitFullscreen();
|
||||||
announce('Tam ekrandan çıkıldı.');
|
announce('Tam ekrandan çıkıldı.');
|
||||||
}
|
}
|
||||||
} else if (key === 'c') {
|
}
|
||||||
|
// Theater Mode (Alt+T or T)
|
||||||
|
else if (key === 't' || (alt && key === 't')) {
|
||||||
|
e.preventDefault();
|
||||||
|
document.body.classList.toggle('yaktube-theater-mode');
|
||||||
|
var isTheater = document.body.classList.contains('yaktube-theater-mode');
|
||||||
|
announce(isTheater ? 'Sinema modu açıldı.' : 'Sinema modundan çıkıldı.');
|
||||||
|
}
|
||||||
|
// Quick Video Info (Alt+I or I)
|
||||||
|
else if (key === 'i' || (alt && key === 'i')) {
|
||||||
|
e.preventDefault();
|
||||||
|
showQuickVideoInfo();
|
||||||
|
}
|
||||||
|
// Subtitles (Alt+C or C)
|
||||||
|
else if (key === 'c' || (alt && key === 'c')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var tracks = video.textTracks;
|
var tracks = video.textTracks;
|
||||||
if (tracks && tracks.length > 0) {
|
if (tracks && tracks.length > 0) {
|
||||||
@@ -750,12 +1103,22 @@
|
|||||||
} else {
|
} else {
|
||||||
announce('Bu videoda altyazı bulunmuyor.');
|
announce('Bu videoda altyazı bulunmuyor.');
|
||||||
}
|
}
|
||||||
} else if (key >= '0' && key <= '9' && !e.ctrlKey && !e.altKey && !e.metaKey) {
|
}
|
||||||
|
// Speed Controls (Alt+. / Alt+, or > / <)
|
||||||
|
else if ((alt && (e.key === '.' || e.key === '>')) || e.key === '>') {
|
||||||
|
e.preventDefault();
|
||||||
|
adjustPlaybackSpeed(true);
|
||||||
|
} else if ((alt && (e.key === ',' || e.key === '<')) || e.key === '<') {
|
||||||
|
e.preventDefault();
|
||||||
|
adjustPlaybackSpeed(false);
|
||||||
|
}
|
||||||
|
// Percentage Jumps (0 - 9)
|
||||||
|
else if (key >= '0' && key <= '9' && !e.ctrlKey && !e.altKey && !e.metaKey) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var percent = parseInt(key, 10) * 10;
|
var percent = parseInt(key, 10) * 10;
|
||||||
if (video.duration) {
|
if (video.duration) {
|
||||||
video.currentTime = (video.duration * percent) / 100;
|
video.currentTime = (video.duration * percent) / 100;
|
||||||
announce('Videonun yüzde ' + percent + ' noktasına atlandı. Åu an: ' + formatTime(video.currentTime));
|
announce('Videonun yüzde ' + percent + ' noktasına atlandı. Konum: ' + formatTime(video.currentTime));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
+9
-5
@@ -1,14 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.3.3",
|
"version": "1.4.3",
|
||||||
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
|
"library": "./main.js",
|
||||||
|
"staticDirs": {},
|
||||||
|
"translations": {},
|
||||||
"clientScripts": [
|
"clientScripts": [
|
||||||
{
|
{
|
||||||
|
"script": "client.js",
|
||||||
"scopes": [
|
"scopes": [
|
||||||
"common"
|
"common"
|
||||||
],
|
]
|
||||||
"script": "client.js"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"css": [
|
"css": [
|
||||||
@@ -36,8 +39,9 @@
|
|||||||
"author": "Enes Yakıştır <[email protected]>",
|
"author": "Enes Yakıştır <[email protected]>",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/enesyakistir/peertube-plugin-yaktube-ondemand.git"
|
"url": "https://github.com/yakistir98/peertube-plugin-yaktube-ondemand.git"
|
||||||
},
|
},
|
||||||
"homepage": "https://yaktube.yakhub.com.tr",
|
"homepage": "https://yaktube.yakhub.com.tr",
|
||||||
|
"bugs": "https://github.com/yakistir98/peertube-plugin-yaktube-ondemand/issues",
|
||||||
"license": "AGPL-3.0-or-later"
|
"license": "AGPL-3.0-or-later"
|
||||||
}
|
}
|
||||||
@@ -768,3 +768,129 @@ my-search-typeahead,
|
|||||||
padding-top: 12px !important;
|
padding-top: 12px !important;
|
||||||
margin-top: 8px !important;
|
margin-top: 8px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* YOUTUBE THEATER MODE & QUICK VIDEO INFO TOAST (v1.4.0) */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* Theater / Cinema Mode (T) */
|
||||||
|
body.yaktube-theater-mode my-video-watch,
|
||||||
|
body.yaktube-theater-mode .video-watch,
|
||||||
|
body.yaktube-theater-mode .watch-container {
|
||||||
|
max-width: 100% !important;
|
||||||
|
width: 100% !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.yaktube-theater-mode .player-container,
|
||||||
|
body.yaktube-theater-mode .video-player-container,
|
||||||
|
body.yaktube-theater-mode .player-wrapper {
|
||||||
|
max-height: 82vh !important;
|
||||||
|
height: 82vh !important;
|
||||||
|
width: 100% !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
background: #000 !important;
|
||||||
|
display: flex !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
align-items: center !important;
|
||||||
|
margin-bottom: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.yaktube-theater-mode video,
|
||||||
|
body.yaktube-theater-mode .video-js {
|
||||||
|
width: 100% !important;
|
||||||
|
height: 100% !important;
|
||||||
|
max-height: 82vh !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quick Video Info Toast (I) */
|
||||||
|
.yaktube-video-info-toast {
|
||||||
|
position: fixed !important;
|
||||||
|
top: 70px !important;
|
||||||
|
right: 20px !important;
|
||||||
|
background: rgba(20, 20, 26, 0.95) !important;
|
||||||
|
backdrop-filter: blur(12px) !important;
|
||||||
|
border: 1px solid rgba(255, 143, 55, 0.4) !important;
|
||||||
|
border-radius: 14px !important;
|
||||||
|
padding: 16px 20px !important;
|
||||||
|
color: #fff !important;
|
||||||
|
font-size: 14px !important;
|
||||||
|
z-index: 99999 !important;
|
||||||
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
|
||||||
|
max-width: 380px !important;
|
||||||
|
animation: yaktube-fade-in 0.25s ease-out !important;
|
||||||
|
pointer-events: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-info-toast-title {
|
||||||
|
font-size: 15px !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
color: #ff8f37 !important;
|
||||||
|
margin-bottom: 8px !important;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 6px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-info-toast-row {
|
||||||
|
display: flex !important;
|
||||||
|
justify-content: space-between !important;
|
||||||
|
margin: 4px 0 !important;
|
||||||
|
font-size: 13px !important;
|
||||||
|
color: #ccc !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-info-toast-row b {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* ACCESSIBLE PLAYER ACTION BAR & SHORTCUTS (v1.4.1) */
|
||||||
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.yaktube-player-action-bar {
|
||||||
|
display: flex !important;
|
||||||
|
flex-wrap: wrap !important;
|
||||||
|
gap: 8px !important;
|
||||||
|
align-items: center !important;
|
||||||
|
background: #181820 !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||||
|
border-radius: 12px !important;
|
||||||
|
padding: 10px 14px !important;
|
||||||
|
margin: 12px 0 16px 0 !important;
|
||||||
|
width: 100% !important;
|
||||||
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-player-bar-label {
|
||||||
|
font-size: 13px !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
color: #ff8f37 !important;
|
||||||
|
margin-right: 6px !important;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 4px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-player-action-btn {
|
||||||
|
background: #252530 !important;
|
||||||
|
color: #f1f1f1 !important;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
padding: 6px 12px !important;
|
||||||
|
font-size: 13px !important;
|
||||||
|
font-weight: 600 !important;
|
||||||
|
cursor: pointer !important;
|
||||||
|
display: inline-flex !important;
|
||||||
|
align-items: center !important;
|
||||||
|
gap: 6px !important;
|
||||||
|
transition: all 0.2s ease !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-player-action-btn:hover,
|
||||||
|
.yaktube-player-action-btn:focus {
|
||||||
|
background: rgba(255, 143, 55, 0.2) !important;
|
||||||
|
border-color: #ff8f37 !important;
|
||||||
|
color: #fff !important;
|
||||||
|
outline: none !important;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user