Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions assets/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,14 @@ player.on('timeupdate', function () {
let elem_yt_watch = document.getElementById('link-yt-watch');
let elem_yt_embed = document.getElementById('link-yt-embed');

let base_url_yt_watch = elem_yt_watch.getAttribute('data-base-url');
let base_url_yt_embed = elem_yt_embed.getAttribute('data-base-url');

elem_yt_watch.href = addCurrentTimeToURL(base_url_yt_watch);
elem_yt_embed.href = addCurrentTimeToURL(base_url_yt_embed);
// YT links could be turned off by the user
if (elem_yt_watch) {
let base_url_yt_watch = elem_yt_watch.getAttribute('data-base-url');
let base_url_yt_embed = elem_yt_embed.getAttribute('data-base-url');

elem_yt_watch.href = addCurrentTimeToURL(base_url_yt_watch);
elem_yt_embed.href = addCurrentTimeToURL(base_url_yt_embed);
}

// Invidious links

Expand Down Expand Up @@ -174,7 +177,7 @@ var shareOptions = {
};

if (location.pathname.startsWith('/embed/')) {
var overlay_content = '<h1><a rel="noopener" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>';
var overlay_content = '<h1><a rel="noopener noreferrer" target="_blank" href="' + location.origin + '/watch?v=' + video_data.id + '">' + player_data.title + '</a></h1>';
player.overlay({
overlays: [
{ start: 'loadstart', content: overlay_content, end: 'playing', align: 'top'},
Expand Down
2 changes: 1 addition & 1 deletion assets/js/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function get_reddit_comments() {
</b> \
</p> \
<b> \
<a rel="noopener" target="_blank" href="https://reddit.com{permalink}">{redditPermalinkText}</a> \
<a rel="noopener noreferrer" target="_blank" href="https://reddit.com{permalink}">{redditPermalinkText}</a> \
</b> \
</div> \
<div>{contentHtml}</div> \
Expand Down
14 changes: 14 additions & 0 deletions config/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,20 @@ default_user_preferences:
##
#automatic_instance_redirect: false

##
## Display YouTube redirect links on pages where they are provided.
## - Watch on Youtube (video page)
## - [YT] Comment link (comments)
## - After which you should try to page (error page)
## - watch on youtube button (search results page)
## - View channel on YouTube (channel page)
## - View playlist on YouTube (playlist page)
##
## Accepted values: true, false
## Default: true
##
#include_youtube_links: true

##
## Show the entire video description by default (when set to 'false',
## only the first few lines of the description are shown and a
Expand Down
1 change: 1 addition & 0 deletions locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "الوضع الخفيف: ",
"preferences_category_misc": "تفضيلات متنوعة",
"preferences_automatic_instance_redirect_label": "إعادة توجيه المثيل التلقائي (إعادة التوجيه إلى redirect.invidious.io): ",
"preferences_include_youtube_links_label": "عرض روابط إعادة التوجيه على يوتيوب: ",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only need to provide translations for en-US.

Other translations are done through weblate (ex: https://github.com/iv-org/invidious/pull/4989/files ).

"preferences_category_subscription": "تفضيلات الاشتراك",
"preferences_annotations_subscribed_label": "عرض الملاحظات في الفيديوهات تلقائيا في القنوات المشترك بها فقط: ",
"Redirect homepage to feed: ": "إعادة التوجية من الصفحة الرئيسية لصفحة المشتركين (لرؤية اخر فيديوهات المشتركين): ",
Expand Down
1 change: 1 addition & 0 deletions locales/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@
"source": "източник",
"Fallback comments: ": "Резервни коментари: ",
"preferences_automatic_instance_redirect_label": "Автоматично препращане на инстанция (чрез redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Покажете пренасочващите връзки на YouTube: ",
"Maori": "Маори",
"generic_button_delete": "Изтрий",
"Import YouTube playlist (.csv)": "Импортиране на YouTube плейлист (.csv)",
Expand Down
1 change: 1 addition & 0 deletions locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
"Default": "Per defecte",
"Amharic": "Amàric",
"preferences_automatic_instance_redirect_label": "Redirecció automàtica d'instàncies (retorna a redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Mostra els enllaços de redirecció de YouTube: ",
"Login enabled: ": "Activa inici de sessió: ",
"Registration enabled: ": "Activa registre: ",
"Whitelisted regions: ": "Regions a la llista blanca: ",
Expand Down
1 change: 1 addition & 0 deletions locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@
"Erroneous CAPTCHA": "Chybná CAPTCHA",
"Password is a required field": "Heslo je vyžadované pole",
"preferences_automatic_instance_redirect_label": "Automatické přesměrování instance (fallback na redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Zobrazit přesměrovací odkazy na YouTube: ",
"Switch Invidious Instance": "Přepnout instanci Invidious",
"Empty playlist": "Prázdný playlist",
"footer_source_code": "Zdrojový kód",
Expand Down
1 change: 1 addition & 0 deletions locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@
"Dutch": "Hollandsk",
"Estonian": "Estisk",
"preferences_automatic_instance_redirect_label": "Automatisk eksempel omdirigering (Fallback til redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Vis YouTube-omdirigeringslinks: ",
"Nepali": "Nepalesisk",
"Norwegian Bokmål": "Norsk Bokmål",
"(edited)": "(ændret)",
Expand Down
1 change: 1 addition & 0 deletions locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"preferences_thin_mode_label": "Schlanker Modus: ",
"preferences_category_misc": "Sonstige Einstellungen",
"preferences_automatic_instance_redirect_label": "Automatische Instanzweiterleitung (über redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Zeige YouTube-Weiterleitungslinks: ",
"preferences_category_subscription": "Abonnementeinstellungen",
"preferences_annotations_subscribed_label": "Anmerkungen für abonnierte Kanäle standardmäßig anzeigen? ",
"Redirect homepage to feed: ": "Startseite zu Feed umleiten: ",
Expand Down
1 change: 1 addition & 0 deletions locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@
"error_video_not_in_playlist": "Το αιτούμενο βίντεο δεν υπάρχει στη δεδομένη λίστα αναπαραγωγής. <a href=\"`x`\">Πατήστε εδώ για επιστροφή στη κεντρική σελίδα λιστών αναπαραγωγής.</a>",
"search_filters_duration_option_none": "Οποιαδήποτε διάρκεια",
"preferences_automatic_instance_redirect_label": "Αυτόματη ανακατεύθυνση instance (εναλλακτική σε redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Εμφάνιση συνδέσμων ανακατεύθυνσης YouTube: ",
"generic_button_delete": "Διαγραφή",
"Import YouTube playlist (.csv)": "Εισαγωγή λίστας αναπαραγωγής YouTube (.csv)",
"Switch Invidious Instance": "Αλλαγή Instance Invidious",
Expand Down
1 change: 1 addition & 0 deletions locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"preferences_thin_mode_label": "Thin mode: ",
"preferences_category_misc": "Miscellaneous preferences",
"preferences_automatic_instance_redirect_label": "Automatic instance redirection (fallback to redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Show YouTube redirect links: ",
"preferences_category_subscription": "Subscription preferences",
"preferences_annotations_subscribed_label": "Show annotations by default for subscribed channels? ",
"Redirect homepage to feed: ": "Redirect homepage to feed: ",
Expand Down
1 change: 1 addition & 0 deletions locales/eo.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Maldika reĝimo: ",
"preferences_category_misc": "Aliaj agordoj",
"preferences_automatic_instance_redirect_label": "Aŭtomata alidirektado de nodo (retropaŝo al redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Montri YouTube-retebligajn ligilojn: ",
"preferences_category_subscription": "Abonaj agordoj",
"preferences_annotations_subscribed_label": "Ĉu montri prinotojn defaŭlte por abonitaj kanaloj? ",
"Redirect homepage to feed: ": "Alidirekti hejmpâgon al fluo: ",
Expand Down
1 change: 1 addition & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Modo compacto: ",
"preferences_category_misc": "Preferencias misceláneas",
"preferences_automatic_instance_redirect_label": "Redirección automática de instancia (segunda opción a redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Mostrar enlaces de redirección de YouTube: ",
"preferences_category_subscription": "Preferencias de la suscripción",
"preferences_annotations_subscribed_label": "¿Mostrar anotaciones por defecto para los canales suscritos? ",
"Redirect homepage to feed: ": "Redirigir la página de inicio a la fuente: ",
Expand Down
1 change: 1 addition & 0 deletions locales/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
"preferences_category_data": "Dataren lehentasunak",
"preferences_default_home_label": "Homepage lehenetsia: ",
"preferences_automatic_instance_redirect_label": "berbideratze adibide automatikoa (atzera egin berbideratzeko: invidious.io) ",
"preferences_include_youtube_links_label": "Erakutsi YouTubeko birbideratze estekak ",
"`x` uploaded a video": "' x'(e)k bideo bat igo du",
"published - reverse": "argitaratuta - alderantziz",
"Could not get channel info.": "Kanalaren adierazpena ezin lortu.",
Expand Down
1 change: 1 addition & 0 deletions locales/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"preferences_thin_mode_label": "حالت نازک: ",
"preferences_category_misc": "ترجیحات متفرقه",
"preferences_automatic_instance_redirect_label": "هدایت خودکار نمونه (انتقال به redirect.invidious.io): ",
"preferences_include_youtube_links_label": "نمایش لینک‌های ریدایرکت یوتیوب: ",
"preferences_category_subscription": "ترجیحات اشتراک",
"preferences_annotations_subscribed_label": "نمایش حاشیه نویسی ها به طور پیشفرض برای کانال های مشترک شده: ",
"Redirect homepage to feed: ": "تغییر مسیر صفحه خانه به خوراک: ",
Expand Down
1 change: 1 addition & 0 deletions locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Kapea tila: ",
"preferences_category_misc": "Sekalaiset asetukset",
"preferences_automatic_instance_redirect_label": "Automaattinen instanssin uudelleenohjaus (perääntyminen sivulle redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Näytä YouTuben uudelleenohjauslinkit: ",
"preferences_category_subscription": "Tilausten asetukset",
"preferences_annotations_subscribed_label": "Näytä oletuksena tilattujen kanavien huomautukset: ",
"Redirect homepage to feed: ": "Uudelleenohjaa kotisivu syötteeseen: ",
Expand Down
1 change: 1 addition & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"preferences_thin_mode_label": "Mode léger : ",
"preferences_category_misc": "Paramètres divers",
"preferences_automatic_instance_redirect_label": "Redirection automatique vers une autre instance (via redirect.invidious.io) : ",
"preferences_include_youtube_links_label": "Afficher les liens de redirection YouTube : ",
"preferences_category_subscription": "Préférences des abonnements",
"preferences_annotations_subscribed_label": "Afficher les annotations par défaut sur les chaînes auxquelles vous êtes abonnés : ",
"Redirect homepage to feed: ": "Rediriger la page d'accueil vers la page d'abonnements : ",
Expand Down
1 change: 1 addition & 0 deletions locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"preferences_thin_mode_label": "हल्का मोड: ",
"preferences_category_misc": "विविध प्राथमिकताएँ",
"preferences_automatic_instance_redirect_label": "अपने आप अनुप्रेषित करें (redirect.invidious.io पर फ़ॉलबैक करें): ",
"preferences_include_youtube_links_label": "यूट्यूब रीडायरेक्ट लिंक दिखाएं: ",
"preferences_category_subscription": "सदस्यताओं की प्राथमिकताएँ",
"preferences_annotations_subscribed_label": "सदस्यता लिए गए चैनलों पर डिफ़ॉल्ट से टिप्पणियाँ दिखाएँ? ",
"Redirect homepage to feed: ": "फ़ीड पर मुखपृष्ठ को अनुप्रेषित करें: ",
Expand Down
1 change: 1 addition & 0 deletions locales/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Pojednostavljen prikaz: ",
"preferences_category_misc": "Razne postavke",
"preferences_automatic_instance_redirect_label": "Automatsko preusmjeravanje instance (u krajnjem slučaju će se koristiti redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Prikaži YouTube preusmjeravajuće linkove: ",
"preferences_category_subscription": "Postavke pretplata",
"preferences_annotations_subscribed_label": "Standardno prikaži napomene za pretplaćene kanale: ",
"Redirect homepage to feed: ": "Preusmjeri početnu stranicu na feed: ",
Expand Down
1 change: 1 addition & 0 deletions locales/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@
"footer_modfied_source_code": "Módosított forráskód",
"adminprefs_modified_source_code_url_label": "A módosított forráskód repositoryjának URL-je:",
"preferences_automatic_instance_redirect_label": "Váltáskor másik Invidious oldal automatikus betöltése (redirect.invidious.io töltődik, ha nem működne): ",
"preferences_include_youtube_links_label": "Mutassa a YouTube átirányító linkeket: ",
"preferences_region_label": "Ország tartalmainak mutatása: ",
"search_filters_sort_option_relevance": "Relevancia",
"search_filters_sort_option_rating": "Pontszám",
Expand Down
1 change: 1 addition & 0 deletions locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"preferences_thin_mode_label": "Mode tipis: ",
"preferences_category_misc": "Preferensi lainnya",
"preferences_automatic_instance_redirect_label": "Pengalihan peladen otomatis (balik kembali ke redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Tampilkan tautan pengalihan YouTube: ",
"preferences_category_subscription": "Preferensi langganan",
"preferences_annotations_subscribed_label": "Tampilkan anotasi secara baku untuk kanal yang dilanggan? ",
"Redirect homepage to feed: ": "Arahkan kembali laman beranda ke umpan: ",
Expand Down
1 change: 1 addition & 0 deletions locales/is.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@
"preferences_quality_option_small": "Lítið",
"preferences_category_misc": "Ýmsar kjörstillingar",
"preferences_automatic_instance_redirect_label": "Sjálfvirk endurbeining tilvika (farið til vara á redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Sýna YouTube umleiðingartengla: ",
"Portuguese (auto-generated)": "Portúgalska (sjálfvirkt útbúið)",
"Portuguese (Brazil)": "Portúgalska (Brasilía)",
"generic_button_edit": "Breyta",
Expand Down
1 change: 1 addition & 0 deletions locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@
"download_subtitles": "Sottotitoli - `x` (.vtt)",
"user_saved_playlists": "playlist salvate da `x`",
"preferences_automatic_instance_redirect_label": "Reindirizzamento automatico dell'istanza (ripiego su redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Mostra i link di reindirizzamento di YouTube: ",
"Video unavailable": "Video non disponibile",
"preferences_show_nick_label": "Mostra nickname in alto: ",
"videoinfo_youTube_embed_link": "Incorpora",
Expand Down
1 change: 1 addition & 0 deletions locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"preferences_thin_mode_label": "最小モード: ",
"preferences_category_misc": "ほかの設定",
"preferences_automatic_instance_redirect_label": "インスタンスの自動転送 (redirect.invidious.ioにフォールバック): ",
"preferences_include_youtube_links_label": "YouTubeのリダイレクトリンクを表示する: ",
"preferences_category_subscription": "登録チャンネル設定",
"preferences_annotations_subscribed_label": "最初から登録チャンネルのアノテーションを表示 ",
"Redirect homepage to feed: ": "ホームからフィードにリダイレクト: ",
Expand Down
1 change: 1 addition & 0 deletions locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"preferences_annotations_subscribed_label": "구독한 채널에 기본으로 주석 표시: ",
"preferences_category_subscription": "구독 설정",
"preferences_automatic_instance_redirect_label": "자동 인스턴스 리디렉션 (redirect.invidious.io로 대체): ",
"preferences_include_youtube_links_label": "YouTube 리디렉션 링크 표시: ",
"preferences_thin_mode_label": "단순 모드: ",
"light": "라이트",
"dark": "다크",
Expand Down
1 change: 1 addition & 0 deletions locales/lmo.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
"preferences_dark_mode_label": "Tema: ",
"preferences_thin_mode_label": "Modalità legera: ",
"preferences_automatic_instance_redirect_label": "Reindirizazzion automatega de la instansa (rivèrt a redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Mostra i link de reindirizzament de YouTube: ",
"Hide annotations": "Piaca le notazioni",
"Show annotations": "Mostra le notazioni",
"Family friendly? ": "Adàt a tüti? ",
Expand Down
1 change: 1 addition & 0 deletions locales/lt.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Sugretintas rėžimas: ",
"preferences_category_misc": "Įvairios nuostatos",
"preferences_automatic_instance_redirect_label": "Automatinis šaltinio nukreipimas (atsarginis nukreipimas į redirect.Invidous.io): ",
"preferences_include_youtube_links_label": "Rodyti YouTube nukreipimo nuorodas: ",
"preferences_category_subscription": "Prenumeratų nuostatos",
"preferences_annotations_subscribed_label": "Prenumeruojamiems kanalams subtitrus rodyti pagal nutylėjimą: ",
"Redirect homepage to feed: ": "Peradresuoti pagrindinį puslapį į kanalų sąrašą: ",
Expand Down
1 change: 1 addition & 0 deletions locales/nb-NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Tynt modus: ",
"preferences_category_misc": "Ulike innstillinger",
"preferences_automatic_instance_redirect_label": "Automatisk instansomdirigering (faller tilbake til redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Vis YouTube-omdirigeringslenker: ",
"preferences_category_subscription": "Abonnementsinnstillinger",
"preferences_annotations_subscribed_label": "Vis merknader som forvalg for kanaler det abonneres på? ",
"Redirect homepage to feed: ": "Videresend hjemmeside til kilde: ",
Expand Down
1 change: 1 addition & 0 deletions locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"Current version: ": "Huidige versie: ",
"Switch Invidious Instance": "Schakel tussen de Invidious Instanties",
"preferences_automatic_instance_redirect_label": "Automatische instantie-omleiding (terugval naar redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Toon YouTube-omleidingslinks: ",
"preferences_quality_dash_label": "Gewenste DASH-videokwaliteit: ",
"preferences_region_label": "Inhoud land: ",
"preferences_category_misc": "Diverse voorkeuren",
Expand Down
1 change: 1 addition & 0 deletions locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Tryb minimalny: ",
"preferences_category_misc": "Różne preferencje",
"preferences_automatic_instance_redirect_label": "Automatycznie przekierowanie instancji (powrót do redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Pokaż linki przekierowujące do YouTube: ",
"preferences_category_subscription": "Preferencje subskrypcji",
"preferences_annotations_subscribed_label": "Domyślnie wyświetlaj adnotacje dla subskrybowanych kanałów: ",
"Redirect homepage to feed: ": "Przekieruj stronę główną do subskrybcji: ",
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"preferences_thin_mode_label": "Modo compacto: ",
"preferences_category_misc": "Preferências diversas",
"preferences_automatic_instance_redirect_label": "Redirecionamento automático de instâncias (alternativa para redirect.invidious.io): ",
"preferences_include_youtube_links_label": "Mostrar links de redirecionamento do YouTube: ",
"preferences_category_subscription": "Preferências de inscrições",
"preferences_annotations_subscribed_label": "Mostrar anotações por padrão para canais inscritos? ",
"Redirect homepage to feed: ": "Redirecionar página inicial para o feed: ",
Expand Down
Loading