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
3
Commits
v1.3.2
...
c667bf2f28
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c667bf2f28 | ||
|
|
b5c2c97559 | ||
|
|
b71e2a83a0 |
@@ -576,13 +576,13 @@
|
|||||||
|
|
||||||
setInterval(autoFixDOM, 1000);
|
setInterval(autoFixDOM, 1000);
|
||||||
|
|
||||||
// 3. Keyboard Shortcuts Modal
|
// 3. Keyboard Shortcuts Modal & Quick Info Engine (v1.4.0)
|
||||||
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 +597,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: 560px; 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;">⌨️ Video Oynatıcı & Gezinme Kısayolları</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>' +
|
||||||
|
'<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>' +
|
||||||
'<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">Space</span> veya <span class="yaktube-kbd">K</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">J</span> / <span class="yaktube-kbd">L</span></td><td>10 saniye geri / ileri 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">Sol</span> / <span class="yaktube-kbd">Sağ Ok</span></td><td>5 saniye geri / 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">Yukarı</span> / <span class="yaktube-kbd">Aşağı Ok</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">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">F</span></td><td>Tam Ekran</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">T</span></td><td>Sinema / Tiyatro Modu</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">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">I</span></td><td>Hızlı Video Bilgisi & İstatistikler</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">></span> / <span class="yaktube-kbd"><</span> (Shift+.)</td><td>Oynatma hızını artır / azalt</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">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">/</span></td><td>Arama penceresini aç</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>' +
|
||||||
'<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');
|
||||||
|
if (closeBtn) {
|
||||||
|
closeBtn.addEventListener('click', function () {
|
||||||
modal.style.display = 'none';
|
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 +656,77 @@
|
|||||||
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 + 'x';
|
||||||
|
var volume = Math.round(video.volume * 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];
|
||||||
|
|
||||||
|
// 4. Global Keydown Listener (Pro Video Player Engine)
|
||||||
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');
|
||||||
@@ -677,21 +755,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.key === '/' && !isInputFocused()) {
|
|
||||||
e.preventDefault();
|
|
||||||
var searchInput =
|
|
||||||
document.querySelector('input[type="search"]') ||
|
|
||||||
document.querySelector('input[name="search"]') ||
|
|
||||||
document.querySelector('.search-input') ||
|
|
||||||
document.querySelector('input');
|
|
||||||
if (searchInput) {
|
|
||||||
searchInput.focus();
|
|
||||||
if (searchInput.select) searchInput.select();
|
|
||||||
announce('Arama kutusuna odaklanıldı.');
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isInputFocused()) {
|
if (isInputFocused()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -701,6 +764,7 @@
|
|||||||
|
|
||||||
var key = e.key.toLowerCase();
|
var key = e.key.toLowerCase();
|
||||||
|
|
||||||
|
// Play / Pause (Space / K)
|
||||||
if (key === ' ' || key === 'k') {
|
if (key === ' ' || key === 'k') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (video.paused) {
|
if (video.paused) {
|
||||||
@@ -710,15 +774,29 @@
|
|||||||
video.pause();
|
video.pause();
|
||||||
announce('Video duraklatıldı.');
|
announce('Video duraklatıldı.');
|
||||||
}
|
}
|
||||||
} else if (key === 'j' || e.key === 'ArrowLeft') {
|
}
|
||||||
|
// Seek 10s Back / Forward (J / L)
|
||||||
|
else if (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') {
|
||||||
|
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 (Left / Right Arrow)
|
||||||
|
else if (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') {
|
||||||
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 (Up / Down Arrow)
|
||||||
|
else if (e.key === 'ArrowUp') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.volume = Math.min(1, video.volume + 0.05);
|
video.volume = Math.min(1, video.volume + 0.05);
|
||||||
announce('Ses seviyesi yüzde ' + Math.round(video.volume * 100));
|
announce('Ses seviyesi yüzde ' + Math.round(video.volume * 100));
|
||||||
@@ -726,11 +804,15 @@
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
video.volume = Math.max(0, video.volume - 0.05);
|
video.volume = Math.max(0, video.volume - 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 (M)
|
||||||
|
else if (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 (F)
|
||||||
|
else if (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 +822,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 (T)
|
||||||
|
else if (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 (I)
|
||||||
|
else if (key === 'i') {
|
||||||
|
e.preventDefault();
|
||||||
|
showQuickVideoInfo();
|
||||||
|
}
|
||||||
|
// Subtitles (C)
|
||||||
|
else if (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 +846,40 @@
|
|||||||
} 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 (< and > / Shift+, and Shift+.)
|
||||||
|
else if (e.key === '>' || (e.shiftKey && e.key === '.')) {
|
||||||
|
e.preventDefault();
|
||||||
|
var curSpeed = video.playbackRate || 1;
|
||||||
|
var nextIdx = speedSteps.findIndex(function (s) {
|
||||||
|
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();
|
||||||
|
var curSpeed = video.playbackRate || 1;
|
||||||
|
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)
|
||||||
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1406,7 +1530,8 @@
|
|||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
// 8. FULL YOUTUBE SEARCH & VOICE MODAL ENGINE (v1.3.2 - Clean Generic Labels)
|
// --------------------------------------------------------------------------
|
||||||
|
// 8. FULL YOUTUBE SEARCH & VOICE MODAL ENGINE (v1.3.3 - Guaranteed Close Fix)
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
var activeVoiceRec = null;
|
var activeVoiceRec = null;
|
||||||
var isVoiceListening = false;
|
var isVoiceListening = false;
|
||||||
@@ -1421,7 +1546,6 @@
|
|||||||
modal.setAttribute('role', 'dialog');
|
modal.setAttribute('role', 'dialog');
|
||||||
modal.setAttribute('aria-modal', 'true');
|
modal.setAttribute('aria-modal', 'true');
|
||||||
modal.setAttribute('aria-labelledby', 'yaktube-modal-search-title');
|
modal.setAttribute('aria-labelledby', 'yaktube-modal-search-title');
|
||||||
modal.style.display = 'none';
|
|
||||||
|
|
||||||
modal.innerHTML =
|
modal.innerHTML =
|
||||||
'<div class="yaktube-modal-search-card">' +
|
'<div class="yaktube-modal-search-card">' +
|
||||||
@@ -1484,7 +1608,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Close on Back button or Escape
|
// Close on Back button or Escape
|
||||||
backBtn.addEventListener('click', function () {
|
backBtn.addEventListener('click', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
closeFullSearchModal();
|
closeFullSearchModal();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1540,6 +1666,7 @@
|
|||||||
|
|
||||||
function openFullSearchModal(initialQuery, autoStartVoice) {
|
function openFullSearchModal(initialQuery, autoStartVoice) {
|
||||||
var modal = createFullSearchModal();
|
var modal = createFullSearchModal();
|
||||||
|
modal.classList.add('yaktube-modal-open');
|
||||||
modal.style.display = 'flex';
|
modal.style.display = 'flex';
|
||||||
|
|
||||||
var inp = modal.querySelector('#yaktube-modal-input');
|
var inp = modal.querySelector('#yaktube-modal-input');
|
||||||
@@ -1562,9 +1689,19 @@
|
|||||||
|
|
||||||
function closeFullSearchModal() {
|
function closeFullSearchModal() {
|
||||||
var modal = document.getElementById('yaktube-full-search-modal');
|
var modal = document.getElementById('yaktube-full-search-modal');
|
||||||
if (modal) modal.style.display = 'none';
|
if (modal) {
|
||||||
|
modal.classList.remove('yaktube-modal-open');
|
||||||
|
modal.style.display = 'none';
|
||||||
|
}
|
||||||
stopVoiceInsideModal();
|
stopVoiceInsideModal();
|
||||||
announce('Arama penceresi kapatıldı.');
|
announce('Arama penceresi kapatıldı.');
|
||||||
|
|
||||||
|
var trigger = document.querySelector('.yaktube-search-trigger-pill');
|
||||||
|
if (trigger) {
|
||||||
|
try {
|
||||||
|
trigger.focus();
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleVoiceInsideModal() {
|
function toggleVoiceInsideModal() {
|
||||||
@@ -1763,7 +1900,7 @@
|
|||||||
// Escape: Close Full Search Modal
|
// Escape: Close Full Search Modal
|
||||||
else if (e.key === 'Escape' || e.keyCode === 27) {
|
else if (e.key === 'Escape' || e.keyCode === 27) {
|
||||||
var modal = document.getElementById('yaktube-full-search-modal');
|
var modal = document.getElementById('yaktube-full-search-modal');
|
||||||
if (modal && modal.style.display === 'flex') {
|
if (modal && modal.classList.contains('yaktube-modal-open')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
closeFullSearchModal();
|
closeFullSearchModal();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,121 @@
|
|||||||
|
# NLnet Foundation / NGI Zero Grant Application Dossier
|
||||||
|
## 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.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 1. General & Contact Information / Genel ve İletişim Bilgileri
|
||||||
|
|
||||||
|
* **Project Name (Proje Adı):**
|
||||||
|
`YakTube: Accessible, Lightweight & Decentralized ActivityPub Media Engine`
|
||||||
|
* **Applicant / Contact Person (Başvuran Kişi):**
|
||||||
|
`Enes Yakıştır`
|
||||||
|
* **Email Address (E-posta):**
|
||||||
|
`[email protected]`
|
||||||
|
* **Country (Ülke):**
|
||||||
|
`Turkey`
|
||||||
|
* **Organization / Community (Organizasyon):**
|
||||||
|
`YakNet (YakHub Open Source Accessibility Initiative)`
|
||||||
|
* **Website / Live Demo URL (Canlı Demo):**
|
||||||
|
`https://yaktube.yakhub.com.tr`
|
||||||
|
* **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 (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 (GitHub Mirror):** `https://github.com/yakistir98/peertube-plugin-auth-yaknet`
|
||||||
|
* **Project License (Açık Kaynak Lisansı):**
|
||||||
|
`AGPLv3 / MIT (OSI-Approved Free & Open Source Licenses)`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 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`
|
||||||
|
* **Currency (Para Birimi):** `EUR (Euro Vadesiz Hesap)`
|
||||||
|
* **IBAN (Euro IBAN):** `TR350006701000000319490793`
|
||||||
|
* **SWIFT / BIC Code:** `YAPITRIS`
|
||||||
|
* **Country:** `Turkey`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 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)*
|
||||||
|
|
||||||
|
**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."
|
||||||
|
|
||||||
|
**Türkçe Açıklaması:**
|
||||||
|
YakTube, PeerTube ve ActivityPub ekosistemi üzerinde inşa edilmiş, ekran okuyucu odaklı, hafif bir medya platformu ve istemcisidir. Ticari platformların reklam ve erişilebilirlik engellerini ortadan kaldırarak; görme engelli yazılımcılar tarafından geliştirilmiş %100 WCAG 2.1 AAA uyumlu, reklamsız, 4.5 MB hafif mobil istemcili bir açık kaynak çözümü sunar.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 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)*
|
||||||
|
|
||||||
|
**English Text:**
|
||||||
|
> "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).
|
||||||
|
> 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.
|
||||||
|
>
|
||||||
|
> YakTube directly tackles these issues by engineering an upstream-compatible accessibility layer that empowers blind users to search, cache, stream, and federate media freely without surveillance or assistive barriers."
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 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)*
|
||||||
|
|
||||||
|
**English Text:**
|
||||||
|
> "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.
|
||||||
|
> 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."
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 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)*
|
||||||
|
|
||||||
|
**English Text:**
|
||||||
|
> "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.
|
||||||
|
> - 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."
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 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)*
|
||||||
|
|
||||||
|
#### 📍 Milestone 1: Advanced Screen-Reader Accessibility & WCAG 2.1 AAA Compliance
|
||||||
|
* **Estimated Labor:** 50 Hours (Developer R&D / A11y Engineering)
|
||||||
|
* **Budget Allocation:** **2.000 €**
|
||||||
|
* **Deliverables:**
|
||||||
|
- Full keyboard-only and screen-reader audit (NVDA, TalkBack, Orca).
|
||||||
|
- ARIA live region announcements for player states (buffering, playing, volume, subtitles).
|
||||||
|
- High-contrast accessible theme and automated accessibility regression test suite.
|
||||||
|
|
||||||
|
#### 📍 Milestone 2: Native Lightweight Android Client & Upstream Plugin Packaging
|
||||||
|
* **Estimated Labor:** 50 Hours (Mobile Client & API Integration)
|
||||||
|
* **Budget Allocation:** **2.000 €**
|
||||||
|
* **Deliverables:**
|
||||||
|
- 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.
|
||||||
|
- NPM packaging of `peertube-plugin-yaktube-ondemand` for standard PeerTube installations.
|
||||||
|
|
||||||
|
#### 📍 Milestone 3: Documentation, Fediverse CI/CD & Production Testing
|
||||||
|
* **Estimated Labor:** 25 Hours (DevOps, Documentation & Auditing)
|
||||||
|
* **Budget Allocation:** **1.000 €**
|
||||||
|
* **Deliverables:**
|
||||||
|
- Comprehensive English & Turkish installation and developer documentation on YakHub/GitHub.
|
||||||
|
- Multi-instance ActivityPub federation testing and automated containerized deployment scripts.
|
||||||
|
- Public final milestone report and live release validation.
|
||||||
|
|
||||||
|
* **TOTAL REQUESTED GRANT:** **5.000 €**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 7. Why We Are Uniquely Qualified / Neden Bu Projeyi Biz Başarabiliriz?
|
||||||
|
**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."
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.3.2",
|
"version": "1.4.0",
|
||||||
"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": [
|
||||||
|
|||||||
@@ -412,7 +412,8 @@ my-header .action-buttons {
|
|||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* YOUTUBE FULL SEARCH & VOICE MODAL (v1.3.1 - Sleek Trigger Pill) */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
/* YOUTUBE FULL SEARCH & VOICE MODAL (v1.3.3 - Display Fix) */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Header Search Trigger Container */
|
/* Header Search Trigger Container */
|
||||||
@@ -522,11 +523,15 @@ my-search-typeahead,
|
|||||||
background: rgba(0, 0, 0, 0.82) !important;
|
background: rgba(0, 0, 0, 0.82) !important;
|
||||||
backdrop-filter: blur(12px) !important;
|
backdrop-filter: blur(12px) !important;
|
||||||
z-index: 999999 !important;
|
z-index: 999999 !important;
|
||||||
display: flex !important;
|
display: none;
|
||||||
flex-direction: column !important;
|
flex-direction: column !important;
|
||||||
align-items: center !important;
|
align-items: center !important;
|
||||||
justify-content: flex-start !important;
|
justify-content: flex-start !important;
|
||||||
padding-top: 40px !important;
|
padding-top: 40px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yaktube-full-search-modal.yaktube-modal-open {
|
||||||
|
display: flex !important;
|
||||||
animation: yaktube-fade-in 0.2s ease-out !important;
|
animation: yaktube-fade-in 0.2s ease-out !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -763,3 +768,78 @@ 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user