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
fix(a11y): polish login button label to YakNet ile Giriş Yap across DOM text and attributes v1.4.5
This commit is contained in:
@@ -481,6 +481,35 @@
|
|||||||
|
|
||||||
injectYakNetSSO();
|
injectYakNetSSO();
|
||||||
|
|
||||||
|
// Replace all login buttons labels and titles
|
||||||
|
document
|
||||||
|
.querySelectorAll(
|
||||||
|
'my-login-link, a[href*="/login"], a[title*="Giriş sayfasına git"], [aria-label*="Giriş sayfasına git"]'
|
||||||
|
)
|
||||||
|
.forEach(function (el) {
|
||||||
|
if (el.getAttribute('title') && el.getAttribute('title').includes('Giriş sayfasına git')) {
|
||||||
|
el.setAttribute('title', 'YakNet ile Giriş Yap');
|
||||||
|
}
|
||||||
|
if (el.getAttribute('aria-label') && el.getAttribute('aria-label').includes('Giriş sayfasına git')) {
|
||||||
|
el.setAttribute('aria-label', 'YakNet ile Giriş Yap');
|
||||||
|
}
|
||||||
|
var anchor = el.tagName.toLowerCase() === 'a' ? el : el.querySelector('a');
|
||||||
|
if (anchor) {
|
||||||
|
anchor.setAttribute('title', 'YakNet ile Giriş Yap');
|
||||||
|
anchor.setAttribute('aria-label', 'YakNet ile Giriş Yap');
|
||||||
|
var spans = anchor.querySelectorAll('span');
|
||||||
|
spans.forEach(function (s) {
|
||||||
|
if (
|
||||||
|
s.textContent.includes('Giriş sayfasına git') ||
|
||||||
|
s.textContent.trim() === 'Giriş' ||
|
||||||
|
s.textContent.trim() === 'Giriş yap'
|
||||||
|
) {
|
||||||
|
s.textContent = 'YakNet ile Giriş Yap';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Aggressively remove generic Framasoft Open-in-App / Play Store banners
|
// Aggressively remove generic Framasoft Open-in-App / Play Store banners
|
||||||
var genericAppBanners = document.querySelectorAll(
|
var genericAppBanners = document.querySelectorAll(
|
||||||
'my-open-app, my-client-app-banner, .open-app-container, .app-banner, [class*="open-app"], [class*="open-in-app"], .mobile-app-banner, my-open-in-app, .app-promotion, a[href*="play.google.com/store/apps/details?id=app.joinpeertube"], a[href*="f-droid.org"]'
|
'my-open-app, my-client-app-banner, .open-app-container, .app-banner, [class*="open-app"], [class*="open-in-app"], .mobile-app-banner, my-open-in-app, .app-promotion, a[href*="play.google.com/store/apps/details?id=app.joinpeertube"], a[href*="f-droid.org"]'
|
||||||
@@ -519,7 +548,8 @@
|
|||||||
.replace(/PeerTube hakkında/gi, 'YakTube Hakkında')
|
.replace(/PeerTube hakkında/gi, 'YakTube Hakkında')
|
||||||
.replace(/PeerTube'a katılın/gi, "YakTube'a Katılın")
|
.replace(/PeerTube'a katılın/gi, "YakTube'a Katılın")
|
||||||
.replace(/PeerTube örneği/gi, 'YakTube Sunucusu')
|
.replace(/PeerTube örneği/gi, 'YakTube Sunucusu')
|
||||||
.replace(/PeerTube/g, 'YakTube');
|
.replace(/PeerTube/g, 'YakTube')
|
||||||
|
.replace(/Giriş sayfasına git/gi, 'YakNet ile Giriş Yap');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "peertube-plugin-yaktube-ondemand",
|
"name": "peertube-plugin-yaktube-ondemand",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
"description": "Accessible On-Demand YouTube Import, Live Streams, Smart Recommendations and A11y Engine for PeerTube",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"library": "./main.js",
|
"library": "./main.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user