feat(a11y): add Alt modifier shortcuts, Turkish Q key mapping and accessible player action bar v1.4.1

This commit is contained in:
Enes Yakıştır
2026-08-30 11:38:46 +03:00
parent c667bf2f28
commit 7f77281e8a
4 changed files with 290 additions and 109 deletions
+178 -67
View File
@@ -339,6 +339,7 @@
// 3. Intelligent Branding & A11y DOM Auto-Fixer // 3. Intelligent Branding & A11y DOM Auto-Fixer
function autoFixDOM() { function autoFixDOM() {
injectAccessiblePlayerBar();
injectYakNetSSO(); injectYakNetSSO();
// Aggressively remove generic Framasoft Open-in-App / Play Store banners // Aggressively remove generic Framasoft Open-in-App / Play Store banners
@@ -576,7 +577,7 @@
setInterval(autoFixDOM, 1000); setInterval(autoFixDOM, 1000);
// 3. Keyboard Shortcuts Modal & Quick Info Engine (v1.4.0) // 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) {
@@ -597,27 +598,27 @@
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: 560px; background:#1e1e24; border-radius:18px; padding:24px; color:#fff; box-shadow:0 16px 40px rgba(0,0,0,0.8);">' + '<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);">' +
'<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;">' + '<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:16px;">' +
'<h3 id="yaktube-shortcuts-title" style="margin:0; font-size:18px; color:#ff8f37;">⌨️ Video Oynatıcı & Gezinme Kısayolları</h3>' + '<h3 id="yaktube-shortcuts-title" style="margin:0; font-size:18px; color:#ff8f37;">⌨️ Klavye Kısayolları (Ekran Okuyucu Uyumlu)</h3>' +
'<button id="yaktube-shortcuts-close" class="yaktube-voice-modal-close-btn" aria-label="Kapat">✕</button>' + '<button id="yaktube-shortcuts-close" class="yaktube-voice-modal-close-btn" aria-label="Kapat">✕</button>' +
'</div>' + '</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;">' + '<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</th><th style="padding:6px 0;">İşlev</th></tr></thead>' + '<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 style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><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 style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">J</span> / <span class="yaktube-kbd">L</span></td><td>10 saniye geri / 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 + J</span> veya <span class="yaktube-kbd">J</span></td><td>10 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">Sol</span> / <span class="yaktube-kbd">Sağ Ok</span></td><td>5 saniye geri / 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 style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">Yukarı</span> / <span class="yaktube-kbd">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 style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><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">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 style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><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">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> 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">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 + .</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">&gt;</span> / <span class="yaktube-kbd">&lt;</span> (Shift+.)</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 + S</span> veya <span class="yaktube-kbd">/</span> (Shift+7)</td><td>Arama penceresini aç</td></tr>' +
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><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 + V</span> veya <span class="yaktube-kbd">Shift + V</span></td><td>Sesli aramayı başlat</td></tr>' +
'<tr style="border-bottom:1px solid rgba(255,255,255,0.05);"><td style="padding:8px 0;"><span class="yaktube-kbd">/</span></td><td>Arama penceresini aç</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>' +
'<tr><td style="padding:8px 0;"><span class="yaktube-kbd">Shift + V</span></td><td>Sesli aramayı başlat</td></tr>' +
'</tbody>' + '</tbody>' +
'</table>' + '</table>' +
'</div>'; '</div>';
@@ -668,8 +669,8 @@
var curTime = formatTime(video.currentTime); var curTime = formatTime(video.currentTime);
var totalTime = formatTime(video.duration || 0); var totalTime = formatTime(video.duration || 0);
var remaining = formatTime((video.duration || 0) - video.currentTime); var remaining = formatTime((video.duration || 0) - video.currentTime);
var speed = video.playbackRate + 'x'; var speed = (video.playbackRate || 1) + 'x';
var volume = Math.round(video.volume * 100) + '%'; var volume = Math.round((video.volume || 1) * 100) + '%';
var quality = video.videoHeight ? video.videoHeight + 'p' : 'Otomatik'; var quality = video.videoHeight ? video.videoHeight + 'p' : 'Otomatik';
// Visual Toast // Visual Toast
@@ -726,7 +727,111 @@
var speedSteps = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2]; var speedSteps = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];
// 4. Global Keydown Listener (Pro Video Player Engine) 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');
@@ -747,7 +852,8 @@
return; return;
} }
if (e.key === '?' || (e.shiftKey && e.key === '/')) { // 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();
@@ -755,6 +861,28 @@
} }
} }
// 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();
openFullSearchModal('', false);
return;
}
// Voice Search Open: Alt+V or Shift+V
if (
((e.altKey && (e.key === 'v' || e.key === 'V')) || (e.shiftKey && (e.key === 'v' || e.key === 'V'))) &&
!isInputFocused()
) {
e.preventDefault();
openFullSearchModal('', true);
return;
}
if (isInputFocused()) { if (isInputFocused()) {
return; return;
} }
@@ -763,9 +891,10 @@
if (!video) return; if (!video) return;
var key = e.key.toLowerCase(); var key = e.key.toLowerCase();
var alt = e.altKey;
// Play / Pause (Space / K) // Play / Pause (Alt+K, Space or K)
if (key === ' ' || key === 'k') { if (key === ' ' || key === 'k' || (alt && key === 'k')) {
e.preventDefault(); e.preventDefault();
if (video.paused) { if (video.paused) {
video.play(); video.play();
@@ -775,44 +904,44 @@
announce('Video duraklatıldı.'); announce('Video duraklatıldı.');
} }
} }
// Seek 10s Back / Forward (J / L) // Seek 10s Back / Forward (Alt+J / Alt+L or J / L)
else if (key === 'j') { else if (key === 'j' || (alt && key === 'j')) {
e.preventDefault(); e.preventDefault();
video.currentTime = Math.max(0, video.currentTime - 10); video.currentTime = Math.max(0, video.currentTime - 10);
announce('10 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime)); announce('10 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime));
} else if (key === 'l') { } else if (key === 'l' || (alt && key === 'l')) {
e.preventDefault(); e.preventDefault();
video.currentTime = Math.min(video.duration || 99999, video.currentTime + 10); video.currentTime = Math.min(video.duration || 99999, video.currentTime + 10);
announce('10 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime)); announce('10 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
} }
// Seek 5s Back / Forward (Left / Right Arrow) // Seek 5s Back / Forward (ArrowLeft / ArrowRight or Alt+Left/Right)
else if (e.key === 'ArrowLeft') { 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ı. Konum: ' + formatTime(video.currentTime)); announce('5 saniye geri sarıldı. Konum: ' + formatTime(video.currentTime));
} else if (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ı. Konum: ' + formatTime(video.currentTime)); announce('5 saniye ileri sarıldı. Konum: ' + formatTime(video.currentTime));
} }
// Volume Up / Down (Up / Down Arrow) // Volume Up / Down (ArrowUp / ArrowDown or Alt+Up/Down)
else if (e.key === 'ArrowUp') { 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));
} }
// Mute (M) // Mute (Alt+M or M)
else if (key === '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ı.');
} }
// Fullscreen (F) // Fullscreen (Alt+F or F)
else if (key === '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;
@@ -823,20 +952,20 @@
announce('Tam ekrandan çıkıldı.'); announce('Tam ekrandan çıkıldı.');
} }
} }
// Theater Mode (T) // Theater Mode (Alt+T or T)
else if (key === 't') { else if (key === 't' || (alt && key === 't')) {
e.preventDefault(); e.preventDefault();
document.body.classList.toggle('yaktube-theater-mode'); document.body.classList.toggle('yaktube-theater-mode');
var isTheater = document.body.classList.contains('yaktube-theater-mode'); var isTheater = document.body.classList.contains('yaktube-theater-mode');
announce(isTheater ? 'Sinema modu açıldı.' : 'Sinema modundan çıkıldı.'); announce(isTheater ? 'Sinema modu açıldı.' : 'Sinema modundan çıkıldı.');
} }
// Quick Video Info (I) // Quick Video Info (Alt+I or I)
else if (key === 'i') { else if (key === 'i' || (alt && key === 'i')) {
e.preventDefault(); e.preventDefault();
showQuickVideoInfo(); showQuickVideoInfo();
} }
// Subtitles (C) // Subtitles (Alt+C or C)
else if (key === '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) {
@@ -847,31 +976,13 @@
announce('Bu videoda altyazı bulunmuyor.'); announce('Bu videoda altyazı bulunmuyor.');
} }
} }
// Speed Controls (< and > / Shift+, and Shift+.) // Speed Controls (Alt+. / Alt+, or > / <)
else if (e.key === '>' || (e.shiftKey && e.key === '.')) { else if ((alt && (e.key === '.' || e.key === '>')) || e.key === '>') {
e.preventDefault(); e.preventDefault();
var curSpeed = video.playbackRate || 1; adjustPlaybackSpeed(true);
var nextIdx = speedSteps.findIndex(function (s) { } else if ((alt && (e.key === ',' || e.key === '<')) || e.key === '<') {
return s > curSpeed;
});
if (nextIdx !== -1) {
video.playbackRate = speedSteps[nextIdx];
} else {
video.playbackRate = 2;
}
announce('Oynatma hızı ' + video.playbackRate + ' katına çıkarıldı.');
} else if (e.key === '<' || (e.shiftKey && e.key === ',')) {
e.preventDefault(); e.preventDefault();
var curSpeed = video.playbackRate || 1; adjustPlaybackSpeed(false);
var prevSteps = speedSteps.filter(function (s) {
return s < curSpeed;
});
if (prevSteps.length > 0) {
video.playbackRate = prevSteps[prevSteps.length - 1];
} else {
video.playbackRate = 0.25;
}
announce('Oynatma hızı ' + video.playbackRate + ' katına düşürüldü.');
} }
// Percentage Jumps (0 - 9) // Percentage Jumps (0 - 9)
else if (key >= '0' && key <= '9' && !e.ctrlKey && !e.altKey && !e.metaKey) { else if (key >= '0' && key <= '9' && !e.ctrlKey && !e.altKey && !e.metaKey) {
+52 -33
View File
@@ -1,4 +1,5 @@
# NLnet Foundation / NGI Zero Grant Application Dossier # NLnet Foundation / NGI Zero Grant Application Dossier
## Project: YakTube (Accessible & Lightweight ActivityPub Media Engine) ## Project: YakTube (Accessible & Lightweight ActivityPub Media Engine)
> **Belge Amacı:** Bu dosya, 3 Eylül 2026 tarihinde açılacak olan **NLnet NGI Zero Commons Trust / Digital Accessibility** hibe çağrısı için hazırlanmış resmi İngilizce başvuru taslağıdır. Formdaki sorulara göre kopyala-yapıştır yapmaya hazır şekilde yapılandırılmıştır. > **Belge Amacı:** Bu dosya, 3 Eylül 2026 tarihinde açılacak olan **NLnet NGI Zero Commons Trust / Digital Accessibility** hibe çağrısı için hazırlanmış resmi İngilizce başvuru taslağıdır. Formdaki sorulara göre kopyala-yapıştır yapmaya hazır şekilde yapılandırılmıştır.
@@ -7,42 +8,45 @@
### 1. General & Contact Information / Genel ve İletişim Bilgileri ### 1. General & Contact Information / Genel ve İletişim Bilgileri
* **Project Name (Proje Adı):** - **Project Name (Proje Adı):**
`YakTube: Accessible, Lightweight & Decentralized ActivityPub Media Engine` `YakTube: Accessible, Lightweight & Decentralized ActivityPub Media Engine`
* **Applicant / Contact Person (Başvuran Kişi):** - **Applicant / Contact Person (Başvuran Kişi):**
`Enes Yakıştır` `Enes Yakıştır`
* **Email Address (E-posta):** - **Email Address (E-posta):**
`[email protected]` `[email protected]`
* **Country (Ülke):** - **Country (Ülke):**
`Turkey` `Turkey`
* **Organization / Community (Organizasyon):** - **Organization / Community (Organizasyon):**
`YakNet (YakHub Open Source Accessibility Initiative)` `YakNet (YakHub Open Source Accessibility Initiative)`
* **Website / Live Demo URL (Canlı Demo):** - **Website / Live Demo URL (Canlı Demo):**
`https://yaktube.yakhub.com.tr` `https://yaktube.yakhub.com.tr`
* **Source Code Repositories (Açık Kaynak Kod Depoları):** - **Source Code Repositories (Açık Kaynak Kod Depoları):**
* **On-Demand & A11y Plugin (Primary):** `https://yakhub.com.tr/YakNet/peertube-plugin-yaktube-ondemand` - **On-Demand & A11y Plugin (Primary):** `https://yakhub.com.tr/YakNet/peertube-plugin-yaktube-ondemand`
* **On-Demand & A11y Plugin (GitHub Mirror):** `https://github.com/yakistir98/peertube-plugin-yaktube-ondemand` - **On-Demand & A11y Plugin (GitHub Mirror):** `https://github.com/yakistir98/peertube-plugin-yaktube-ondemand`
* **YakNet SSO Auth Plugin (Primary):** `https://yakhub.com.tr/YakNet/peertube-plugin-auth-yaknet` - **YakNet SSO Auth Plugin (Primary):** `https://yakhub.com.tr/YakNet/peertube-plugin-auth-yaknet`
* **YakNet SSO Auth Plugin (GitHub Mirror):** `https://github.com/yakistir98/peertube-plugin-auth-yaknet` - **YakNet SSO Auth Plugin (GitHub Mirror):** `https://github.com/yakistir98/peertube-plugin-auth-yaknet`
* **Project License (Açık Kaynak Lisansı):** - **Project License (Açık Kaynak Lisansı):**
`AGPLv3 / MIT (OSI-Approved Free & Open Source Licenses)` `AGPLv3 / MIT (OSI-Approved Free & Open Source Licenses)`
--- ---
### 1.1 Verified Banking Details / Resmi Banka ve Ödeme Bilgileri (Hakediş İçin Hazır) ### 1.1 Verified Banking Details / Resmi Banka ve Ödeme Bilgileri (Hakediş İçin Hazır)
* **Bank Name (Banka):** `Yapı ve Kredi Bankası A.Ş. (Yapı Kredi)`
* **Account Holder (Hesap Sahibi):** `Enes Yakıştır` - **Bank Name (Banka):** `Yapı ve Kredi Bankası A.Ş. (Yapı Kredi)`
* **Currency (Para Birimi):** `EUR (Euro Vadesiz Hesap)` - **Account Holder (Hesap Sahibi):** `Enes Yakıştır`
* **IBAN (Euro IBAN):** `TR350006701000000319490793` - **Currency (Para Birimi):** `EUR (Euro Vadesiz Hesap)`
* **SWIFT / BIC Code:** `YAPITRIS` - **IBAN (Euro IBAN):** `TR350006701000000319490793`
* **Country:** `Turkey` - **SWIFT / BIC Code:** `YAPITRIS`
- **Country:** `Turkey`
--- ---
### 2. Short Project Summary (Abstract) / Proje Kısa Özeti ### 2. Short Project Summary (Abstract) / Proje Kısa Özeti
*(Formda "Explain the project in simple terms" kısmına yapıştırılacak İngilizce metin)*
_(Formda "Explain the project in simple terms" kısmına yapıştırılacak İngilizce metin)_
**English Text:** **English Text:**
> "YakTube is a lightweight, screen-reader-first media syndication engine and client built on top of the open-source PeerTube/ActivityPub ecosystem. While commercial video platforms (like YouTube) and existing alternative frontends suffer from heavy JavaScript bloat, dynamic DOM instability, intrusive tracking, and poor screen-reader accessibility, YakTube provides a 100% WCAG 2.1 AAA-compliant, ad-free streaming and on-demand caching bridge. Developed directly by visually impaired engineers, YakTube includes a specialized PeerTube plugin, an on-demand ingestion bridge, and a sub-5MB native mobile client designed for seamless TalkBack and NVDA screen-reader navigation." > "YakTube is a lightweight, screen-reader-first media syndication engine and client built on top of the open-source PeerTube/ActivityPub ecosystem. While commercial video platforms (like YouTube) and existing alternative frontends suffer from heavy JavaScript bloat, dynamic DOM instability, intrusive tracking, and poor screen-reader accessibility, YakTube provides a 100% WCAG 2.1 AAA-compliant, ad-free streaming and on-demand caching bridge. Developed directly by visually impaired engineers, YakTube includes a specialized PeerTube plugin, an on-demand ingestion bridge, and a sub-5MB native mobile client designed for seamless TalkBack and NVDA screen-reader navigation."
**Türkçe Açıklaması:** **Türkçe Açıklaması:**
@@ -51,10 +55,13 @@ YakTube, PeerTube ve ActivityPub ekosistemi üzerinde inşa edilmiş, ekran okuy
--- ---
### 3. The Challenge / Problem ve Çözülmek İstenen Zorluk ### 3. The Challenge / Problem ve Çözülmek İstenen Zorluk
*(Formda "What is the problem you are trying to solve?" kısmına yapıştırılacak metin)*
_(Formda "What is the problem you are trying to solve?" kısmına yapıştırılacak metin)_
**English Text:** **English Text:**
> "Access to digital multimedia remains one of the greatest barriers for visually impaired, blind, and assistive-technology users worldwide. > "Access to digital multimedia remains one of the greatest barriers for visually impaired, blind, and assistive-technology users worldwide.
>
> 1. **Commercial Monopolies:** Mainstream platforms prioritize visual advertising algorithms, dynamic popups, and non-semantic DOM trees that severely degrade screen-reader experiences (TalkBack, NVDA, VoiceOver). > 1. **Commercial Monopolies:** Mainstream platforms prioritize visual advertising algorithms, dynamic popups, and non-semantic DOM trees that severely degrade screen-reader experiences (TalkBack, NVDA, VoiceOver).
> 2. **Fragility of Scraper Frontends:** Public proxy instances (such as Invidious or Piped) regularly break due to upstream bot-guard countermeasures, lack decentralized ActivityPub federation, and offer zero specialized accessibility audits. > 2. **Fragility of Scraper Frontends:** Public proxy instances (such as Invidious or Piped) regularly break due to upstream bot-guard countermeasures, lack decentralized ActivityPub federation, and offer zero specialized accessibility audits.
> 3. **The Fediverse Accessibility Void:** While PeerTube is the gold standard for decentralized video federation, vanilla instances lack built-in screen-reader ARIA live regions, simplified audio/podcast streaming layouts, and ultra-lightweight mobile clients for low-end devices. > 3. **The Fediverse Accessibility Void:** While PeerTube is the gold standard for decentralized video federation, vanilla instances lack built-in screen-reader ARIA live regions, simplified audio/podcast streaming layouts, and ultra-lightweight mobile clients for low-end devices.
@@ -64,10 +71,13 @@ YakTube, PeerTube ve ActivityPub ekosistemi üzerinde inşa edilmiş, ekran okuy
--- ---
### 4. Technical Architecture & Innovation / Teknik Çözüm ve İnovasyon ### 4. Technical Architecture & Innovation / Teknik Çözüm ve İnovasyon
*(Formda "What is the proposed solution and technical approach?" kısmına yapıştırılacak metin)*
_(Formda "What is the proposed solution and technical approach?" kısmına yapıştırılacak metin)_
**English Text:** **English Text:**
> "YakTube delivers a three-tier technical innovation: > "YakTube delivers a three-tier technical innovation:
>
> 1. **WCAG 2.1 AAA Screen-Reader & Pro Video Player Engine:** Re-architecting the web and client interface with strict semantic HTML5, explicit ARIA live regions, natural hands-free voice search (`Web Speech API`), full-featured YouTube keyboard navigation (`Space/K` play-pause, `J/L` 10s seek, `Left/Right` 5s seek, `T` Theater Mode, `I` Instant Video Stats, `C` Subtitles, `0-9` percentage jumps, `>/<` playback speed steps, `Shift+V`, `/`, `Escape`), and distraction-free audio playback modes. > 1. **WCAG 2.1 AAA Screen-Reader & Pro Video Player Engine:** Re-architecting the web and client interface with strict semantic HTML5, explicit ARIA live regions, natural hands-free voice search (`Web Speech API`), full-featured YouTube keyboard navigation (`Space/K` play-pause, `J/L` 10s seek, `Left/Right` 5s seek, `T` Theater Mode, `I` Instant Video Stats, `C` Subtitles, `0-9` percentage jumps, `>/<` playback speed steps, `Shift+V`, `/`, `Escape`), and distraction-free audio playback modes.
> 2. **On-Demand ActivityPub Syndication Bridge:** A custom Node.js and PeerTube plugin controller that accepts search queries, validates media availability, performs automated channel routing (Music, Podcasts, Tech), and caches streams with an automated pruning lifecycle to conserve bandwidth and storage. > 2. **On-Demand ActivityPub Syndication Bridge:** A custom Node.js and PeerTube plugin controller that accepts search queries, validates media availability, performs automated channel routing (Music, Podcasts, Tech), and caches streams with an automated pruning lifecycle to conserve bandwidth and storage.
> 3. **Sub-5MB Native Mobile Client:** A zero-telemetry, lightweight Android client (`tr.com.yaknet.yaktube`) engineered specifically for TalkBack gesture control, eliminating background memory overhead and providing offline cached listening." > 3. **Sub-5MB Native Mobile Client:** A zero-telemetry, lightweight Android client (`tr.com.yaknet.yaktube`) engineered specifically for TalkBack gesture control, eliminating background memory overhead and providing offline cached listening."
@@ -75,10 +85,13 @@ YakTube, PeerTube ve ActivityPub ekosistemi üzerinde inşa edilmiş, ekran okuy
--- ---
### 5. Upstream Ecosystem Benefit / Ekosisteme ve Açık İnternete Faydası ### 5. Upstream Ecosystem Benefit / Ekosisteme ve Açık İnternete Faydası
*(Formda "How will this contribute to the open internet / NGI ecosystem?" kısmına yapıştırılacak metin)*
_(Formda "How will this contribute to the open internet / NGI ecosystem?" kısmına yapıştırılacak metin)_
**English Text:** **English Text:**
> "YakTube is not a private silo; all core components are packaged as reusable open-source modules: > "YakTube is not a private silo; all core components are packaged as reusable open-source modules:
>
> - Any existing PeerTube administrator in the global Fediverse can install the `peertube-plugin-yaktube-ondemand` package with a single click to instantly make their instance 100% accessible to visually impaired communities. > - Any existing PeerTube administrator in the global Fediverse can install the `peertube-plugin-yaktube-ondemand` package with a single click to instantly make their instance 100% accessible to visually impaired communities.
> - The native Android client source code will be published as an accessible open-source template for ActivityPub media clients. > - The native Android client source code will be published as an accessible open-source template for ActivityPub media clients.
> - Full compliance with the **European Accessibility Act (EAA)** guidelines, providing a reference implementation for inclusive Fediverse software." > - Full compliance with the **European Accessibility Act (EAA)** guidelines, providing a reference implementation for inclusive Fediverse software."
@@ -86,36 +99,42 @@ YakTube, PeerTube ve ActivityPub ekosistemi üzerinde inşa edilmiş, ekran okuy
--- ---
### 6. Work Plan, Milestones & Budget Breakdown / Çalışma Planı ve Bütçe ### 6. Work Plan, Milestones & Budget Breakdown / Çalışma Planı ve Bütçe
*(Talep Edilen Toplam Hibe: **5.000 €** - Geliştirici Ar-Ge Emeği / Developer Labor)*
_(Talep Edilen Toplam Hibe: **5.000 €** - Geliştirici Ar-Ge Emeği / Developer Labor)_
#### 📍 Milestone 1: Advanced Screen-Reader Accessibility & WCAG 2.1 AAA Compliance #### 📍 Milestone 1: Advanced Screen-Reader Accessibility & WCAG 2.1 AAA Compliance
* **Estimated Labor:** 50 Hours (Developer R&D / A11y Engineering)
* **Budget Allocation:** **2.000 €** - **Estimated Labor:** 50 Hours (Developer R&D / A11y Engineering)
* **Deliverables:** - **Budget Allocation:** **2.000 €**
- **Deliverables:**
- Full keyboard-only and screen-reader audit (NVDA, TalkBack, Orca). - Full keyboard-only and screen-reader audit (NVDA, TalkBack, Orca).
- ARIA live region announcements for player states (buffering, playing, volume, subtitles). - ARIA live region announcements for player states (buffering, playing, volume, subtitles).
- High-contrast accessible theme and automated accessibility regression test suite. - High-contrast accessible theme and automated accessibility regression test suite.
#### 📍 Milestone 2: Native Lightweight Android Client & Upstream Plugin Packaging #### 📍 Milestone 2: Native Lightweight Android Client & Upstream Plugin Packaging
* **Estimated Labor:** 50 Hours (Mobile Client & API Integration)
* **Budget Allocation:** **2.000 €** - **Estimated Labor:** 50 Hours (Mobile Client & API Integration)
* **Deliverables:** - **Budget Allocation:** **2.000 €**
- **Deliverables:**
- Open-source release of the sub-5MB native Android client on YakHub and GitHub with APK builds. - Open-source release of the sub-5MB native Android client on YakHub and GitHub with APK builds.
- Complete TalkBack gesture optimization and background playback support. - Complete TalkBack gesture optimization and background playback support.
- NPM packaging of `peertube-plugin-yaktube-ondemand` for standard PeerTube installations. - NPM packaging of `peertube-plugin-yaktube-ondemand` for standard PeerTube installations.
#### 📍 Milestone 3: Documentation, Fediverse CI/CD & Production Testing #### 📍 Milestone 3: Documentation, Fediverse CI/CD & Production Testing
* **Estimated Labor:** 25 Hours (DevOps, Documentation & Auditing)
* **Budget Allocation:** **1.000 €** - **Estimated Labor:** 25 Hours (DevOps, Documentation & Auditing)
* **Deliverables:** - **Budget Allocation:** **1.000 €**
- **Deliverables:**
- Comprehensive English & Turkish installation and developer documentation on YakHub/GitHub. - Comprehensive English & Turkish installation and developer documentation on YakHub/GitHub.
- Multi-instance ActivityPub federation testing and automated containerized deployment scripts. - Multi-instance ActivityPub federation testing and automated containerized deployment scripts.
- Public final milestone report and live release validation. - Public final milestone report and live release validation.
* **TOTAL REQUESTED GRANT:** **5.000 €** - **TOTAL REQUESTED GRANT:** **5.000 €**
--- ---
### 7. Why We Are Uniquely Qualified / Neden Bu Projeyi Biz Başarabiliriz? ### 7. Why We Are Uniquely Qualified / Neden Bu Projeyi Biz Başarabiliriz?
**English Text:** **English Text:**
> "The project lead is a passionate visually impaired software engineer who lives with assistive technology daily. Rather than treating accessibility as an external afterthought, YakTube is built from the ground up through lived experience, practical engineering, and deep commitment to open-source digital sovereignty. A fully functioning live prototype (`yaktube.yakhub.com.tr`) and working APK are already operational, demonstrating technical capability and guaranteed milestone delivery." > "The project lead is a passionate visually impaired software engineer who lives with assistive technology daily. Rather than treating accessibility as an external afterthought, YakTube is built from the ground up through lived experience, practical engineering, and deep commitment to open-source digital sovereignty. A fully functioning live prototype (`yaktube.yakhub.com.tr`) and working APK are already operational, demonstrating technical capability and guaranteed milestone delivery."
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "peertube-plugin-yaktube-ondemand", "name": "peertube-plugin-yaktube-ondemand",
"version": "1.4.0", "version": "1.4.1",
"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",
"clientScripts": [ "clientScripts": [
+51
View File
@@ -843,3 +843,54 @@ body.yaktube-theater-mode .video-js {
.yaktube-info-toast-row b { .yaktube-info-toast-row b {
color: #fff !important; 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;
}