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 | |
|---|---|---|---|
|
|
65fdc8a71f |
@@ -1079,432 +1079,463 @@ try {
|
|||||||
// 3. Screen-Reader & Turkish Q Optimized Shortcuts & Player Bar (v1.4.1)
|
// 3. Screen-Reader & Turkish Q Optimized Shortcuts & Player Bar (v1.4.1)
|
||||||
// YakTube NLnet WCAG 2.2 AAA & Privacy Suite Modules
|
// YakTube NLnet WCAG 2.2 AAA & Privacy Suite Modules
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// 1. WCAG 2.2 AAA Focus Trap & Modal Management
|
// 1. WCAG 2.2 AAA Focus Trap & Modal Management
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
var lastActiveElementBeforeModal = null;
|
var lastActiveElementBeforeModal = null;
|
||||||
|
|
||||||
function trapFocusInModal(modalEl) {
|
function trapFocusInModal(modalEl) {
|
||||||
if (!modalEl) return;
|
if (!modalEl) return;
|
||||||
var focusableElements = modalEl.querySelectorAll(
|
var focusableElements = modalEl.querySelectorAll(
|
||||||
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
||||||
);
|
);
|
||||||
if (!focusableElements.length) return;
|
if (!focusableElements.length) return;
|
||||||
var firstFocusable = focusableElements[0];
|
var firstFocusable = focusableElements[0];
|
||||||
var lastFocusable = focusableElements[focusableElements.length - 1];
|
var lastFocusable = focusableElements[focusableElements.length - 1];
|
||||||
|
|
||||||
function handleKeydown(e) {
|
function handleKeydown(e) {
|
||||||
if (e.key !== 'Tab') return;
|
if (e.key !== 'Tab') return;
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
if (document.activeElement === firstFocusable) {
|
if (document.activeElement === firstFocusable) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
lastFocusable.focus();
|
lastFocusable.focus();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (document.activeElement === lastFocusable) {
|
||||||
|
e.preventDefault();
|
||||||
|
firstFocusable.focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (document.activeElement === lastFocusable) {
|
modalEl.removeEventListener('keydown', modalEl._trapHandler);
|
||||||
e.preventDefault();
|
modalEl._trapHandler = handleKeydown;
|
||||||
|
modalEl.addEventListener('keydown', handleKeydown);
|
||||||
|
setTimeout(function () {
|
||||||
firstFocusable.focus();
|
firstFocusable.focus();
|
||||||
|
}, 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
function recordFocusBeforeModal() {
|
||||||
|
lastActiveElementBeforeModal = document.activeElement;
|
||||||
|
}
|
||||||
|
|
||||||
|
function restoreFocusAfterModal() {
|
||||||
|
if (lastActiveElementBeforeModal && typeof lastActiveElementBeforeModal.focus === 'function') {
|
||||||
|
try {
|
||||||
|
lastActiveElementBeforeModal.focus();
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
modalEl.removeEventListener('keydown', modalEl._trapHandler);
|
// ============================================================================
|
||||||
modalEl._trapHandler = handleKeydown;
|
// 2. Audio-Only & Screen Blank Mode (NLnet Privacy & Bandwidth Shield)
|
||||||
modalEl.addEventListener('keydown', handleKeydown);
|
// ============================================================================
|
||||||
setTimeout(function () {
|
var isAudioOnlyMode = false;
|
||||||
firstFocusable.focus();
|
var wakeLockSentinel = null;
|
||||||
}, 50);
|
|
||||||
}
|
|
||||||
|
|
||||||
function recordFocusBeforeModal() {
|
async function requestScreenWakeLock() {
|
||||||
lastActiveElementBeforeModal = document.activeElement;
|
try {
|
||||||
}
|
if ('wakeLock' in navigator) {
|
||||||
|
wakeLockSentinel = await navigator.wakeLock.request('screen');
|
||||||
function restoreFocusAfterModal() {
|
wakeLockSentinel.addEventListener('release', function () {
|
||||||
if (lastActiveElementBeforeModal && typeof lastActiveElementBeforeModal.focus === 'function') {
|
wakeLockSentinel = null;
|
||||||
try {
|
});
|
||||||
lastActiveElementBeforeModal.focus();
|
}
|
||||||
} catch (e) {}
|
} catch (err) {
|
||||||
}
|
console.warn('[YakTube] WakeLock error:', err);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
|
||||||
// 2. Audio-Only & Screen Blank Mode (NLnet Privacy & Bandwidth Shield)
|
|
||||||
// ============================================================================
|
|
||||||
var isAudioOnlyMode = false;
|
|
||||||
var wakeLockSentinel = null;
|
|
||||||
|
|
||||||
async function requestScreenWakeLock() {
|
|
||||||
try {
|
|
||||||
if ('wakeLock' in navigator) {
|
|
||||||
wakeLockSentinel = await navigator.wakeLock.request('screen');
|
|
||||||
wakeLockSentinel.addEventListener('release', function () {
|
|
||||||
wakeLockSentinel = null;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
|
||||||
console.warn('[YakTube] WakeLock error:', err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function releaseScreenWakeLock() {
|
function releaseScreenWakeLock() {
|
||||||
if (wakeLockSentinel) {
|
if (wakeLockSentinel) {
|
||||||
wakeLockSentinel.release().catch(function () {});
|
wakeLockSentinel.release().catch(function () {});
|
||||||
wakeLockSentinel = null;
|
wakeLockSentinel = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleAudioOnlyMode() {
|
function toggleAudioOnlyMode() {
|
||||||
var video = getVideoElement();
|
var video = getVideoElement();
|
||||||
if (!video) {
|
if (!video) {
|
||||||
announce('Aktif video bulunamadı.');
|
announce('Aktif video bulunamadı.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
isAudioOnlyMode = !isAudioOnlyMode;
|
isAudioOnlyMode = !isAudioOnlyMode;
|
||||||
document.body.classList.toggle('yaktube-audio-only-active', isAudioOnlyMode);
|
document.body.classList.toggle('yaktube-audio-only-active', isAudioOnlyMode);
|
||||||
|
|
||||||
var overlay = document.getElementById('yaktube-audio-blank-overlay');
|
var overlay = document.getElementById('yaktube-audio-blank-overlay');
|
||||||
var audioBtn = document.getElementById('yaktube-bar-audio-btn');
|
var audioBtn = document.getElementById('yaktube-bar-audio-btn');
|
||||||
|
|
||||||
if (isAudioOnlyMode) {
|
if (isAudioOnlyMode) {
|
||||||
if (!overlay) {
|
if (!overlay) {
|
||||||
overlay = document.createElement('div');
|
overlay = document.createElement('div');
|
||||||
overlay.id = 'yaktube-audio-blank-overlay';
|
overlay.id = 'yaktube-audio-blank-overlay';
|
||||||
overlay.className = 'yaktube-audio-blank-overlay';
|
overlay.className = 'yaktube-audio-blank-overlay';
|
||||||
overlay.setAttribute('role', 'region');
|
overlay.setAttribute('role', 'region');
|
||||||
overlay.setAttribute('aria-label', 'Yalnızca Ses ve Ekran Karartma Modu');
|
overlay.setAttribute('aria-label', 'Yalnızca Ses ve Ekran Karartma Modu');
|
||||||
overlay.innerHTML =
|
overlay.innerHTML =
|
||||||
'<div class="yaktube-audio-blank-content">' +
|
'<div class="yaktube-audio-blank-content">' +
|
||||||
'<div style="font-size:48px; margin-bottom:12px;">📻</div>' +
|
'<div style="font-size:48px; margin-bottom:12px;">📻</div>' +
|
||||||
'<h3 style="margin:0 0 8px 0; font-size:20px; font-weight:700; color:#ff8f37;">Yalnızca Ses Modu Aktif</h3>' +
|
'<h3 style="margin:0 0 8px 0; font-size:20px; font-weight:700; color:#ff8f37;">Yalnızca Ses Modu Aktif</h3>' +
|
||||||
'<p style="margin:0 0 16px 0; font-size:14px; color:#aaa; max-width:380px;">Ekran pil ve veri tasarrufu için karartıldı. Arka planda çalma desteklenir.</p>' +
|
'<p style="margin:0 0 16px 0; font-size:14px; color:#aaa; max-width:380px;">Ekran pil ve veri tasarrufu için karartıldı. Arka planda çalma desteklenir.</p>' +
|
||||||
'<div style="display:flex; gap:12px; justify-content:center; flex-wrap:wrap;">' +
|
'<div style="display:flex; gap:12px; justify-content:center; flex-wrap:wrap;">' +
|
||||||
'<button id="yaktube-exit-audio-btn" class="yaktube-audio-action-btn" aria-label="Görüntüyü Aç ve Ses Modundan Çık">🎬 Görüntüyü Aç (Alt+O)</button>' +
|
'<button id="yaktube-exit-audio-btn" class="yaktube-audio-action-btn" aria-label="Görüntüyü Aç ve Ses Modundan Çık">🎬 Görüntüyü Aç (Alt+O)</button>' +
|
||||||
'<button id="yaktube-toggle-play-audio-btn" class="yaktube-audio-action-btn" aria-label="Oynat veya Duraklat">⏯️ Oynat / Duraklat (Boşluk)</button>' +
|
'<button id="yaktube-toggle-play-audio-btn" class="yaktube-audio-action-btn" aria-label="Oynat veya Duraklat">⏯️ Oynat / Duraklat (Boşluk)</button>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
var exitBtn = overlay.querySelector('#yaktube-exit-audio-btn');
|
var exitBtn = overlay.querySelector('#yaktube-exit-audio-btn');
|
||||||
if (exitBtn) {
|
if (exitBtn) {
|
||||||
exitBtn.addEventListener('click', toggleAudioOnlyMode);
|
exitBtn.addEventListener('click', toggleAudioOnlyMode);
|
||||||
}
|
|
||||||
var togglePlayBtn = overlay.querySelector('#yaktube-toggle-play-audio-btn');
|
|
||||||
if (togglePlayBtn) {
|
|
||||||
togglePlayBtn.addEventListener('click', function () {
|
|
||||||
var v = getVideoElement();
|
|
||||||
if (v) {
|
|
||||||
if (v.paused) v.play(); else v.pause();
|
|
||||||
}
|
}
|
||||||
});
|
var togglePlayBtn = overlay.querySelector('#yaktube-toggle-play-audio-btn');
|
||||||
|
if (togglePlayBtn) {
|
||||||
|
togglePlayBtn.addEventListener('click', function () {
|
||||||
|
var v = getVideoElement();
|
||||||
|
if (v) {
|
||||||
|
if (v.paused) v.play();
|
||||||
|
else v.pause();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
document.body.appendChild(overlay);
|
||||||
|
}
|
||||||
|
overlay.style.display = 'flex';
|
||||||
|
requestScreenWakeLock();
|
||||||
|
if (audioBtn) {
|
||||||
|
audioBtn.classList.add('active');
|
||||||
|
audioBtn.setAttribute('aria-pressed', 'true');
|
||||||
|
}
|
||||||
|
announce(
|
||||||
|
'Yalnızca ses modu açıldı. Ekran karartıldı, pil ve veri tasarrufu aktif. Çıkmak için Alt+O tuşuna basın.'
|
||||||
|
);
|
||||||
|
showQuickToast('📻 Yalnızca Ses Modu Açık');
|
||||||
|
} else {
|
||||||
|
if (overlay) overlay.style.display = 'none';
|
||||||
|
releaseScreenWakeLock();
|
||||||
|
if (audioBtn) {
|
||||||
|
audioBtn.classList.remove('active');
|
||||||
|
audioBtn.setAttribute('aria-pressed', 'false');
|
||||||
|
}
|
||||||
|
announce('Yalnızca ses modu kapatıldı. Görüntü normale döndü.');
|
||||||
|
showQuickToast('🎬 Normal Görüntü Modu');
|
||||||
}
|
}
|
||||||
document.body.appendChild(overlay);
|
|
||||||
}
|
}
|
||||||
overlay.style.display = 'flex';
|
|
||||||
requestScreenWakeLock();
|
|
||||||
if (audioBtn) {
|
|
||||||
audioBtn.classList.add('active');
|
|
||||||
audioBtn.setAttribute('aria-pressed', 'true');
|
|
||||||
}
|
|
||||||
announce('Yalnızca ses modu açıldı. Ekran karartıldı, pil ve veri tasarrufu aktif. Çıkmak için Alt+O tuşuna basın.');
|
|
||||||
showQuickToast('📻 Yalnızca Ses Modu Açık');
|
|
||||||
} else {
|
|
||||||
if (overlay) overlay.style.display = 'none';
|
|
||||||
releaseScreenWakeLock();
|
|
||||||
if (audioBtn) {
|
|
||||||
audioBtn.classList.remove('active');
|
|
||||||
audioBtn.setAttribute('aria-pressed', 'false');
|
|
||||||
}
|
|
||||||
announce('Yalnızca ses modu kapatıldı. Görüntü normale döndü.');
|
|
||||||
showQuickToast('🎬 Normal Görüntü Modu');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// 3. Accessible Live Transcript Reader (NLnet WCAG 2.2 AAA Milestone)
|
// 3. Accessible Live Transcript Reader (NLnet WCAG 2.2 AAA Milestone)
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
var liveTranscriptCues = [];
|
var liveTranscriptCues = [];
|
||||||
var isTranscriptPanelOpen = false;
|
var isTranscriptPanelOpen = false;
|
||||||
|
|
||||||
function extractVideoCaptions() {
|
function extractVideoCaptions() {
|
||||||
var video = getVideoElement();
|
var video = getVideoElement();
|
||||||
if (!video || !video.textTracks || !video.textTracks.length) return [];
|
if (!video || !video.textTracks || !video.textTracks.length) return [];
|
||||||
|
|
||||||
var cuesList = [];
|
var cuesList = [];
|
||||||
for (var i = 0; i < video.textTracks.length; i++) {
|
for (var i = 0; i < video.textTracks.length; i++) {
|
||||||
var track = video.textTracks[i];
|
var track = video.textTracks[i];
|
||||||
if (track.cues && track.cues.length) {
|
if (track.cues && track.cues.length) {
|
||||||
for (var j = 0; j < track.cues.length; j++) {
|
for (var j = 0; j < track.cues.length; j++) {
|
||||||
var cue = track.cues[j];
|
var cue = track.cues[j];
|
||||||
cuesList.push({
|
cuesList.push({
|
||||||
startTime: cue.startTime,
|
startTime: cue.startTime,
|
||||||
endTime: cue.endTime,
|
endTime: cue.endTime,
|
||||||
text: (cue.text || '').replace(/<[^>]*>/g, '').trim()
|
text: (cue.text || '').replace(/<[^>]*>/g, '').trim()
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
return cuesList;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return cuesList;
|
|
||||||
}
|
|
||||||
|
|
||||||
function openTranscriptPanel() {
|
function openTranscriptPanel() {
|
||||||
var existing = document.getElementById('yaktube-transcript-panel');
|
var existing = document.getElementById('yaktube-transcript-panel');
|
||||||
if (existing) {
|
if (existing) {
|
||||||
existing.remove();
|
existing.remove();
|
||||||
isTranscriptPanelOpen = false;
|
isTranscriptPanelOpen = false;
|
||||||
restoreFocusAfterModal();
|
restoreFocusAfterModal();
|
||||||
announce('Transkript paneli kapatıldı.');
|
announce('Transkript paneli kapatıldı.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
recordFocusBeforeModal();
|
recordFocusBeforeModal();
|
||||||
isTranscriptPanelOpen = true;
|
isTranscriptPanelOpen = true;
|
||||||
|
|
||||||
var cues = extractVideoCaptions();
|
var cues = extractVideoCaptions();
|
||||||
var video = getVideoElement();
|
var video = getVideoElement();
|
||||||
var curTime = video ? video.currentTime : 0;
|
var curTime = video ? video.currentTime : 0;
|
||||||
|
|
||||||
var panel = document.createElement('div');
|
var panel = document.createElement('div');
|
||||||
panel.id = 'yaktube-transcript-panel';
|
panel.id = 'yaktube-transcript-panel';
|
||||||
panel.className = 'yaktube-transcript-panel';
|
panel.className = 'yaktube-transcript-panel';
|
||||||
panel.setAttribute('role', 'region');
|
panel.setAttribute('role', 'region');
|
||||||
panel.setAttribute('aria-label', 'Video Transkript ve Canlı Metin İnceleyici');
|
panel.setAttribute('aria-label', 'Video Transkript ve Canlı Metin İnceleyici');
|
||||||
|
|
||||||
var listHtml = '';
|
var listHtml = '';
|
||||||
if (cues && cues.length) {
|
if (cues && cues.length) {
|
||||||
liveTranscriptCues = cues;
|
liveTranscriptCues = cues;
|
||||||
cues.forEach(function (c, idx) {
|
cues.forEach(function (c, idx) {
|
||||||
var isActive = curTime >= c.startTime && curTime <= c.endTime;
|
var isActive = curTime >= c.startTime && curTime <= c.endTime;
|
||||||
listHtml +=
|
listHtml +=
|
||||||
'<li class="yaktube-transcript-item ' + (isActive ? 'active' : '') + '" data-start="' + c.startTime + '" tabindex="0" role="button" aria-label="' + formatTime(c.startTime) + ': ' + c.text + '">' +
|
'<li class="yaktube-transcript-item ' +
|
||||||
'<span class="yaktube-transcript-time">' + formatTime(c.startTime) + '</span>' +
|
(isActive ? 'active' : '') +
|
||||||
'<span class="yaktube-transcript-text">' + c.text + '</span>' +
|
'" data-start="' +
|
||||||
'</li>';
|
c.startTime +
|
||||||
});
|
'" tabindex="0" role="button" aria-label="' +
|
||||||
} else {
|
formatTime(c.startTime) +
|
||||||
listHtml =
|
': ' +
|
||||||
'<div class="yaktube-transcript-empty" style="padding:24px; text-align:center; color:#aaa;">' +
|
c.text +
|
||||||
'<p style="font-size:15px; margin-bottom:8px;">📄 Bu video için otomatik altyazı veya transkript henüz hazır değil.</p>' +
|
'">' +
|
||||||
'<p style="font-size:13px; color:#777;">Video oynatıcısındaki Altyazı (CC) butonunu açarak dili seçebilirsiniz.</p>' +
|
'<span class="yaktube-transcript-time">' +
|
||||||
'</div>';
|
formatTime(c.startTime) +
|
||||||
}
|
'</span>' +
|
||||||
|
'<span class="yaktube-transcript-text">' +
|
||||||
|
c.text +
|
||||||
|
'</span>' +
|
||||||
|
'</li>';
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
listHtml =
|
||||||
|
'<div class="yaktube-transcript-empty" style="padding:24px; text-align:center; color:#aaa;">' +
|
||||||
|
'<p style="font-size:15px; margin-bottom:8px;">📄 Bu video için otomatik altyazı veya transkript henüz hazır değil.</p>' +
|
||||||
|
'<p style="font-size:13px; color:#777;">Video oynatıcısındaki Altyazı (CC) butonunu açarak dili seçebilirsiniz.</p>' +
|
||||||
|
'</div>';
|
||||||
|
}
|
||||||
|
|
||||||
panel.innerHTML =
|
panel.innerHTML =
|
||||||
'<div class="yaktube-transcript-header">' +
|
'<div class="yaktube-transcript-header">' +
|
||||||
'<div style="display:flex; align-items:center; gap:8px;">' +
|
'<div style="display:flex; align-items:center; gap:8px;">' +
|
||||||
'<span style="font-size:18px;">📜</span>' +
|
'<span style="font-size:18px;">📜</span>' +
|
||||||
'<h3 style="margin:0; font-size:16px; font-weight:700; color:#ff8f37;">Video Transkripti</h3>' +
|
'<h3 style="margin:0; font-size:16px; font-weight:700; color:#ff8f37;">Video Transkripti</h3>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div style="display:flex; align-items:center; gap:8px;">' +
|
'<div style="display:flex; align-items:center; gap:8px;">' +
|
||||||
'<input type="text" id="yaktube-transcript-search" class="yaktube-transcript-search" placeholder="Transkriptte ara..." aria-label="Transkript içinde kelime ara" />' +
|
'<input type="text" id="yaktube-transcript-search" class="yaktube-transcript-search" placeholder="Transkriptte ara..." aria-label="Transkript içinde kelime ara" />' +
|
||||||
'<button id="yaktube-transcript-close" class="yaktube-voice-modal-close-btn" aria-label="Transkript panelini kapat">✕</button>' +
|
'<button id="yaktube-transcript-close" class="yaktube-voice-modal-close-btn" aria-label="Transkript panelini kapat">✕</button>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<ul id="yaktube-transcript-list" class="yaktube-transcript-list" role="list">' + listHtml + '</ul>';
|
'<ul id="yaktube-transcript-list" class="yaktube-transcript-list" role="list">' +
|
||||||
|
listHtml +
|
||||||
|
'</ul>';
|
||||||
|
|
||||||
var closeBtn = panel.querySelector('#yaktube-transcript-close');
|
var closeBtn = panel.querySelector('#yaktube-transcript-close');
|
||||||
if (closeBtn) {
|
if (closeBtn) {
|
||||||
closeBtn.addEventListener('click', function () {
|
closeBtn.addEventListener('click', function () {
|
||||||
panel.remove();
|
panel.remove();
|
||||||
isTranscriptPanelOpen = false;
|
isTranscriptPanelOpen = false;
|
||||||
restoreFocusAfterModal();
|
restoreFocusAfterModal();
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// Click on cue to jump video
|
|
||||||
panel.querySelectorAll('.yaktube-transcript-item').forEach(function (item) {
|
|
||||||
function jumpToCue() {
|
|
||||||
var start = parseFloat(item.getAttribute('data-start'));
|
|
||||||
var v = getVideoElement();
|
|
||||||
if (v && !isNaN(start)) {
|
|
||||||
v.currentTime = start;
|
|
||||||
if (v.paused) v.play();
|
|
||||||
announce(formatTime(start) + ' konumuna gidildi: ' + item.querySelector('.yaktube-transcript-text').textContent);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
item.addEventListener('click', jumpToCue);
|
|
||||||
item.addEventListener('keydown', function (e) {
|
|
||||||
if (e.key === 'Enter' || e.key === ' ') {
|
|
||||||
e.preventDefault();
|
|
||||||
jumpToCue();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// Live search in transcript
|
// Click on cue to jump video
|
||||||
var searchInp = panel.querySelector('#yaktube-transcript-search');
|
|
||||||
if (searchInp) {
|
|
||||||
searchInp.addEventListener('input', function (e) {
|
|
||||||
var query = (e.target.value || '').toLowerCase().trim();
|
|
||||||
panel.querySelectorAll('.yaktube-transcript-item').forEach(function (item) {
|
panel.querySelectorAll('.yaktube-transcript-item').forEach(function (item) {
|
||||||
var txt = (item.querySelector('.yaktube-transcript-text').textContent || '').toLowerCase();
|
function jumpToCue() {
|
||||||
item.style.display = txt.includes(query) ? 'flex' : 'none';
|
var start = parseFloat(item.getAttribute('data-start'));
|
||||||
|
var v = getVideoElement();
|
||||||
|
if (v && !isNaN(start)) {
|
||||||
|
v.currentTime = start;
|
||||||
|
if (v.paused) v.play();
|
||||||
|
announce(
|
||||||
|
formatTime(start) + ' konumuna gidildi: ' + item.querySelector('.yaktube-transcript-text').textContent
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
item.addEventListener('click', jumpToCue);
|
||||||
|
item.addEventListener('keydown', function (e) {
|
||||||
|
if (e.key === 'Enter' || e.key === ' ') {
|
||||||
|
e.preventDefault();
|
||||||
|
jumpToCue();
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
var targetWrap = document.querySelector(
|
// Live search in transcript
|
||||||
'#video-wrapper, #videojs-wrapper, .player-container, my-video-watch .player'
|
var searchInp = panel.querySelector('#yaktube-transcript-search');
|
||||||
);
|
if (searchInp) {
|
||||||
if (targetWrap && targetWrap.parentNode) {
|
searchInp.addEventListener('input', function (e) {
|
||||||
targetWrap.parentNode.insertBefore(panel, targetWrap.nextSibling);
|
var query = (e.target.value || '').toLowerCase().trim();
|
||||||
} else {
|
panel.querySelectorAll('.yaktube-transcript-item').forEach(function (item) {
|
||||||
document.body.appendChild(panel);
|
var txt = (item.querySelector('.yaktube-transcript-text').textContent || '').toLowerCase();
|
||||||
}
|
item.style.display = txt.includes(query) ? 'flex' : 'none';
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
trapFocusInModal(panel);
|
var targetWrap = document.querySelector(
|
||||||
announce('Transkript paneli açıldı. ' + (cues.length ? cues.length + ' satır metin bulundu.' : 'Altyazı bulunamadı.'));
|
'#video-wrapper, #videojs-wrapper, .player-container, my-video-watch .player'
|
||||||
}
|
);
|
||||||
|
if (targetWrap && targetWrap.parentNode) {
|
||||||
|
targetWrap.parentNode.insertBefore(panel, targetWrap.nextSibling);
|
||||||
|
} else {
|
||||||
|
document.body.appendChild(panel);
|
||||||
|
}
|
||||||
|
|
||||||
// Sync transcript highlight with current video time
|
trapFocusInModal(panel);
|
||||||
setInterval(function () {
|
announce(
|
||||||
if (!isTranscriptPanelOpen) return;
|
'Transkript paneli açıldı. ' + (cues.length ? cues.length + ' satır metin bulundu.' : 'Altyazı bulunamadı.')
|
||||||
var video = getVideoElement();
|
);
|
||||||
if (!video) return;
|
|
||||||
var curTime = video.currentTime;
|
|
||||||
var panel = document.getElementById('yaktube-transcript-panel');
|
|
||||||
if (!panel) return;
|
|
||||||
|
|
||||||
var items = panel.querySelectorAll('.yaktube-transcript-item');
|
|
||||||
items.forEach(function (item) {
|
|
||||||
var start = parseFloat(item.getAttribute('data-start'));
|
|
||||||
var isActive = Math.abs(curTime - start) < 3;
|
|
||||||
if (isActive && !item.classList.contains('active')) {
|
|
||||||
items.forEach(function (i) { i.classList.remove('active'); });
|
|
||||||
item.classList.add('active');
|
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}, 1500);
|
|
||||||
|
|
||||||
// ============================================================================
|
// Sync transcript highlight with current video time
|
||||||
// 4. Fediverse Clean Share & Timestamp Generator (Privacy First)
|
setInterval(function () {
|
||||||
// ============================================================================
|
if (!isTranscriptPanelOpen) return;
|
||||||
function openCleanShareModal() {
|
var video = getVideoElement();
|
||||||
var existing = document.getElementById('yaktube-clean-share-modal');
|
if (!video) return;
|
||||||
if (existing) existing.remove();
|
var curTime = video.currentTime;
|
||||||
|
var panel = document.getElementById('yaktube-transcript-panel');
|
||||||
|
if (!panel) return;
|
||||||
|
|
||||||
recordFocusBeforeModal();
|
var items = panel.querySelectorAll('.yaktube-transcript-item');
|
||||||
|
items.forEach(function (item) {
|
||||||
|
var start = parseFloat(item.getAttribute('data-start'));
|
||||||
|
var isActive = Math.abs(curTime - start) < 3;
|
||||||
|
if (isActive && !item.classList.contains('active')) {
|
||||||
|
items.forEach(function (i) {
|
||||||
|
i.classList.remove('active');
|
||||||
|
});
|
||||||
|
item.classList.add('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 1500);
|
||||||
|
|
||||||
var video = getVideoElement();
|
// ============================================================================
|
||||||
var curSec = video ? Math.floor(video.currentTime) : 0;
|
// 4. Fediverse Clean Share & Timestamp Generator (Privacy First)
|
||||||
var cleanUrl = window.location.origin + window.location.pathname;
|
// ============================================================================
|
||||||
var timestampUrl = cleanUrl + '?start=' + curSec + 's';
|
function openCleanShareModal() {
|
||||||
|
var existing = document.getElementById('yaktube-clean-share-modal');
|
||||||
|
if (existing) existing.remove();
|
||||||
|
|
||||||
var titleEl = document.querySelector('h1.video-title, my-video-watch h1, .video-name, .title');
|
recordFocusBeforeModal();
|
||||||
var videoTitle = titleEl ? titleEl.textContent.trim() : document.title;
|
|
||||||
|
|
||||||
var modal = document.createElement('div');
|
var video = getVideoElement();
|
||||||
modal.id = 'yaktube-clean-share-modal';
|
var curSec = video ? Math.floor(video.currentTime) : 0;
|
||||||
modal.className = 'yaktube-feature-modal-backdrop';
|
var cleanUrl = window.location.origin + window.location.pathname;
|
||||||
modal.setAttribute('role', 'dialog');
|
var timestampUrl = cleanUrl + '?start=' + curSec + 's';
|
||||||
modal.setAttribute('aria-modal', 'true');
|
|
||||||
modal.setAttribute('aria-labelledby', 'yaktube-share-title');
|
|
||||||
|
|
||||||
modal.innerHTML =
|
var titleEl = document.querySelector('h1.video-title, my-video-watch h1, .video-name, .title');
|
||||||
'<div class="yaktube-modal-card" style="max-width:480px; background:#181824; border:1px solid rgba(255,143,55,0.4); border-radius:18px; padding:24px; color:#fff; box-shadow:0 16px 40px rgba(0,0,0,0.8);">' +
|
var videoTitle = titleEl ? titleEl.textContent.trim() : document.title;
|
||||||
'<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;">' +
|
|
||||||
|
var modal = document.createElement('div');
|
||||||
|
modal.id = 'yaktube-clean-share-modal';
|
||||||
|
modal.className = 'yaktube-feature-modal-backdrop';
|
||||||
|
modal.setAttribute('role', 'dialog');
|
||||||
|
modal.setAttribute('aria-modal', 'true');
|
||||||
|
modal.setAttribute('aria-labelledby', 'yaktube-share-title');
|
||||||
|
|
||||||
|
modal.innerHTML =
|
||||||
|
'<div class="yaktube-modal-card" style="max-width:480px; background:#181824; border:1px solid rgba(255,143,55,0.4); border-radius:18px; padding:24px; color:#fff; box-shadow:0 16px 40px rgba(0,0,0,0.8);">' +
|
||||||
|
'<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;">' +
|
||||||
'<h3 id="yaktube-share-title" style="margin:0; font-size:18px; color:#ff8f37;">🔗 Temiz ve Federe Paylaşım</h3>' +
|
'<h3 id="yaktube-share-title" style="margin:0; font-size:18px; color:#ff8f37;">🔗 Temiz ve Federe Paylaşım</h3>' +
|
||||||
'<button id="yaktube-share-close" class="yaktube-voice-modal-close-btn" aria-label="Kapat">✕</button>' +
|
'<button id="yaktube-share-close" class="yaktube-voice-modal-close-btn" aria-label="Kapat">✕</button>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<p style="font-size:13px; color:#aaa; margin-bottom:16px;">Tüm reklam ve izleyici parametrelerinden arındırılmış temiz YakTube bağlantısı:</p>' +
|
'<p style="font-size:13px; color:#aaa; margin-bottom:16px;">Tüm reklam ve izleyici parametrelerinden arındırılmış temiz YakTube bağlantısı:</p>' +
|
||||||
'<div style="display:flex; flex-direction:column; gap:12px;">' +
|
'<div style="display:flex; flex-direction:column; gap:12px;">' +
|
||||||
'<div style="display:flex; align-items:center; gap:8px;">' +
|
'<div style="display:flex; align-items:center; gap:8px;">' +
|
||||||
'<input type="checkbox" id="yaktube-share-timestamp-chk" style="width:18px; height:18px; accent-color:#ff8f37; cursor:pointer;" />' +
|
'<input type="checkbox" id="yaktube-share-timestamp-chk" style="width:18px; height:18px; accent-color:#ff8f37; cursor:pointer;" />' +
|
||||||
'<label for="yaktube-share-timestamp-chk" style="font-size:14px; cursor:pointer;">Şu anki zamandan başlat (<b>' + formatTime(curSec) + '</b>)</label>' +
|
'<label for="yaktube-share-timestamp-chk" style="font-size:14px; cursor:pointer;">Şu anki zamandan başlat (<b>' +
|
||||||
|
formatTime(curSec) +
|
||||||
|
'</b>)</label>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div style="display:flex; gap:8px;">' +
|
'<div style="display:flex; gap:8px;">' +
|
||||||
'<input type="text" id="yaktube-share-url-inp" value="' + cleanUrl + '" readonly style="flex:1; background:#22222e; border:1px solid #444; border-radius:8px; padding:10px 12px; color:#fff; font-size:13px;" aria-label="Paylaşım Bağlantısı" />' +
|
'<input type="text" id="yaktube-share-url-inp" value="' +
|
||||||
'<button id="yaktube-copy-share-btn" class="yaktube-play-btn" style="padding:10px 16px; white-space:nowrap;" aria-label="Bağlantıyı Panoya Kopyala">📋 Kopyala</button>' +
|
cleanUrl +
|
||||||
|
'" readonly style="flex:1; background:#22222e; border:1px solid #444; border-radius:8px; padding:10px 12px; color:#fff; font-size:13px;" aria-label="Paylaşım Bağlantısı" />' +
|
||||||
|
'<button id="yaktube-copy-share-btn" class="yaktube-play-btn" style="padding:10px 16px; white-space:nowrap;" aria-label="Bağlantıyı Panoya Kopyala">📋 Kopyala</button>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div style="margin-top:8px; display:flex; gap:8px; flex-wrap:wrap;">' +
|
'<div style="margin-top:8px; display:flex; gap:8px; flex-wrap:wrap;">' +
|
||||||
'<a id="yaktube-mastodon-share" target="_blank" rel="noopener noreferrer" class="yaktube-player-action-btn" style="text-decoration:none; display:inline-flex; align-items:center; gap:6px;">🐘 Mastodon / Fediverse</a>' +
|
'<a id="yaktube-mastodon-share" target="_blank" rel="noopener noreferrer" class="yaktube-player-action-btn" style="text-decoration:none; display:inline-flex; align-items:center; gap:6px;">🐘 Mastodon / Fediverse</a>' +
|
||||||
'<a id="yaktube-whatsapp-share" target="_blank" rel="noopener noreferrer" class="yaktube-player-action-btn" style="text-decoration:none; display:inline-flex; align-items:center; gap:6px;">💬 WhatsApp</a>' +
|
'<a id="yaktube-whatsapp-share" target="_blank" rel="noopener noreferrer" class="yaktube-player-action-btn" style="text-decoration:none; display:inline-flex; align-items:center; gap:6px;">💬 WhatsApp</a>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
var closeBtn = modal.querySelector('#yaktube-share-close');
|
var closeBtn = modal.querySelector('#yaktube-share-close');
|
||||||
if (closeBtn) {
|
if (closeBtn) {
|
||||||
closeBtn.addEventListener('click', function () {
|
closeBtn.addEventListener('click', function () {
|
||||||
modal.remove();
|
modal.remove();
|
||||||
restoreFocusAfterModal();
|
restoreFocusAfterModal();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var chk = modal.querySelector('#yaktube-share-timestamp-chk');
|
var chk = modal.querySelector('#yaktube-share-timestamp-chk');
|
||||||
var inp = modal.querySelector('#yaktube-share-url-inp');
|
var inp = modal.querySelector('#yaktube-share-url-inp');
|
||||||
var mastodonLink = modal.querySelector('#yaktube-mastodon-share');
|
var mastodonLink = modal.querySelector('#yaktube-mastodon-share');
|
||||||
var waLink = modal.querySelector('#yaktube-whatsapp-share');
|
var waLink = modal.querySelector('#yaktube-whatsapp-share');
|
||||||
|
|
||||||
function updateShareLinks() {
|
function updateShareLinks() {
|
||||||
var finalUrl = chk.checked ? timestampUrl : cleanUrl;
|
var finalUrl = chk.checked ? timestampUrl : cleanUrl;
|
||||||
inp.value = finalUrl;
|
inp.value = finalUrl;
|
||||||
var shareText = encodeURIComponent(videoTitle + ' - YakTube: ' + finalUrl);
|
var shareText = encodeURIComponent(videoTitle + ' - YakTube: ' + finalUrl);
|
||||||
if (mastodonLink) mastodonLink.href = 'https://mastodonshare.com/?text=' + shareText;
|
if (mastodonLink) mastodonLink.href = 'https://mastodonshare.com/?text=' + shareText;
|
||||||
if (waLink) waLink.href = 'https://api.whatsapp.com/send?text=' + shareText;
|
if (waLink) waLink.href = 'https://api.whatsapp.com/send?text=' + shareText;
|
||||||
}
|
}
|
||||||
chk.addEventListener('change', updateShareLinks);
|
chk.addEventListener('change', updateShareLinks);
|
||||||
updateShareLinks();
|
updateShareLinks();
|
||||||
|
|
||||||
modal.querySelector('#yaktube-copy-share-btn').addEventListener('click', function () {
|
modal.querySelector('#yaktube-copy-share-btn').addEventListener('click', function () {
|
||||||
inp.select();
|
inp.select();
|
||||||
navigator.clipboard.writeText(inp.value).then(function () {
|
navigator.clipboard
|
||||||
announce('Temiz paylaşım bağlantısı panoya kopyalandı.');
|
.writeText(inp.value)
|
||||||
showQuickToast('📋 Bağlantı Kopyalandı!');
|
.then(function () {
|
||||||
}).catch(function () {
|
announce('Temiz paylaşım bağlantısı panoya kopyalandı.');
|
||||||
document.execCommand('copy');
|
showQuickToast('📋 Bağlantı Kopyalandı!');
|
||||||
announce('Temiz paylaşım bağlantısı kopyalandı.');
|
})
|
||||||
});
|
.catch(function () {
|
||||||
});
|
document.execCommand('copy');
|
||||||
|
announce('Temiz paylaşım bağlantısı kopyalandı.');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
document.body.appendChild(modal);
|
document.body.appendChild(modal);
|
||||||
trapFocusInModal(modal);
|
trapFocusInModal(modal);
|
||||||
announce('Paylaşım penceresi açıldı. Kapatmak için Escape tuşuna basın.');
|
announce('Paylaşım penceresi açıldı. Kapatmak için Escape tuşuna basın.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// 5. F6 Landmark Cycle Navigation (WCAG 2.2 AAA Quick Switch)
|
// 5. F6 Landmark Cycle Navigation (WCAG 2.2 AAA Quick Switch)
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
var landmarkIndex = 0;
|
var landmarkIndex = 0;
|
||||||
function cycleLandmarks(reverse) {
|
function cycleLandmarks(reverse) {
|
||||||
var landmarks = [
|
var landmarks = [
|
||||||
{ name: 'Başlık ve Ana Arama', selector: 'header, my-header, #yaktube-search-input' },
|
{ name: 'Başlık ve Ana Arama', selector: 'header, my-header, #yaktube-search-input' },
|
||||||
{ name: 'Kategori Çipleri', selector: '#yaktube-home-categories, .yaktube-categories-bar' },
|
{ name: 'Kategori Çipleri', selector: '#yaktube-home-categories, .yaktube-categories-bar' },
|
||||||
{ name: 'Video Oynatıcı Alanı', selector: '#videojs-wrapper, .video-js, #video-wrapper' },
|
{ name: 'Video Oynatıcı Alanı', selector: '#videojs-wrapper, .video-js, #video-wrapper' },
|
||||||
{ name: 'Video Araç Çubuğu', selector: '#yaktube-player-action-bar' },
|
{ name: 'Video Araç Çubuğu', selector: '#yaktube-player-action-bar' },
|
||||||
{ name: 'Video Açıklaması ve Bilgiler', selector: 'my-video-watch-description, .video-info, .video-bottom' },
|
{ name: 'Video Açıklaması ve Bilgiler', selector: 'my-video-watch-description, .video-info, .video-bottom' },
|
||||||
{ name: 'Yorumlar ve Tartışmalar', selector: 'my-video-comments, .comments' },
|
{ name: 'Yorumlar ve Tartışmalar', selector: 'my-video-comments, .comments' },
|
||||||
{ name: 'Önerilen Videolar', selector: 'my-video-watch-related, .related-videos, #yaktube-ondemand-container' }
|
{ name: 'Önerilen Videolar', selector: 'my-video-watch-related, .related-videos, #yaktube-ondemand-container' }
|
||||||
];
|
];
|
||||||
|
|
||||||
var validLandmarks = landmarks.map(function (item) {
|
var validLandmarks = landmarks
|
||||||
return { name: item.name, el: document.querySelector(item.selector) };
|
.map(function (item) {
|
||||||
}).filter(function (item) {
|
return { name: item.name, el: document.querySelector(item.selector) };
|
||||||
return !!item.el && item.el.offsetParent !== null;
|
})
|
||||||
});
|
.filter(function (item) {
|
||||||
|
return !!item.el && item.el.offsetParent !== null;
|
||||||
|
});
|
||||||
|
|
||||||
if (!validLandmarks.length) {
|
if (!validLandmarks.length) {
|
||||||
announce('Sayfada gezinilebilir alan bulunamadı.');
|
announce('Sayfada gezinilebilir alan bulunamadı.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reverse) {
|
if (reverse) {
|
||||||
landmarkIndex = (landmarkIndex - 1 + validLandmarks.length) % validLandmarks.length;
|
landmarkIndex = (landmarkIndex - 1 + validLandmarks.length) % validLandmarks.length;
|
||||||
} else {
|
} else {
|
||||||
landmarkIndex = (landmarkIndex + 1) % validLandmarks.length;
|
landmarkIndex = (landmarkIndex + 1) % validLandmarks.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
var target = validLandmarks[landmarkIndex];
|
|
||||||
if (target && target.el) {
|
|
||||||
target.el.setAttribute('tabindex', '-1');
|
|
||||||
target.el.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
||||||
target.el.focus();
|
|
||||||
announce('Bölgeye atlandı: ' + target.name);
|
|
||||||
showQuickToast('🎯 ' + target.name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
var target = validLandmarks[landmarkIndex];
|
||||||
|
if (target && target.el) {
|
||||||
|
target.el.setAttribute('tabindex', '-1');
|
||||||
|
target.el.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||||
|
target.el.focus();
|
||||||
|
announce('Bölgeye atlandı: ' + target.name);
|
||||||
|
showQuickToast('🎯 ' + target.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function toggleShortcutsModal() {
|
function toggleShortcutsModal() {
|
||||||
var modal = document.getElementById('yaktube-shortcuts-dialog');
|
var modal = document.getElementById('yaktube-shortcuts-dialog');
|
||||||
@@ -1514,6 +1545,7 @@ function cycleLandmarks(reverse) {
|
|||||||
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();
|
||||||
|
trapFocusInModal(modal);
|
||||||
} else {
|
} else {
|
||||||
modal.style.display = 'none';
|
modal.style.display = 'none';
|
||||||
announce('Yardım penceresi kapatıldı.');
|
announce('Yardım penceresi kapatıldı.');
|
||||||
@@ -1544,7 +1576,9 @@ function cycleLandmarks(reverse) {
|
|||||||
'<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 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 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 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 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 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 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 style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + C</span></td><td>📜 Canlı Video Transkript Panelini 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 + O</span></td><td>📻 Yalnızca Ses & Ekran Karartma Modu</td></tr>' +
|
||||||
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">F6</span> / <span class="yaktube-kbd">Shift + F6</span></td><td>🎯 Mantıksal Bölge Gezinmesi (Landmarks)</td></tr>' +
|
||||||
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + U</span></td><td>⏱️ Uyku Zamanlayıcısı (Sleep Timer)</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + U</span></td><td>⏱️ Uyku Zamanlayıcısı (Sleep Timer)</td></tr>' +
|
||||||
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + Q</span></td><td>📱 Telefonda Devam Et (QR Kod)</td></tr>' +
|
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Alt + Q</span></td><td>📱 Telefonda Devam Et (QR Kod)</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 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>' +
|
||||||
@@ -2878,7 +2912,7 @@ function cycleLandmarks(reverse) {
|
|||||||
shareBtn.addEventListener('click', function () {
|
shareBtn.addEventListener('click', function () {
|
||||||
openCleanShareModal();
|
openCleanShareModal();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
bar.querySelector('#yaktube-bar-help-btn').addEventListener('click', function () {
|
bar.querySelector('#yaktube-bar-help-btn').addEventListener('click', function () {
|
||||||
toggleShortcutsModal();
|
toggleShortcutsModal();
|
||||||
|
|||||||
@@ -196,10 +196,12 @@ async function register({ registerHook, getRouter, registerSetting, settingsMana
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (logger) logger.info('[YakTube OnDemand] Registered filter:notifier.notification.enabled.result (suppressing successful import notifications).');
|
if (logger)
|
||||||
|
logger.info(
|
||||||
|
'[YakTube OnDemand] Registered filter:notifier.notification.enabled.result (suppressing successful import notifications).'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let guestImportLimit = 5;
|
let guestImportLimit = 5;
|
||||||
let maxDiskUsagePercent = 85;
|
let maxDiskUsagePercent = 85;
|
||||||
let customChannelId = '';
|
let customChannelId = '';
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.7.4",
|
"version": "1.7.5",
|
||||||
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations, Sleep Timer, Touch Gestures, Voice Assistant & A11y Engine for PeerTube",
|
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations, Sleep Timer, Touch Gestures, Voice Assistant & A11y Engine for PeerTube",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"library": "./main.js",
|
"library": "./main.js",
|
||||||
|
|||||||
@@ -1764,7 +1764,6 @@ my-date-toggle .date-toggle:focus-visible {
|
|||||||
outline: 2px solid #ff8f37 !important;
|
outline: 2px solid #ff8f37 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* === YakTube WCAG 2.1 AAA Video Player Accessibility: Keep Controls Accessible === */
|
/* === YakTube WCAG 2.1 AAA Video Player Accessibility: Keep Controls Accessible === */
|
||||||
|
|
||||||
/* 1. Video duraklatıldığında veya klavye/ekran okuyucu odaklandığında denetim çubuğunu görünür tut */
|
/* 1. Video duraklatıldığında veya klavye/ekran okuyucu odaklandığında denetim çubuğunu görünür tut */
|
||||||
@@ -1790,7 +1789,6 @@ my-date-toggle .date-toggle:focus-visible {
|
|||||||
box-shadow: 0 0 10px rgba(255, 143, 55, 0.8) !important;
|
box-shadow: 0 0 10px rgba(255, 143, 55, 0.8) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* === YakTube NLnet WCAG 2.2 AAA & Privacy Suite Styles === */
|
/* === YakTube NLnet WCAG 2.2 AAA & Privacy Suite Styles === */
|
||||||
|
|
||||||
/* 1. Yalnızca Ses ve Ekran Karartma Modu */
|
/* 1. Yalnızca Ses ve Ekran Karartma Modu */
|
||||||
@@ -1832,7 +1830,9 @@ my-date-toggle .date-toggle:focus-visible {
|
|||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
font-weight: 700 !important;
|
font-weight: 700 !important;
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
transition: transform 0.15s, opacity 0.15s !important;
|
transition:
|
||||||
|
transform 0.15s,
|
||||||
|
opacity 0.15s !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yaktube-audio-action-btn:hover,
|
.yaktube-audio-action-btn:hover,
|
||||||
|
|||||||
Reference in New Issue
Block a user