Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Extension: a video in a feed sends its post, not the feed (#689, #643) (#707)

Ahmed Nefzaoui380cdb3ed029
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc8c9fa1..095efa8b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
### Fixed
+- The browser's **video button** over a video in a feed (a site's home page, a timeline, search results) sends that video's own address instead of the page's, which yt-dlp read as no video at all ("No video found on this page"). It finds the post the video sits in, as you would: on LinkedIn its `/feed/update/urn:li:activity:…/` (or `urn:li:ugcPost:…`) address, read from the post in LinkedIn's 2026 feed too, on Facebook the reel's, the video's or the post's own link, on X the post's (`/status/…`), on Instagram `/p/…` or `/reel/…`, on Reddit the post's comments page, on TikTok `/@…/video/…`, on Vimeo and Dailymotion the clip's page, and elsewhere a post's own link, such as its timestamp. Only a post that names that one video counts. When nothing does, the video's own file goes (when it plays one, not pieces), and otherwise nothing goes and the button says to open the post and use the button there ([#689](https://github.com/anefzaoui/misterdownloadmanager/issues/689), [#643](https://github.com/anefzaoui/misterdownloadmanager/issues/643)).
- Torrents: pausing a torrent just as one of its pieces was being checked no longer leaves it one piece short for good. That piece was neither counted as downloaded nor asked for again, so the torrent stopped just before the end, and pausing and starting it again didn't help, only restarting MDM did; a pause now puts that piece back to be downloaded again ([#706](https://github.com/anefzaoui/misterdownloadmanager/issues/706)).
- Torrents: the window no longer freezes while torrents run on a busy or slow disk (an antivirus scanning each write, a disk that is full of other work). The window read each torrent's numbers from the torrent engine on every frame, and the engine holds a torrent while it is paused, removed or added until its writes to the disk have ended, seconds on such a disk; the window waited that long ("freeze in mdm_torrent::Torrents::stats"). The numbers are now read beside the window, five times a second and at once after each change, and the list, the progress window's tabs, **Files...** and the right-click menu show the last ones without waiting ([#693](https://github.com/anefzaoui/misterdownloadmanager/issues/693)).
- The window no longer waits for the program that owns the clipboard. A text box's right-click menu (to offer **Paste**) and **Add URL**, **Add batch download**, **Add torrent** and **Download video** (to fill in a copied link) read the clipboard on the window's own thread, so a program that held the clipboard without answering (on Linux, where a read waited up to 4 seconds each time, and while the right-click menu was open at every frame; on Windows, a program that had stopped responding) held up MDM's window too. They now read it beside the window, as the clipboard monitor has since 0.5.1; a link copied just before still fills the box as the window opens (follows [#418](https://github.com/anefzaoui/misterdownloadmanager/issues/418)).
diff --git a/ROADMAP.md b/ROADMAP.md
index 081ba28b..8cb9e85c 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -585,6 +585,14 @@ These ship in a later version, when they're ready.
### Bugs being looked into
+- 🔄 The browser's video button over a video in a feed sending the feed's address, where yt-dlp
+ finds nothing (LinkedIn, Facebook, and other sites with feeds;
+ [#689](https://github.com/anefzaoui/misterdownloadmanager/issues/689),
+ [#643](https://github.com/anefzaoui/misterdownloadmanager/issues/643)): it now sends the post the
+ video sits in (LinkedIn, Facebook, X, Instagram, Reddit, TikTok, Vimeo, Dailymotion, and a
+ post's own link on other sites), else the video's own file, else it says to open the post; fix
+ in review, checked on a signed-in LinkedIn feed and Facebook's video page; Facebook's feed
+ posts still to check
- 🔄 Torrents: a pause landing while a piece was being checked leaving the torrent one piece short
until MDM restarted ([#706](https://github.com/anefzaoui/misterdownloadmanager/issues/706)): the
piece is now downloaded again after the pause; fix in review
diff --git a/extension/_locales/am/messages.json b/extension/_locales/am/messages.json
index 5e390df8..cc6560c4 100644
--- a/extension/_locales/am/messages.json
+++ b/extension/_locales/am/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "ይህ የትኛው ቪዲዮ እንደሆነ ማወቅ አልተቻለም፦ የራሱን ገጽ ከፍተው እዚያ ይሞክሩ"
},
+ "video_open_post": {
+ "message": "ልጥፉን ይክፈቱ፣ ከዚያ እዚያ ያለውን አዝራር ይጠቀሙ"
+ },
"popup_send_to": {
"message": "ውርዶችን ወደ"
},
diff --git a/extension/_locales/ar/messages.json b/extension/_locales/ar/messages.json
index f55cca6d..606e2937 100644
--- a/extension/_locales/ar/messages.json
+++ b/extension/_locales/ar/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "تعذّر تحديد هذا الفيديو: افتح صفحته الخاصة وحاول من هناك"
},
+ "video_open_post": {
+ "message": "افتح المنشور، ثم استخدم الزر هناك"
+ },
"popup_send_to": {
"message": "إرسال التنزيلات إلى"
},
diff --git a/extension/_locales/bg/messages.json b/extension/_locales/bg/messages.json
index bd99356d..9f87953b 100644
--- a/extension/_locales/bg/messages.json
+++ b/extension/_locales/bg/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Не може да се определи кое видео е това: отворете собствената му страница и опитайте там"
},
+ "video_open_post": {
+ "message": "Отворете публикацията, след това използвайте бутона там"
+ },
"popup_send_to": {
"message": "Изпращане на изтегляния до"
},
diff --git a/extension/_locales/bn/messages.json b/extension/_locales/bn/messages.json
index b90ea8ce..954c4f58 100644
--- a/extension/_locales/bn/messages.json
+++ b/extension/_locales/bn/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "এটি কোন ভিডিও তা বোঝা যাচ্ছে না: ভিডিওটির নিজের পৃষ্ঠা খুলে সেখানে চেষ্টা করুন"
},
+ "video_open_post": {
+ "message": "পোস্টটি খুলুন, তারপর সেখানকার বোতামটি ব্যবহার করুন"
+ },
"popup_send_to": {
"message": "ডাউনলোডগুলি এখানে পাঠান"
},
diff --git a/extension/_locales/ca/messages.json b/extension/_locales/ca/messages.json
index 343c9bdc..139b6d5e 100644
--- a/extension/_locales/ca/messages.json
+++ b/extension/_locales/ca/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "No es pot saber quin vídeo és: obriu la seva pàgina i torneu-ho a provar allà"
},
+ "video_open_post": {
+ "message": "Obre la publicació i fes servir el botó que hi ha"
+ },
"popup_send_to": {
"message": "Enviar baixades a"
},
diff --git a/extension/_locales/cs/messages.json b/extension/_locales/cs/messages.json
index 54e27b38..b14dfeb6 100644
--- a/extension/_locales/cs/messages.json
+++ b/extension/_locales/cs/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nelze zjistit, o které video jde: otevřete jeho vlastní stránku a zkuste to tam"
},
+ "video_open_post": {
+ "message": "Otevřete příspěvek a použijte tlačítko tam"
+ },
"popup_send_to": {
"message": "Odeslat stahování do"
},
diff --git a/extension/_locales/da/messages.json b/extension/_locales/da/messages.json
index 6f9c7d43..ddd387ff 100644
--- a/extension/_locales/da/messages.json
+++ b/extension/_locales/da/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Kan ikke se, hvilken video det er: Åbn videoens egen side, og prøv der"
},
+ "video_open_post": {
+ "message": "Åbn opslaget, og brug derefter knappen der"
+ },
"popup_send_to": {
"message": "Send downloads til"
},
diff --git a/extension/_locales/de/messages.json b/extension/_locales/de/messages.json
index 842b9520..71dc2691 100644
--- a/extension/_locales/de/messages.json
+++ b/extension/_locales/de/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nicht erkennbar, welches Video das ist: Öffnen Sie seine eigene Seite und versuchen Sie es dort"
},
+ "video_open_post": {
+ "message": "Beitrag öffnen, dann die Schaltfläche dort verwenden"
+ },
"popup_send_to": {
"message": "Downloads senden an"
},
diff --git a/extension/_locales/el/messages.json b/extension/_locales/el/messages.json
index 3838b1f5..b6f6bf03 100644
--- a/extension/_locales/el/messages.json
+++ b/extension/_locales/el/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Δεν είναι σαφές ποιο βίντεο είναι αυτό: ανοίξτε τη δική του σελίδα και δοκιμάστε εκεί"
},
+ "video_open_post": {
+ "message": "Ανοίξτε την ανάρτηση και μετά χρησιμοποιήστε το κουμπί εκεί"
+ },
"popup_send_to": {
"message": "Αποστολή λήψεων σε"
},
diff --git a/extension/_locales/en/messages.json b/extension/_locales/en/messages.json
index 55fac385..e9908d2a 100644
--- a/extension/_locales/en/messages.json
+++ b/extension/_locales/en/messages.json
@@ -241,6 +241,10 @@
"message": "Can't tell which video this is: open its own page and try there",
"description": "shown briefly on the download button when nothing on the page says which video the player is playing, so nothing was sent"
},
+ "video_open_post": {
+ "message": "Open the post, then use the button there",
+ "description": "shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short"
+ },
"popup_send_to": {
"message": "Send downloads to",
"description": "heading in the toolbar button's popup, above the choice of where downloads go"
diff --git a/extension/_locales/es/messages.json b/extension/_locales/es/messages.json
index 7a61d2e3..a913a880 100644
--- a/extension/_locales/es/messages.json
+++ b/extension/_locales/es/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "No se puede saber qué vídeo es: abre su propia página e inténtalo allí"
},
+ "video_open_post": {
+ "message": "Abre la publicación y usa el botón allí"
+ },
"popup_send_to": {
"message": "Enviar descargas a"
},
diff --git a/extension/_locales/es_419/messages.json b/extension/_locales/es_419/messages.json
index e711394b..ffe59500 100644
--- a/extension/_locales/es_419/messages.json
+++ b/extension/_locales/es_419/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "No se puede saber qué video es: abre su propia página e inténtalo ahí"
},
+ "video_open_post": {
+ "message": "Abre la publicación y usa el botón ahí"
+ },
"popup_send_to": {
"message": "Enviar descargas a"
},
diff --git a/extension/_locales/et/messages.json b/extension/_locales/et/messages.json
index f4103f26..8755d9de 100644
--- a/extension/_locales/et/messages.json
+++ b/extension/_locales/et/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Ei saa aru, mis video see on: ava video enda leht ja proovi seal"
},
+ "video_open_post": {
+ "message": "Ava postitus, siis kasuta sealset nuppu"
+ },
"popup_send_to": {
"message": "Saada allalaadimised asukohta"
},
diff --git a/extension/_locales/fa/messages.json b/extension/_locales/fa/messages.json
index 16fa8837..48cf0092 100644
--- a/extension/_locales/fa/messages.json
+++ b/extension/_locales/fa/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "مشخص نیست این کدام ویدیو است: صفحهٔ خود ویدیو را باز کنید و آنجا امتحان کنید"
},
+ "video_open_post": {
+ "message": "پست را باز کنید، سپس از دکمه آنجا استفاده کنید"
+ },
"popup_send_to": {
"message": "ارسال دانلودها به"
},
diff --git a/extension/_locales/fi/messages.json b/extension/_locales/fi/messages.json
index cc0f58f2..b578d38d 100644
--- a/extension/_locales/fi/messages.json
+++ b/extension/_locales/fi/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Ei selviä, mikä video tämä on: avaa videon oma sivu ja yritä siellä"
},
+ "video_open_post": {
+ "message": "Avaa julkaisu ja käytä sitten painiketta siinä"
+ },
"popup_send_to": {
"message": "Lähetä lataukset kohteeseen"
},
diff --git a/extension/_locales/fil/messages.json b/extension/_locales/fil/messages.json
index 173f64e8..8c440c52 100644
--- a/extension/_locales/fil/messages.json
+++ b/extension/_locales/fil/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Hindi matukoy kung aling video ito: buksan ang sarili nitong page at subukan doon"
},
+ "video_open_post": {
+ "message": "Buksan ang post, pagkatapos ay gamitin ang button doon"
+ },
"popup_send_to": {
"message": "Ipadala ang mga download sa"
},
diff --git a/extension/_locales/fr/messages.json b/extension/_locales/fr/messages.json
index 1a26657f..73e6d10d 100644
--- a/extension/_locales/fr/messages.json
+++ b/extension/_locales/fr/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Impossible de savoir de quelle vidéo il s'agit : ouvrez sa propre page et réessayez"
},
+ "video_open_post": {
+ "message": "Ouvrez la publication, puis utilisez le bouton"
+ },
"popup_send_to": {
"message": "Envoyer les téléchargements vers"
},
diff --git a/extension/_locales/gu/messages.json b/extension/_locales/gu/messages.json
index 89fa2c61..fa710031 100644
--- a/extension/_locales/gu/messages.json
+++ b/extension/_locales/gu/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "આ કયો વીડિયો છે તે જાણી શકાતું નથી: તેનું પોતાનું પેજ ખોલીને ત્યાં પ્રયાસ કરો"
},
+ "video_open_post": {
+ "message": "પોસ્ટ ખોલો, પછી ત્યાં બટનનો ઉપયોગ કરો"
+ },
"popup_send_to": {
"message": "ડાઉનલોડ્સ અહીં મોકલો"
},
diff --git a/extension/_locales/he/messages.json b/extension/_locales/he/messages.json
index c28fbe1f..f17ccd07 100644
--- a/extension/_locales/he/messages.json
+++ b/extension/_locales/he/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "לא ניתן לדעת איזה סרטון זה: פתחו את הדף שלו ונסו שם"
},
+ "video_open_post": {
+ "message": "פתח את הפוסט, ואז השתמש בלחצן שם"
+ },
"popup_send_to": {
"message": "שלח הורדות אל"
},
diff --git a/extension/_locales/hi/messages.json b/extension/_locales/hi/messages.json
index e8d8bbb5..f45b8f89 100644
--- a/extension/_locales/hi/messages.json
+++ b/extension/_locales/hi/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "पता नहीं चल पा रहा कि यह कौन-सा वीडियो है: इसका अपना पेज खोलकर वहाँ आज़माएँ"
},
+ "video_open_post": {
+ "message": "पोस्ट खोलें, फिर वहां बटन का उपयोग करें"
+ },
"popup_send_to": {
"message": "डाउनलोड यहां भेजें"
},
diff --git a/extension/_locales/hr/messages.json b/extension/_locales/hr/messages.json
index 83fa9a85..061f5057 100644
--- a/extension/_locales/hr/messages.json
+++ b/extension/_locales/hr/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nije moguće utvrditi koji je ovo videozapis: otvorite njegovu stranicu i pokušajte ondje"
},
+ "video_open_post": {
+ "message": "Otvorite objavu, a zatim upotrijebite gumb tamo"
+ },
"popup_send_to": {
"message": "Šalji preuzimanja na"
},
diff --git a/extension/_locales/hu/messages.json b/extension/_locales/hu/messages.json
index 5b6fd451..33758114 100644
--- a/extension/_locales/hu/messages.json
+++ b/extension/_locales/hu/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nem állapítható meg, melyik videóról van szó: nyissa meg a saját oldalát, és próbálja ott"
},
+ "video_open_post": {
+ "message": "Nyissa meg a bejegyzést, majd használja az ottani gombot"
+ },
"popup_send_to": {
"message": "Letöltések küldése ide"
},
diff --git a/extension/_locales/id/messages.json b/extension/_locales/id/messages.json
index a46acecf..508159ba 100644
--- a/extension/_locales/id/messages.json
+++ b/extension/_locales/id/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Tidak bisa diketahui video mana ini: buka halamannya sendiri dan coba di sana"
},
+ "video_open_post": {
+ "message": "Buka postingan, lalu gunakan tombol di sana"
+ },
"popup_send_to": {
"message": "Kirim unduhan ke"
},
diff --git a/extension/_locales/it/messages.json b/extension/_locales/it/messages.json
index f731c780..4f80ef07 100644
--- a/extension/_locales/it/messages.json
+++ b/extension/_locales/it/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Impossibile capire di quale video si tratta: apri la sua pagina e riprova da lì"
},
+ "video_open_post": {
+ "message": "Apri il post, poi usa il pulsante lì"
+ },
"popup_send_to": {
"message": "Invia i download a"
},
diff --git a/extension/_locales/ja/messages.json b/extension/_locales/ja/messages.json
index f02f1456..c59dbd08 100644
--- a/extension/_locales/ja/messages.json
+++ b/extension/_locales/ja/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "どの動画か判別できません。動画自体のページを開いて、そこでお試しください"
},
+ "video_open_post": {
+ "message": "投稿を開いて、そこにあるボタンを使用してください"
+ },
"popup_send_to": {
"message": "ダウンロードの送信先"
},
diff --git a/extension/_locales/kn/messages.json b/extension/_locales/kn/messages.json
index 964f9a84..1ef1a2ef 100644
--- a/extension/_locales/kn/messages.json
+++ b/extension/_locales/kn/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "ಇದು ಯಾವ ವೀಡಿಯೊ ಎಂದು ತಿಳಿಯುತ್ತಿಲ್ಲ: ಅದರ ಸ್ವಂತ ಪುಟವನ್ನು ತೆರೆದು ಅಲ್ಲಿ ಪ್ರಯತ್ನಿಸಿ"
},
+ "video_open_post": {
+ "message": "ಪೋಸ್ಟ್ ತೆರೆಯಿರಿ, ನಂತರ ಅಲ್ಲಿರುವ ಬಟನ್ ಬಳಸಿ"
+ },
"popup_send_to": {
"message": "ಡೌನ್‌ಲೋಡ್‌ಗಳನ್ನು ಇಲ್ಲಿಗೆ ಕಳುಹಿಸಿ"
},
diff --git a/extension/_locales/ko/messages.json b/extension/_locales/ko/messages.json
index 86d60535..4ade4ac4 100644
--- a/extension/_locales/ko/messages.json
+++ b/extension/_locales/ko/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "어떤 비디오인지 알 수 없습니다. 비디오 자체 페이지를 열어 다시 시도하세요"
},
+ "video_open_post": {
+ "message": "게시물을 열고 버튼을 사용하세요"
+ },
"popup_send_to": {
"message": "다운로드 보낼 위치"
},
diff --git a/extension/_locales/lt/messages.json b/extension/_locales/lt/messages.json
index 60f0f6df..17ef955b 100644
--- a/extension/_locales/lt/messages.json
+++ b/extension/_locales/lt/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Neaišku, kuris tai vaizdo įrašas: atidarykite jo paties puslapį ir bandykite ten"
},
+ "video_open_post": {
+ "message": "Atidarykite įrašą, tada naudokite ten esantį mygtuką"
+ },
"popup_send_to": {
"message": "Siųsti atsisiuntimus į"
},
diff --git a/extension/_locales/lv/messages.json b/extension/_locales/lv/messages.json
index 1957baf0..cd304555 100644
--- a/extension/_locales/lv/messages.json
+++ b/extension/_locales/lv/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nevar noteikt, kurš video tas ir: atveriet tā lapu un mēģiniet tur"
},
+ "video_open_post": {
+ "message": "Atveriet ierakstu, tad izmantojiet pogu tur"
+ },
"popup_send_to": {
"message": "Sūtīt lejupielādes uz"
},
diff --git a/extension/_locales/ml/messages.json b/extension/_locales/ml/messages.json
index dab8c39d..04c87d64 100644
--- a/extension/_locales/ml/messages.json
+++ b/extension/_locales/ml/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "ഇത് ഏത് വീഡിയോ ആണെന്ന് അറിയാൻ കഴിയുന്നില്ല: അതിന്റെ സ്വന്തം പേജ് തുറന്ന് അവിടെ ശ്രമിക്കുക"
},
+ "video_open_post": {
+ "message": "പോസ്റ്റ് തുറക്കുക, എന്നിട്ട് അവിടെയുള്ള ബട്ടൺ ഉപയോഗിക്കുക"
+ },
"popup_send_to": {
"message": "ഡൗൺലോഡുകൾ ഇതിലേക്ക് അയയ്ക്കുക"
},
diff --git a/extension/_locales/mr/messages.json b/extension/_locales/mr/messages.json
index 161a08fd..1e4c8e14 100644
--- a/extension/_locales/mr/messages.json
+++ b/extension/_locales/mr/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "हा कोणता व्हिडिओ आहे ते कळत नाही: त्याचे स्वतःचे पृष्ठ उघडून तिथे प्रयत्न करा"
},
+ "video_open_post": {
+ "message": "पोस्ट उघडा, नंतर तेथील बटण वापरा"
+ },
"popup_send_to": {
"message": "डाउनलोड्स येथे पाठवा"
},
diff --git a/extension/_locales/ms/messages.json b/extension/_locales/ms/messages.json
index f477f41c..21330d4f 100644
--- a/extension/_locales/ms/messages.json
+++ b/extension/_locales/ms/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Tidak dapat dipastikan video yang mana ini: buka halamannya sendiri dan cuba di sana"
},
+ "video_open_post": {
+ "message": "Buka siaran, kemudian gunakan butang di sana"
+ },
"popup_send_to": {
"message": "Hantar muat turun ke"
},
diff --git a/extension/_locales/nl/messages.json b/extension/_locales/nl/messages.json
index c40453f3..b61dde1b 100644
--- a/extension/_locales/nl/messages.json
+++ b/extension/_locales/nl/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Niet duidelijk welke video dit is: open de eigen pagina van de video en probeer het daar"
},
+ "video_open_post": {
+ "message": "Open het bericht en gebruik dan de knop daar"
+ },
"popup_send_to": {
"message": "Downloads verzenden naar"
},
diff --git a/extension/_locales/no/messages.json b/extension/_locales/no/messages.json
index 6d513456..d6b4a2f6 100644
--- a/extension/_locales/no/messages.json
+++ b/extension/_locales/no/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Kan ikke se hvilken video dette er: åpne videoens egen side og prøv der"
},
+ "video_open_post": {
+ "message": "Åpne innlegget, og bruk deretter knappen der"
+ },
"popup_send_to": {
"message": "Send nedlastinger til"
},
diff --git a/extension/_locales/pl/messages.json b/extension/_locales/pl/messages.json
index 2958fbfc..74247876 100644
--- a/extension/_locales/pl/messages.json
+++ b/extension/_locales/pl/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nie można ustalić, który to film: otwórz jego własną stronę i spróbuj tam"
},
+ "video_open_post": {
+ "message": "Otwórz wpis, a następnie użyj przycisku"
+ },
"popup_send_to": {
"message": "Wyślij pobrane pliki do"
},
diff --git a/extension/_locales/pt_BR/messages.json b/extension/_locales/pt_BR/messages.json
index 4c664305..ea4f13d8 100644
--- a/extension/_locales/pt_BR/messages.json
+++ b/extension/_locales/pt_BR/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Não dá para saber qual é este vídeo: abra a página dele e tente lá"
},
+ "video_open_post": {
+ "message": "Abra a publicação e use o botão lá"
+ },
"popup_send_to": {
"message": "Enviar downloads para"
},
diff --git a/extension/_locales/pt_PT/messages.json b/extension/_locales/pt_PT/messages.json
index fdd92977..89d74b4a 100644
--- a/extension/_locales/pt_PT/messages.json
+++ b/extension/_locales/pt_PT/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Não é possível saber que vídeo é este: abra a página do próprio vídeo e tente lá"
},
+ "video_open_post": {
+ "message": "Abra a publicação e use o botão lá"
+ },
"popup_send_to": {
"message": "Enviar downloads para"
},
diff --git a/extension/_locales/ro/messages.json b/extension/_locales/ro/messages.json
index ef507e90..8126cc3e 100644
--- a/extension/_locales/ro/messages.json
+++ b/extension/_locales/ro/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nu se poate stabili ce videoclip este: deschideți pagina proprie a videoclipului și încercați acolo"
},
+ "video_open_post": {
+ "message": "Deschideți postarea, apoi utilizați butonul de acolo"
+ },
"popup_send_to": {
"message": "Trimite descărcările la"
},
diff --git a/extension/_locales/ru/messages.json b/extension/_locales/ru/messages.json
index 7c0bb222..2d3e408a 100644
--- a/extension/_locales/ru/messages.json
+++ b/extension/_locales/ru/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Не удалось определить, что это за видео: откройте его страницу и попробуйте там"
},
+ "video_open_post": {
+ "message": "Откройте публикацию, затем используйте кнопку на этой странице"
+ },
"popup_send_to": {
"message": "Отправлять загрузки в"
},
diff --git a/extension/_locales/sk/messages.json b/extension/_locales/sk/messages.json
index 8b11e5f6..f3677dbb 100644
--- a/extension/_locales/sk/messages.json
+++ b/extension/_locales/sk/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Nedá sa zistiť, o ktoré video ide: otvorte jeho vlastnú stránku a skúste to tam"
},
+ "video_open_post": {
+ "message": "Otvorte príspevok a potom použite tlačidlo na tej stránke"
+ },
"popup_send_to": {
"message": "Odoslať sťahovania do"
},
diff --git a/extension/_locales/sl/messages.json b/extension/_locales/sl/messages.json
index e986758e..6d2b0e72 100644
--- a/extension/_locales/sl/messages.json
+++ b/extension/_locales/sl/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Ni mogoče ugotoviti, kateri videoposnetek je to: odprite njegovo stran in poskusite tam"
},
+ "video_open_post": {
+ "message": "Odprite objavo, nato uporabite gumb tam"
+ },
"popup_send_to": {
"message": "Pošlji prenose v"
},
diff --git a/extension/_locales/sr/messages.json b/extension/_locales/sr/messages.json
index 00e8c14f..3de1981b 100644
--- a/extension/_locales/sr/messages.json
+++ b/extension/_locales/sr/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Не може да се утврди који је ово видео: отворите његову страницу и покушајте тамо"
},
+ "video_open_post": {
+ "message": "Отворите објаву, па користите дугме тамо"
+ },
"popup_send_to": {
"message": "Шаљи преузимања на"
},
diff --git a/extension/_locales/sv/messages.json b/extension/_locales/sv/messages.json
index 90c172d5..bf6c61a6 100644
--- a/extension/_locales/sv/messages.json
+++ b/extension/_locales/sv/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Det går inte att avgöra vilken video det här är: öppna videons egen sida och försök där"
},
+ "video_open_post": {
+ "message": "Öppna inlägget och använd sedan knappen där"
+ },
"popup_send_to": {
"message": "Skicka nedladdningar till"
},
diff --git a/extension/_locales/ta/messages.json b/extension/_locales/ta/messages.json
index 68bf9efc..c56c5238 100644
--- a/extension/_locales/ta/messages.json
+++ b/extension/_locales/ta/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "இது எந்த வீடியோ என்று தெரியவில்லை: அதன் சொந்தப் பக்கத்தைத் திறந்து அங்கே முயலுங்கள்"
},
+ "video_open_post": {
+ "message": "பதிவைத் திறந்து, அங்குள்ள பொத்தானைப் பயன்படுத்தவும்"
+ },
"popup_send_to": {
"message": "பதிவிறக்கங்களை இதற்கு அனுப்பவும்"
},
diff --git a/extension/_locales/te/messages.json b/extension/_locales/te/messages.json
index fa0b36d5..09df4999 100644
--- a/extension/_locales/te/messages.json
+++ b/extension/_locales/te/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "ఇది ఏ వీడియోనో తెలియడం లేదు: దాని స్వంత పేజీని తెరిచి అక్కడ ప్రయత్నించండి"
},
+ "video_open_post": {
+ "message": "పోస్ట్‌ను తెరవండి, ఆపై అక్కడ బటన్‌ను ఉపయోగించండి"
+ },
"popup_send_to": {
"message": "డౌన్‌లోడ్‌లను దీనికి పంపండి"
},
diff --git a/extension/_locales/th/messages.json b/extension/_locales/th/messages.json
index c6524f18..2e15a25f 100644
--- a/extension/_locales/th/messages.json
+++ b/extension/_locales/th/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "ไม่สามารถระบุได้ว่าเป็นวิดีโอใด: เปิดหน้าของวิดีโอนั้นแล้วลองอีกครั้งที่นั่น"
},
+ "video_open_post": {
+ "message": "เปิดโพสต์ แล้วใช้ปุ่มที่นั่น"
+ },
"popup_send_to": {
"message": "ส่งการดาวน์โหลดไปยัง"
},
diff --git a/extension/_locales/tr/messages.json b/extension/_locales/tr/messages.json
index 4ea8e896..b59d4203 100644
--- a/extension/_locales/tr/messages.json
+++ b/extension/_locales/tr/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Bunun hangi video olduğu anlaşılamıyor: videonun kendi sayfasını açıp orada deneyin"
},
+ "video_open_post": {
+ "message": "Gönderiyi açın, sonra oradaki düğmeyi kullanın"
+ },
"popup_send_to": {
"message": "İndirmeleri şuraya gönder"
},
diff --git a/extension/_locales/uk/messages.json b/extension/_locales/uk/messages.json
index afe12832..2f4c9ff5 100644
--- a/extension/_locales/uk/messages.json
+++ b/extension/_locales/uk/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Не вдалося визначити, що це за відео: відкрийте його власну сторінку і спробуйте там"
},
+ "video_open_post": {
+ "message": "Відкрийте допис, потім скористайтеся кнопкою там"
+ },
"popup_send_to": {
"message": "Надсилати завантаження до"
},
diff --git a/extension/_locales/vi/messages.json b/extension/_locales/vi/messages.json
index 37754ef5..e68648a9 100644
--- a/extension/_locales/vi/messages.json
+++ b/extension/_locales/vi/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "Không xác định được đây là video nào: hãy mở trang riêng của video và thử ở đó"
},
+ "video_open_post": {
+ "message": "Mở bài đăng, sau đó dùng nút ở đó"
+ },
"popup_send_to": {
"message": "Gửi tải xuống đến"
},
diff --git a/extension/_locales/zh_CN/messages.json b/extension/_locales/zh_CN/messages.json
index 97b3a366..6da321db 100644
--- a/extension/_locales/zh_CN/messages.json
+++ b/extension/_locales/zh_CN/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "无法判断这是哪个视频:请打开该视频自己的页面再试"
},
+ "video_open_post": {
+ "message": "打开帖子,然后使用那里的按钮"
+ },
"popup_send_to": {
"message": "将下载发送到"
},
diff --git a/extension/_locales/zh_TW/messages.json b/extension/_locales/zh_TW/messages.json
index 294bf6a6..09af2bc2 100644
--- a/extension/_locales/zh_TW/messages.json
+++ b/extension/_locales/zh_TW/messages.json
@@ -188,6 +188,9 @@
"video_unnamed": {
"message": "無法判斷這是哪部影片:請開啟該影片本身的頁面再試一次"
},
+ "video_open_post": {
+ "message": "開啟貼文,然後使用該處的按鈕"
+ },
"popup_send_to": {
"message": "傳送下載項目至"
},
diff --git a/extension/background.js b/extension/background.js
index 83fc458c..0520b977 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -1953,18 +1953,29 @@ async function playingVideo(sender, at) {
}
}
+// A site's name for comparing two addresses: without its www., mobile or other front host
+// (old.reddit.com is reddit.com), its short-link hosts as the site (fb.watch is Facebook's,
+// twitter.com is x.com).
+const SITE_ALIASES = { "fb.watch": "facebook.com", "twitter.com": "x.com" };
+function siteKey(url) {
+ const host = siteOf(url).replace(/^(www|m|mobile|web|touch|old|new|sh|music|geo|player)\./, "");
+ return SITE_ALIASES[host] || host;
+}
+
// The address the app looks a video up by: the one video's, never a list's. On YouTube that is
-// what the player plays; else the address the content script named (video.js videoPage), if it is
-// this site's (www, m. and music. are the same site); else the page's. "" on a YouTube page where
-// nothing names the video: its own address is a list (the home page, a channel) to yt-dlp.
+// what the player plays; else the address the content script named (video.js videoPage: the post
+// the video sits in on a feed, #689), if it is this site's; else the page's. "" where nothing
+// names the video: on YouTube (its own address is a list, the home page, a channel, to yt-dlp),
+// and on a feed (`url` null: video.js found the page is many videos', LinkedIn's or Facebook's
+// home, and no post around the video naming it).
async function videoAddress(m, page, sender) {
const named = typeof m.url === "string" && /^https?:/i.test(m.url) ? m.url : "";
if (isYouTube(page)) {
const playing = await playingVideo(sender, m.at);
return playing || (isYouTube(named) ? named : "");
}
- const site = (u) => siteOf(u).replace(/^(www|m|music)\./, "");
- return named && site(named) === site(page) ? named : page;
+ if (m.url === null) return "";
+ return named && siteKey(named) === siteKey(page) ? named : page;
}
async function pageMessage(m, sender) {
@@ -1993,16 +2004,25 @@ async function pageMessage(m, sender) {
}
if (m.type === "video" && page) {
await mediaBack;
- const src = typeof m.src === "string" && /^https?:/i.test(m.src) ? m.src : await streamFor(sender);
- // A playing stream or file of its own still goes as `src`, with the page for its Referer.
const named = await videoAddress(m, page, sender);
- if (!named && !src) return { ok: false, why: "unnamed" };
+ const youtube = isYouTube(page);
+ // The post a video in a feed sits in (#689): the app looks that up. Nothing names it (`url`
+ // null): the feed is never sent as its page, only the video's own plain file, if it has one.
+ // Either way no stream the tab loaded goes with it (a feed's first stream may be another
+ // video's), nor the page's title (the feed's).
+ const post = !youtube && Boolean(named) && named !== page;
+ const feed = !youtube && m.url === null;
+ // The video's own file (video.js leaves it out beside a post a big site's reader knows), or a
+ // stream it plays, still goes as `src`, with the page for its Referer.
+ const file = typeof m.src === "string" && /^https?:/i.test(m.src) ? m.src : "";
+ const src = file || (post || feed ? "" : await streamFor(sender));
+ if (!named && !src) return { ok: false, why: youtube ? "unnamed" : "feed" };
const own = named || page;
const reply = await native({
video: true,
url: own,
...(src ? { src } : {}),
- title: typeof m.title === "string" ? m.title.slice(0, 300) : "",
+ title: typeof m.title === "string" && !post && !feed ? m.title.slice(0, 300) : "",
referrer: tab.url && tab.url !== own ? tab.url : "",
// The cookies of what yt-dlp is given (the app files them under its host): the stream's
// own server may not be the page's, and the page's cookies are not for it.
diff --git a/extension/video.js b/extension/video.js
index cb012214..2813b7a5 100644
--- a/extension/video.js
+++ b/extension/video.js
@@ -39,6 +39,7 @@
video_off: "The download button is off on this site",
video_drm: "Protected video: it can't be saved",
video_unnamed: "Can't tell which video this is: open its own page and try there",
+ video_open_post: "Open the post, then use the button there",
video_drag: "Drag to move it along the video's edge",
};
// To the background. After the extension was updated or removed, this page's copy of the script
@@ -65,6 +66,15 @@
// itself never goes to the app then (a channel is a whole list to yt-dlp): the background asks
// the player what it plays, in the page's own world (background.js playingVideo), and this
// answer is only what it falls back on.
+ //
+ // Elsewhere the same, generalised (#689, #643): a video in a feed (LinkedIn's, Facebook's, X's,
+ // Reddit's…) sits in the post it belongs to, and that post names its own address (its
+ // permalink, its timestamp link, the post id the page gives it); `ownAddress` finds it the way
+ // a person would. Null there too when nothing names it: a feed's address is never the video's.
+ //
+ // ---- the video's own address: from here to its end mark, run as is on saved pages by
+ // tools/extension/test.mjs (only `location`, `document` and the elements' parentElement,
+ // parentNode.host, localName, getAttribute, querySelector(All) with simple selectors).
function videoPage(v) {
const watch = (id) =>
/^[\w-]+$/.test(id || "") ? `https://www.youtube.com/watch?v=${id}` : null;
@@ -114,12 +124,351 @@
// A page that plays a video and names none: not the video's page, so not the app's.
return null;
}
+ return ownAddress(v, url);
} catch {
// Not an address this page can reason about: its own follows.
}
return location.href;
}
+ // Up from a node: its parent, or the element whose shadow root holds it (Reddit's player keeps
+ // its <video> in one).
+ const upFrom = (n) => n.parentElement || (n.parentNode && n.parentNode.host) || null;
+
+ // `href` as an address (relative to the page), or null.
+ function linkTo(href) {
+ try {
+ return href ? new URL(href, location.href) : null;
+ } catch {
+ return null;
+ }
+ }
+
+ // The nearest container around the video that names its post: `read(node)` gives what a
+ // container names, { sure, maybe } (Maps of an id to the address it stands for), `sure` the
+ // post's or the video's own ids, `maybe` weaker ones (a link that may be the post's). The
+ // innermost container naming anything decides, and only when it names exactly one: one naming
+ // two has taken in the next post or the page's column, and a wrong video is worse than none.
+ // The walk ends at the page's column (a feed, role="feed") and at a container holding another
+ // video: from there up, what it names may be that one's (a post naming nothing next to one
+ // that names its own). A page that breaks a reader's expectations names nothing (never the
+ // page's own address instead).
+ function nearest(v, read) {
+ try {
+ for (let node = v, i = 0; node && i < 16; i += 1, node = upFrom(node)) {
+ if (node.localName === "body" || node.localName === "html") break;
+ if (node !== v && (node.getAttribute?.("role") === "feed" || manyVideos(node))) break;
+ const { sure, maybe } = read(node);
+ if (sure.size) return sure.size === 1 ? [...sure.values()][0] : null;
+ if (maybe.size) return maybe.size === 1 ? [...maybe.values()][0] : null;
+ }
+ } catch {
+ // Nothing named.
+ }
+ return null;
+ }
+
+ const decoded = (s) => {
+ try {
+ return decodeURIComponent(s);
+ } catch {
+ return s;
+ }
+ };
+
+ // The links in a container (the container itself when it is one), as addresses, with whether
+ // each holds a <time> (a timestamp link: a post's own permalink).
+ function linksIn(node, sel = "a[href]") {
+ const found = [];
+ const own = node.localName === "a" ? [node] : [];
+ for (const a of [...own, ...(node.querySelectorAll ? node.querySelectorAll(sel) : [])]) {
+ const u = linkTo(a.getAttribute && a.getAttribute("href"));
+ if (u && /^https?:$/.test(u.protocol)) found.push({ u, time: Boolean(a.querySelector && a.querySelector("time")) });
+ }
+ return found;
+ }
+
+ // The page's site without its www. or mobile host (old.reddit.com is reddit.com).
+ const siteName = (host) => host.replace(/^(www|m|mobile|web|touch|old|new|sh|music|geo|player)\./, "");
+
+ // A video's own address on this page, by site; the page's own when it is that one video's page;
+ // null when the page is a feed, a list or a search and nothing names the video.
+ function ownAddress(v, url) {
+ const site = SITES.find((s) => s.hosts.test(siteName(url.hostname)));
+ if (site) {
+ // A site's own player in another page (an embed) is its video's page: its address holds
+ // what the links around it may lack (a private video's key).
+ if (site.embed && site.embed(url)) return location.href;
+ const found = nearest(v, (node) => site.read(node, url));
+ if (found) return found;
+ return site.own(url) ? location.href : null;
+ }
+ // Any other site: a player embedded in another page (its own frame), or the one video of its
+ // page, is its video's own page, as before.
+ if (framed() || (!inFeed(v) && document.querySelectorAll?.("video").length <= 1)) return location.href;
+ // A page of many videos: the post around this one, when one names it; else the page in
+ // general (an article with two players is still theirs to yt-dlp), but never a feed's
+ // (role="feed") or a page whose address is a feed's, a home's or a search's.
+ const found = nearest(v, (node) => genericRead(node, url));
+ if (found) return found;
+ return inFeed(v) || FEED_PATH.test(url.pathname) ? null : location.href;
+ }
+
+ // A feed's, a home page's, a search's address: many videos, none of them the page's.
+ const FEED_PATH = /^\/(?:$|home\/?$|feed|explore|search|discover|trending|popular|latest|timeline|for-?you|following|watch\/?$)/i;
+ // The video sits in a feed (role="feed": Mastodon's, the accessible feeds).
+ function inFeed(v) {
+ for (let node = upFrom(v); node; node = upFrom(node)) if (node.getAttribute?.("role") === "feed") return true;
+ return false;
+ }
+
+ const framed = () => {
+ try {
+ return window.top !== window;
+ } catch {
+ return false;
+ }
+ };
+ const manyVideos = (node) => Boolean(node.querySelectorAll && node.querySelectorAll("video").length > 1);
+
+ // Any other site: a link of this site that has a post's or a video's shape, or that holds the
+ // post's timestamp (Mastodon's, a forum's), and isn't the page itself.
+ function genericRead(node, url) {
+ const sure = new Map();
+ const maybe = new Map();
+ const here = `${url.origin}${url.pathname}${url.search}`;
+ for (const { u, time } of linksIn(node)) {
+ if (siteName(u.hostname) !== siteName(url.hostname)) continue;
+ const address = `${u.origin}${u.pathname}${u.search}`;
+ if (address === here) continue;
+ if (time) sure.set(address, address);
+ else if (/\/(?:status|statuses|videos?|watch|posts?|p|reels?|comments|clips?|v)(?:\/|\?|$)/i.test(u.pathname + (u.search ? "?" : ""))) maybe.set(address, address);
+ }
+ const permalink = linkTo(node.getAttribute?.("data-permalink"));
+ if (permalink && siteName(permalink.hostname) === siteName(url.hostname)) sure.set(permalink.href, permalink.href);
+ return { sure, maybe };
+ }
+
+ // LinkedIn's comment tools' key: base64url of a protobuf naming the post (field 1 its
+ // activity, field 2 its ugcPost), whose one field is the id as a zigzag varint. [kind, id] or
+ // null.
+ function commentToolsUrn(key) {
+ try {
+ const bytes = [...atob(key.replace(/-/g, "+").replace(/_/g, "/"))].map((c) => c.charCodeAt(0));
+ const kind = { 10: "activity", 18: "ugcPost" }[bytes[0]];
+ if (!kind || bytes[1] !== bytes.length - 2 || bytes[2] !== 8) return null;
+ let n = 0n;
+ let shift = 0n;
+ for (let i = 3; i < bytes.length; i += 1) {
+ n |= BigInt(bytes[i] & 0x7f) << shift;
+ shift += 7n;
+ if (!(bytes[i] & 0x80)) {
+ if (i !== bytes.length - 1 || n & 1n) return null;
+ const id = String(n >> 1n);
+ return /^\d{15,20}$/.test(id) ? [kind, id] : null;
+ }
+ }
+ } catch {
+ // Not such a key.
+ }
+ return null;
+ }
+
+ // The big sites with feeds: what names a post in their pages, the address yt-dlp reads it by
+ // (its extractors' own address shapes), and their pages that are one video's own.
+ const SITES = [
+ {
+ // A post's container carries its URN (data-urn, data-id); its links name it too. yt-dlp's
+ // LinkedIn extractor reads /feed/update/urn:li:activity:<id>/ (and /posts/…); a post known
+ // only by its ugcPost URN goes as /feed/update/urn:li:ugcPost:<id>/, the same public page,
+ // where yt-dlp's generic reader finds the video.
+ //
+ // LinkedIn's feed since 2026 (its server-driven app: role="listitem" posts in a
+ // data-testid="mainFeed" list) names a post nowhere near its video, only in the keys of
+ // the post's parts (componentkey): its comments' URNs (urn:li:comment:(activity:<id>,…)),
+ // its text's translation key (…userGeneratedContentId=<id>…, its ugcPost), and its comment
+ // tools' key, <base64>-replaceableCommentTools, a protobuf of the post's URN (field 1 its
+ // activity, field 2 its ugcPost, the id zigzag-encoded). Checked against a signed-in feed:
+ // each decodes to the post its comments name, and each ugcPost's page plays the video.
+ hosts: /^linkedin\.com$/,
+ embed: (u) => /^\/embed\//.test(u.pathname),
+ read(node) {
+ const sure = new Map();
+ const maybe = new Map();
+ const post = (kind, id) =>
+ (kind === "activity" ? sure : maybe).set(`${kind}:${id}`, `https://www.linkedin.com/feed/update/urn:li:${kind}:${id}/`);
+ const add = (s) => {
+ s = String(s || "");
+ for (const m of s.matchAll(/urn:li:(?:comment:\()?(activity|ugcPost|share):(\d{6,})/g)) post(m[1], m[2]);
+ for (const m of s.matchAll(/\b(userGeneratedContent|share|activity)Id=(\d{6,})/g)) post(m[1] === "userGeneratedContent" ? "ugcPost" : m[1], m[2]);
+ // A post's public address: /posts/<who>_<words>-activity-<id>-<four>.
+ const p = /\/posts\/[^/?#]*-(activity|ugcPost)-(\d{6,})-\w{4}/.exec(s);
+ if (p) post(p[1], p[2]);
+ const k = /^([\w-]{12,40})-replaceableCommentTools/.exec(s);
+ const urn = k && commentToolsUrn(k[1]);
+ if (urn) post(urn[0], urn[1]);
+ };
+ // The container's own attributes, whatever their names (the page renames them), and its
+ // insides' known ones.
+ for (const a of node.attributes || []) add(a.value);
+ for (const el of node.querySelectorAll?.("[data-urn], [data-id], [data-activity-urn], [data-entity-urn], [componentkey]") || []) {
+ for (const a of ["data-urn", "data-id", "data-activity-urn", "data-entity-urn", "componentkey"]) add(el.getAttribute?.(a));
+ }
+ for (const { u } of linksIn(node)) if (/linkedin\.com$/.test(u.hostname)) add(decoded(u.pathname));
+ return { sure, maybe };
+ },
+ own: (u) => /^\/(?:feed\/update\/urn:li:|posts\/|embed\/feed\/update\/|events\/|learning\/)/.test(u.pathname),
+ },
+ {
+ // A video's own links (a reel, a watch page, a page's video, data-video-id) before a post's
+ // (its permalink); fb.watch short links as they are (they lead to the video's page).
+ hosts: /^(?:[\w-]+\.)?facebook\.com$/,
+ embed: (u) => /^\/plugins\/video\.php$/.test(u.pathname),
+ read(node) {
+ const sure = new Map();
+ const maybe = new Map();
+ const video = (id) => sure.set(`v:${id}`, `https://www.facebook.com/watch/?v=${id}`);
+ const id = node.getAttribute?.("data-video-id");
+ if (/^\d{6,}$/.test(id || "")) video(id);
+ for (const el of node.querySelectorAll?.("[data-video-id]") || []) {
+ const d = el.getAttribute("data-video-id");
+ if (/^\d{6,}$/.test(d || "")) video(d);
+ }
+ for (const { u } of linksIn(node)) {
+ if (u.hostname === "fb.watch") {
+ const code = u.pathname.split("/")[1];
+ if (/^\w+$/.test(code || "")) sure.set(`w:${code}`, `https://fb.watch/${code}/`);
+ continue;
+ }
+ if (!/(^|\.)facebook\.com$/.test(u.hostname)) continue;
+ const p = u.pathname;
+ let m;
+ if ((m = /^\/reel\/(\d+)/.exec(p))) sure.set(`v:${m[1]}`, `https://www.facebook.com/reel/${m[1]}/`);
+ else if (/^\/watch\/?$/.test(p) && /^\d+$/.test(u.searchParams.get("v") || "")) video(u.searchParams.get("v"));
+ else if (/^\/video\.php$/.test(p) && /^\d+$/.test(u.searchParams.get("v") || "")) video(u.searchParams.get("v"));
+ else if ((m = /^\/[^/]+\/videos\/(?:[^/]+\/)?(\d+)/.exec(p))) video(m[1]);
+ else if ((m = /^\/([^/]+)\/posts\/(pfbid\w+|\d+)/.exec(p))) maybe.set(`p:${m[2]}`, `https://www.facebook.com/${m[1]}/posts/${m[2]}`);
+ else if ((m = /^\/groups\/([^/]+)\/(?:permalink|posts)\/(\d+)/.exec(p))) maybe.set(`p:${m[2]}`, `https://www.facebook.com/groups/${m[1]}/posts/${m[2]}/`);
+ else if (/^\/(?:permalink|story)\.php$/.test(p) && /^(?:pfbid\w+|\d+)$/.test(u.searchParams.get("story_fbid") || "")) {
+ const story = u.searchParams.get("story_fbid");
+ const owner = u.searchParams.get("id");
+ maybe.set(`p:${story}`, `https://www.facebook.com/permalink.php?story_fbid=${story}${/^\d+$/.test(owner || "") ? `&id=${owner}` : ""}`);
+ }
+ }
+ return { sure, maybe };
+ },
+ own: (u) =>
+ /^\/(?:reel\/\d|watch\/?$|video\.php$|[^/]+\/videos\/|[^/]+\/posts\/|permalink\.php$|story\.php$|groups\/[^/]+\/(?:permalink|posts)\/|plugins\/video\.php$|share\/[vrp]\/)/.test(u.pathname) &&
+ (!/^\/watch\/?$/.test(u.pathname) || /^\d+$/.test(u.searchParams.get("v") || "")),
+ },
+ {
+ // A post's timestamp links to it (/<user>/status/<id>); other status links (a quoted post,
+ // its photos and its analytics) count only when there is no timestamp.
+ hosts: /^(?:x|twitter)\.com$/,
+ read(node) {
+ const sure = new Map();
+ const maybe = new Map();
+ for (const { u, time } of linksIn(node, 'a[href*="/status/"]')) {
+ const m = /^\/(\w{1,15}|i\/web)\/status\/(\d+)/.exec(u.pathname);
+ if (!m || !/(^|\.)(?:x|twitter)\.com$/.test(u.hostname)) continue;
+ (time ? sure : maybe).set(m[2], `${location.origin}/${m[1]}/status/${m[2]}`);
+ }
+ return { sure, maybe };
+ },
+ own: (u) => /^\/(?:\w{1,15}|i\/web)\/status\/\d+|^\/i\/(?:broadcasts|spaces)\//.test(u.pathname),
+ },
+ {
+ // A post's links (/p/<code>/, a reel's /reel/<code>/): its timestamp, its comments.
+ hosts: /^instagram\.com$/,
+ embed: (u) => /\/embed\/?$/.test(u.pathname),
+ read(node) {
+ const sure = new Map();
+ for (const { u } of linksIn(node)) {
+ // Not a reel's sound (/reels/audio/<id>/, the other reels using it).
+ const m = /^(?:\/[\w.]+)?\/(p|tv|reels?)\/(?!audio\/)([\w-]{5,})/.exec(u.pathname);
+ if (!m || !/instagram\.com$/.test(u.hostname)) continue;
+ sure.set(m[2], `https://www.instagram.com/${m[1] === "tv" ? "p" : m[1].replace(/s$/, "")}/${m[2]}/`);
+ }
+ return { sure, maybe: new Map() };
+ },
+ own: (u) => /^(?:\/[\w.]+)?\/(?:p|tv|reels?)\/[\w-]{5,}|^\/stories\/[^/]+\/\d/.test(u.pathname),
+ },
+ {
+ // A post (shreddit-post, old Reddit's .thing) names its permalink in its attributes; its
+ // links (title, comments) name the same /comments/<id>/.
+ hosts: /^reddit\.com$/,
+ read(node) {
+ const sure = new Map();
+ const add = (s) => {
+ const m = /^(\/(?:r|u|user)\/[^/]+)?\/comments\/(\w+)/.exec(linkTo(s)?.pathname || "");
+ if (m) sure.set(m[2], `${location.origin}${m[1] || ""}/comments/${m[2]}/`);
+ };
+ add(node.getAttribute?.("permalink"));
+ add(node.getAttribute?.("data-permalink"));
+ for (const el of node.querySelectorAll?.("[permalink], [data-permalink]") || []) {
+ add(el.getAttribute("permalink"));
+ add(el.getAttribute("data-permalink"));
+ }
+ for (const { u } of linksIn(node, 'a[href*="/comments/"]')) if (/reddit\.com$/.test(u.hostname)) add(u.href);
+ return { sure, maybe: new Map() };
+ },
+ own: (u) => /\/comments\/\w+|^\/r\/[^/]+\/s\/\w+/.test(u.pathname),
+ },
+ {
+ // A video's link (/@<user>/video/<id>); else its player's id (xgwrapper-<n>-<id>), sent in
+ // yt-dlp's own form for a video whose author isn't known (/@_/video/<id>).
+ hosts: /^tiktok\.com$/,
+ embed: (u) => /^\/embed\//.test(u.pathname),
+ read(node) {
+ const sure = new Map();
+ for (const { u } of linksIn(node, 'a[href*="/video/"]')) {
+ const m = /^\/@([\w.-]+)\/video\/(\d+)/.exec(u.pathname);
+ if (m && /tiktok\.com$/.test(u.hostname)) sure.set(m[2], `https://www.tiktok.com/@${m[1]}/video/${m[2]}`);
+ }
+ if (!sure.size) {
+ for (const el of [node, ...(node.querySelectorAll?.('[id^="xgwrapper-"]') || [])]) {
+ const m = /^xgwrapper-\d+-(\d{15,})$/.exec(el.getAttribute?.("id") || "");
+ if (m) sure.set(m[1], `https://www.tiktok.com/@_/video/${m[1]}`);
+ }
+ }
+ return { sure, maybe: new Map() };
+ },
+ own: (u) => /^\/@[\w.-]+\/(?:video|photo)\/\d+|^\/embed\//.test(u.pathname),
+ },
+ {
+ // A clip's links: vimeo.com/<id> (with an unlisted video's hash), in a channel, a group, a
+ // showcase.
+ hosts: /^(?:player\.)?vimeo\.com$/,
+ embed: (u) => u.hostname.startsWith("player."),
+ read(node) {
+ const sure = new Map();
+ for (const { u } of linksIn(node)) {
+ if (!/(^|\.)vimeo\.com$/.test(u.hostname)) continue;
+ const m = /^(?:\/video|\/channels\/[^/]+|\/groups\/[^/]+\/videos|\/showcase\/[^/]+\/video)?\/(\d{4,})(\/[\da-f]{10})?\/?$/.exec(u.pathname);
+ if (m) sure.set(m[1], `https://vimeo.com/${m[1]}${m[2] || ""}`);
+ }
+ return { sure, maybe: new Map() };
+ },
+ own: (u) =>
+ u.hostname.startsWith("player.") ||
+ /^(?:\/channels\/[^/]+|\/groups\/[^/]+\/videos|\/showcase\/[^/]+\/video|\/[^/]+\/review)?\/\d{4,}|^\/ondemand\//.test(u.pathname),
+ },
+ {
+ hosts: /^(?:geo\.)?dailymotion\.com$/,
+ embed: (u) => u.hostname.startsWith("geo.") || /^\/(?:embed|player)\b/.test(u.pathname),
+ read(node) {
+ const sure = new Map();
+ for (const { u } of linksIn(node, 'a[href*="/video/"]')) {
+ const m = /^\/(?:embed\/)?video\/([a-z0-9]+)/i.exec(u.pathname);
+ if (m && /dailymotion\.com$/.test(u.hostname)) sure.set(m[1], `https://www.dailymotion.com/video/${m[1]}`);
+ }
+ return { sure, maybe: new Map() };
+ },
+ own: (u) => u.hostname.startsWith("geo.") || /^\/(?:embed\/)?video\/[a-z0-9]+|^\/player/i.test(u.pathname),
+ },
+ ];
+ // ---- the video's own address: end.
+
// The address this page first loaded at (`download`: a page that moves in place keeps its first
// page's og:title).
const landedAt = location.href;
@@ -488,10 +837,15 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
// What the button sends for `v` (its rectangle `r`): see `download`.
function describe(v, r) {
+ const url = videoPage(v);
+ // Its own plain file (not a stream the page assembles, blob:). Not beside a post a big site's
+ // reader knows (#689): the app would take the file over the post, its title and qualities.
+ const file = /^https?:/i.test(v.currentSrc || "") ? v.currentSrc : "";
+ const post = Boolean(url) && url !== location.href && SITES.some((s) => s.hosts.test(siteName(host)));
return {
drm: Boolean(v.mediaKeys),
- src: /^https?:/i.test(v.currentSrc || "") ? v.currentSrc : "",
- url: videoPage(v),
+ src: post ? "" : file,
+ url,
// The middle of the video: where the background asks the page's own player what it plays.
at: { x: r.left + r.width / 2, y: r.top + r.height / 2 },
};
@@ -600,7 +954,8 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
const title = (og || document.title || "").trim();
const r = await send({ type: "video", src, title, url, at });
if (r.gone) return;
- flash(r.ok ? "ok" : "err", t(r.ok ? "video_sent" : r.why === "options" ? "video_off" : r.why === "unnamed" ? "video_unnamed" : "video_failed"));
+ const why = { options: "video_off", unnamed: "video_unnamed", feed: "video_open_post" }[r.why];
+ flash(r.ok ? "ok" : "err", t(r.ok ? "video_sent" : why || "video_failed"));
} finally {
busy = false;
}
diff --git a/i18n/af.tsv b/i18n/af.tsv
index 0fc404d8..f2c0d759 100644
--- a/i18n/af.tsv
+++ b/i18n/af.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Maak Mister Download Manager oop
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Maak die plasing oop, gebruik dan die knoppie daar
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/am.tsv b/i18n/am.tsv
index b3ed575b..c8c40941 100644
--- a/i18n/am.tsv
+++ b/i18n/am.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Managerን ይክፈቱ
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there ልጥፉን ይክፈቱ፣ ከዚያ እዚያ ያለውን አዝራር ይጠቀሙ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ar.tsv b/i18n/ar.tsv
index 20f9a716..0da45a62 100644
--- a/i18n/ar.tsv
+++ b/i18n/ar.tsv
@@ -4407,6 +4407,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. text in the browser extension
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
extension Open Mister Download Manager فتح Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there افتح المنشور، ثم استخدم الزر هناك
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/as.tsv b/i18n/as.tsv
index b9673275..a4647ee7 100644
--- a/i18n/as.tsv
+++ b/i18n/as.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager খোলক
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there পোষ্টটো খোলক, তাৰ পিছত তাত থকা বুটামটো ব্যৱহাৰ কৰক
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/az.tsv b/i18n/az.tsv
index 14ebb6d0..4c011766 100644
--- a/i18n/az.tsv
+++ b/i18n/az.tsv
@@ -5786,6 +5786,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager aç
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Postu açın, sonra oradakı düymədən istifadə edin
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/be.tsv b/i18n/be.tsv
index ab93d0a7..d532cd1b 100644
--- a/i18n/be.tsv
+++ b/i18n/be.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Адкрыць Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Адкрыйце публікацыю, затым выкарыстоўвайце кнопку там
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/bg.tsv b/i18n/bg.tsv
index 23d93c9f..521a062f 100644
--- a/i18n/bg.tsv
+++ b/i18n/bg.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Отворете Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Отворете публикацията, след това използвайте бутона там
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/bn.tsv b/i18n/bn.tsv
index a4c115dd..6a6c8070 100644
--- a/i18n/bn.tsv
+++ b/i18n/bn.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager খুলুন
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there পোস্টটি খুলুন, তারপর সেখানকার বোতামটি ব্যবহার করুন
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/bs.tsv b/i18n/bs.tsv
index 74f9d7b8..21c7aeb4 100644
--- a/i18n/bs.tsv
+++ b/i18n/bs.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Otvorite Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Otvorite objavu, zatim koristite dugme tamo
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ca-es-valencia.tsv b/i18n/ca-es-valencia.tsv
index 35fce1be..37c19d47 100644
--- a/i18n/ca-es-valencia.tsv
+++ b/i18n/ca-es-valencia.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Obri Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Obri la publicació i, després, utilitza el botó
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ca.tsv b/i18n/ca.tsv
index cd74ed16..4f8d3df0 100644
--- a/i18n/ca.tsv
+++ b/i18n/ca.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Obre Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Obre la publicació i fes servir el botó que hi ha
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/cs.tsv b/i18n/cs.tsv
index a0ff88a2..00274114 100644
--- a/i18n/cs.tsv
+++ b/i18n/cs.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Otevřít Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Otevřete příspěvek a použijte tlačítko tam
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/cy.tsv b/i18n/cy.tsv
index 65840ded..0a8b0549 100644
--- a/i18n/cy.tsv
+++ b/i18n/cy.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Agor Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Agorwch y post, yna defnyddiwch y botwm yno
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/da.tsv b/i18n/da.tsv
index cb0d5ca8..b5e109c0 100644
--- a/i18n/da.tsv
+++ b/i18n/da.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Åbn Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Åbn opslaget, og brug derefter knappen der
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/de.tsv b/i18n/de.tsv
index 22abe0eb..1d4850cd 100644
--- a/i18n/de.tsv
+++ b/i18n/de.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager öffnen
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Beitrag öffnen, dann die Schaltfläche dort verwenden
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/el.tsv b/i18n/el.tsv
index 31f9d1e9..117f7533 100644
--- a/i18n/el.tsv
+++ b/i18n/el.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Άνοιγμα Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Ανοίξτε την ανάρτηση και μετά χρησιμοποιήστε το κουμπί εκεί
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/en.tsv b/i18n/en.tsv
index cea12e92..d3dd9b07 100644
--- a/i18n/en.tsv
+++ b/i18n/en.tsv
@@ -4317,6 +4317,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
extension Open Mister Download Manager Open Mister Download Manager
#. text in the browser extension
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+extension Open the post, then use the button there Open the post, then use the button there
+#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
extension Options... Options...
diff --git a/i18n/es-mx.tsv b/i18n/es-mx.tsv
index cc24cd18..0243d699 100644
--- a/i18n/es-mx.tsv
+++ b/i18n/es-mx.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Abrir Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Abre la publicación y usa el botón ahí
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/es.tsv b/i18n/es.tsv
index b42580aa..b3a6dd2e 100644
--- a/i18n/es.tsv
+++ b/i18n/es.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Abrir Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Abre la publicación y usa el botón allí
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/et.tsv b/i18n/et.tsv
index 2e9e0b60..e10d0bd8 100644
--- a/i18n/et.tsv
+++ b/i18n/et.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Ava Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Ava postitus, siis kasuta sealset nuppu
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/eu.tsv b/i18n/eu.tsv
index fcf5185e..acd59f1e 100644
--- a/i18n/eu.tsv
+++ b/i18n/eu.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Ireki Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Ireki argitalpena, eta erabili botoia han
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/fa.tsv b/i18n/fa.tsv
index 444b417d..f3895411 100644
--- a/i18n/fa.tsv
+++ b/i18n/fa.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager باز کردن Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there پست را باز کنید، سپس از دکمه آنجا استفاده کنید
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/fi.tsv b/i18n/fi.tsv
index 13ece9cd..20c1f6fc 100644
--- a/i18n/fi.tsv
+++ b/i18n/fi.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Avaa Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Avaa julkaisu ja käytä sitten painiketta siinä
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/fil.tsv b/i18n/fil.tsv
index 3c3380d3..d86a9e30 100644
--- a/i18n/fil.tsv
+++ b/i18n/fil.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Buksan ang Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Buksan ang post, pagkatapos ay gamitin ang button doon
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/fr-ca.tsv b/i18n/fr-ca.tsv
index c36b1aa3..00d6cc93 100644
--- a/i18n/fr-ca.tsv
+++ b/i18n/fr-ca.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Ouvrir Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Ouvrez la publication, puis utilisez le bouton qui s’y trouve
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/fr.tsv b/i18n/fr.tsv
index 4a77f2bf..41f1955b 100644
--- a/i18n/fr.tsv
+++ b/i18n/fr.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Ouvrir Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Ouvrez la publication, puis utilisez le bouton
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ga.tsv b/i18n/ga.tsv
index 0534b07f..633a43cb 100644
--- a/i18n/ga.tsv
+++ b/i18n/ga.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Oscail Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Oscail an postáil, ansin bain úsáid as an gcnaipe ansin
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/gd.tsv b/i18n/gd.tsv
index 8e02ae88..739bf391 100644
--- a/i18n/gd.tsv
+++ b/i18n/gd.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Fosgail Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Fosgail am post, an uairsin cleachd am putan an sin
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/gl.tsv b/i18n/gl.tsv
index d7c77076..48d5b222 100644
--- a/i18n/gl.tsv
+++ b/i18n/gl.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Abrir Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Abre a publicación e usa o botón nesa páxina
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/gu.tsv b/i18n/gu.tsv
index 0cc69574..ddf2dca1 100644
--- a/i18n/gu.tsv
+++ b/i18n/gu.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager ખોલો
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there પોસ્ટ ખોલો, પછી ત્યાં બટનનો ઉપયોગ કરો
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/he.tsv b/i18n/he.tsv
index c0108915..972c58b4 100644
--- a/i18n/he.tsv
+++ b/i18n/he.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager פתח את Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there פתח את הפוסט, ואז השתמש בלחצן שם
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/hi.tsv b/i18n/hi.tsv
index 7d67718e..7763c03b 100644
--- a/i18n/hi.tsv
+++ b/i18n/hi.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager खोलें
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there पोस्ट खोलें, फिर वहां बटन का उपयोग करें
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/hr.tsv b/i18n/hr.tsv
index b6590eee..0b918f25 100644
--- a/i18n/hr.tsv
+++ b/i18n/hr.tsv
@@ -5786,6 +5786,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Otvori Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Otvorite objavu, a zatim upotrijebite gumb tamo
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/hu.tsv b/i18n/hu.tsv
index 8ace52e2..07512b76 100644
--- a/i18n/hu.tsv
+++ b/i18n/hu.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Megnyitás: Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Nyissa meg a bejegyzést, majd használja az ottani gombot
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/hy.tsv b/i18n/hy.tsv
index a86cb032..89516c13 100644
--- a/i18n/hy.tsv
+++ b/i18n/hy.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Բացել Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Բացեք գրառումը, ապա օգտագործեք այնտեղի կոճակը
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/id.tsv b/i18n/id.tsv
index 49644687..9b96d8d5 100644
--- a/i18n/id.tsv
+++ b/i18n/id.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Buka Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Buka postingan, lalu gunakan tombol di sana
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/is.tsv b/i18n/is.tsv
index 1d2dd964..dd763ecc 100644
--- a/i18n/is.tsv
+++ b/i18n/is.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Opna Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Opnaðu færsluna og notaðu síðan hnappinn þar
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/it.tsv b/i18n/it.tsv
index 278f1a17..c2b8ea05 100644
--- a/i18n/it.tsv
+++ b/i18n/it.tsv
@@ -4308,6 +4308,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. text in the browser extension
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
extension Open Mister Download Manager Apri Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Apri il post, poi usa il pulsante lì
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ja.tsv b/i18n/ja.tsv
index 2c1c6f04..bff39703 100644
--- a/i18n/ja.tsv
+++ b/i18n/ja.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager を開く
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there 投稿を開いて、そこにあるボタンを使用してください
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ka.tsv b/i18n/ka.tsv
index 1d1be151..f1f77a32 100644
--- a/i18n/ka.tsv
+++ b/i18n/ka.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager-ის გახსნა
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there გახსენით პოსტი, შემდეგ გამოიყენეთ ღილაკი იქ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/kk.tsv b/i18n/kk.tsv
index f90f45f1..9044222e 100644
--- a/i18n/kk.tsv
+++ b/i18n/kk.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager ашу
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Жазбаны ашып, сондағы түймені пайдаланыңыз
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/km.tsv b/i18n/km.tsv
index 9cf2f984..e9e10cb2 100644
--- a/i18n/km.tsv
+++ b/i18n/km.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager បើក Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there បើកប្រកាស រួចប្រើប៊ូតុងនៅទីនោះ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/kn.tsv b/i18n/kn.tsv
index 9b2da02e..6052ed0c 100644
--- a/i18n/kn.tsv
+++ b/i18n/kn.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager ತೆರೆಯಿರಿ
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there ಪೋಸ್ಟ್ ತೆರೆಯಿರಿ, ನಂತರ ಅಲ್ಲಿರುವ ಬಟನ್ ಬಳಸಿ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ko.tsv b/i18n/ko.tsv
index 0094aa17..283cde2c 100644
--- a/i18n/ko.tsv
+++ b/i18n/ko.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager 열기
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there 게시물을 열고 버튼을 사용하세요
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/kok.tsv b/i18n/kok.tsv
index 4834efce..dceb56fe 100644
--- a/i18n/kok.tsv
+++ b/i18n/kok.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager उगडचें
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there पोस्ट उगडात, मागीर थंयचें बटण वापरात
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/lb.tsv b/i18n/lb.tsv
index a5ab746b..4ddb9b12 100644
--- a/i18n/lb.tsv
+++ b/i18n/lb.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager opmaachen
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Maacht de Post op, da benotzt de Knäppchen do
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/lo.tsv b/i18n/lo.tsv
index 82ef0eb0..8f6804f9 100644
--- a/i18n/lo.tsv
+++ b/i18n/lo.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager ເປີດ Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there ເປີດໂພສ, ແລ້ວໃຊ້ປຸ່ມຢູ່ບ່ອນນັ້ນ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/lt.tsv b/i18n/lt.tsv
index 856862ff..c7a81257 100644
--- a/i18n/lt.tsv
+++ b/i18n/lt.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Atidaryti Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Atidarykite įrašą, tada naudokite ten esantį mygtuką
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/lv.tsv b/i18n/lv.tsv
index 4527674a..c4ba5bed 100644
--- a/i18n/lv.tsv
+++ b/i18n/lv.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Atvērt Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Atveriet ierakstu, tad izmantojiet pogu tur
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/mi.tsv b/i18n/mi.tsv
index 8bb2f8dd..b8df0ca9 100644
--- a/i18n/mi.tsv
+++ b/i18n/mi.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Whakatuwhera Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Whakatuwheratia te pou, kātahi ka whakamahi i te pātene kei reira
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/mk.tsv b/i18n/mk.tsv
index 36cf4d76..22a62f3f 100644
--- a/i18n/mk.tsv
+++ b/i18n/mk.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Отворете Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Отворете ја објавата, па користете го копчето таму
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ml.tsv b/i18n/ml.tsv
index c082d74d..2fd0cd0f 100644
--- a/i18n/ml.tsv
+++ b/i18n/ml.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager തുറക്കുക
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there പോസ്റ്റ് തുറക്കുക, എന്നിട്ട് അവിടെയുള്ള ബട്ടൺ ഉപയോഗിക്കുക
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/mr.tsv b/i18n/mr.tsv
index 990f0559..e625c2f5 100644
--- a/i18n/mr.tsv
+++ b/i18n/mr.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager उघडा
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there पोस्ट उघडा, नंतर तेथील बटण वापरा
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ms.tsv b/i18n/ms.tsv
index c5900e66..9db31d09 100644
--- a/i18n/ms.tsv
+++ b/i18n/ms.tsv
@@ -5779,6 +5779,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Buka Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Buka siaran, kemudian gunakan butang di sana
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/mt.tsv b/i18n/mt.tsv
index 8b3e35a5..a093a4b3 100644
--- a/i18n/mt.tsv
+++ b/i18n/mt.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Iftaħ Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Iftaħ il-post, imbagħad uża l-buttuna hemmhekk
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/nb.tsv b/i18n/nb.tsv
index 942a113b..2571cf5a 100644
--- a/i18n/nb.tsv
+++ b/i18n/nb.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Åpne Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Åpne innlegget, og bruk deretter knappen der
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ne.tsv b/i18n/ne.tsv
index 798ce824..f7c20e35 100644
--- a/i18n/ne.tsv
+++ b/i18n/ne.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager खोल्नुहोस्
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there पोस्ट खोल्नुहोस्, त्यसपछि त्यहाँको बटन प्रयोग गर्नुहोस्
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/nl.tsv b/i18n/nl.tsv
index 4cedd9c1..891ef25a 100644
--- a/i18n/nl.tsv
+++ b/i18n/nl.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager openen
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Open het bericht en gebruik dan de knop daar
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/nn.tsv b/i18n/nn.tsv
index f70b8ba2..b9821d0c 100644
--- a/i18n/nn.tsv
+++ b/i18n/nn.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Opna Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Opne innlegget, og bruk så knappen der
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/or.tsv b/i18n/or.tsv
index 79fdd43d..3e1fbda0 100644
--- a/i18n/or.tsv
+++ b/i18n/or.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager ଖୋଲନ୍ତୁ
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there ପୋଷ୍ଟ ଖୋଲନ୍ତୁ, ତା’ପରେ ସେଠାରେ ଥିବା ବଟନ୍ ବ୍ୟବହାର କରନ୍ତୁ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/pa.tsv b/i18n/pa.tsv
index 0c974eb5..200dad4c 100644
--- a/i18n/pa.tsv
+++ b/i18n/pa.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager ਖੋਲ੍ਹੋ
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there ਪੋਸਟ ਖੋਲ੍ਹੋ, ਫਿਰ ਉੱਥੇ ਬਟਨ ਦੀ ਵਰਤੋਂ ਕਰੋ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/pl.tsv b/i18n/pl.tsv
index fc2f9b07..5123680b 100644
--- a/i18n/pl.tsv
+++ b/i18n/pl.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Otwórz Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Otwórz wpis, a następnie użyj przycisku
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/pt-br.tsv b/i18n/pt-br.tsv
index 07f41b4a..3a08de3f 100644
--- a/i18n/pt-br.tsv
+++ b/i18n/pt-br.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Abrir Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Abra a publicação e use o botão lá
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/pt.tsv b/i18n/pt.tsv
index 91d9387d..c9dc03a5 100644
--- a/i18n/pt.tsv
+++ b/i18n/pt.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Abrir Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Abra a publicação e use o botão lá
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/quz.tsv b/i18n/quz.tsv
index bce31c7a..4188f443 100644
--- a/i18n/quz.tsv
+++ b/i18n/quz.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Managerta kichay
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Khiputa kichay, chaymanta chaypi ñitina llamk'achiy
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ro.tsv b/i18n/ro.tsv
index f312b21f..4041e46e 100644
--- a/i18n/ro.tsv
+++ b/i18n/ro.tsv
@@ -5789,6 +5789,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Deschideți Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Deschideți postarea, apoi utilizați butonul de acolo
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ru.tsv b/i18n/ru.tsv
index 81ab6cb5..1e0f9de2 100644
--- a/i18n/ru.tsv
+++ b/i18n/ru.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Открыть Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Откройте публикацию, затем используйте кнопку на этой странице
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/sk.tsv b/i18n/sk.tsv
index d6d75a34..ba33a823 100644
--- a/i18n/sk.tsv
+++ b/i18n/sk.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Otvoriť Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Otvorte príspevok a potom použite tlačidlo na tej stránke
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/sl.tsv b/i18n/sl.tsv
index ad4d9607..e6cd5f20 100644
--- a/i18n/sl.tsv
+++ b/i18n/sl.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Odpri Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Odprite objavo, nato uporabite gumb tam
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/sq.tsv b/i18n/sq.tsv
index bc3ee126..fec3dffa 100644
--- a/i18n/sq.tsv
+++ b/i18n/sq.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Hap Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Hape postimin, pastaj përdor butonin aty
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/sr-latn.tsv b/i18n/sr-latn.tsv
index d6693fbc..e525fff7 100644
--- a/i18n/sr-latn.tsv
+++ b/i18n/sr-latn.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Otvori Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Otvorite objavu, pa koristite dugme tamo
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/sr.tsv b/i18n/sr.tsv
index 8932d3c1..0ab290be 100644
--- a/i18n/sr.tsv
+++ b/i18n/sr.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Отвори Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Отворите објаву, па користите дугме тамо
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/sv.tsv b/i18n/sv.tsv
index eb731139..6d2564b3 100644
--- a/i18n/sv.tsv
+++ b/i18n/sv.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Öppna Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Öppna inlägget och använd sedan knappen där
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ta.tsv b/i18n/ta.tsv
index 7f3ed815..5de42de3 100644
--- a/i18n/ta.tsv
+++ b/i18n/ta.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Managerஐத் திறக்கவும்
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there பதிவைத் திறந்து, அங்குள்ள பொத்தானைப் பயன்படுத்தவும்
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/te.tsv b/i18n/te.tsv
index 58d94466..1cdac45c 100644
--- a/i18n/te.tsv
+++ b/i18n/te.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Managerని తెరవండి
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there పోస్ట్‌ను తెరవండి, ఆపై అక్కడ బటన్‌ను ఉపయోగించండి
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/th.tsv b/i18n/th.tsv
index 99b79e56..57d11acd 100644
--- a/i18n/th.tsv
+++ b/i18n/th.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager เปิด Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there เปิดโพสต์ แล้วใช้ปุ่มที่นั่น
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/tr.tsv b/i18n/tr.tsv
index 4dbd75b9..46999b7c 100644
--- a/i18n/tr.tsv
+++ b/i18n/tr.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager uygulamasını aç
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Gönderiyi açın, sonra oradaki düğmeyi kullanın
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/tt.tsv b/i18n/tt.tsv
index ddd76396..d927d602 100644
--- a/i18n/tt.tsv
+++ b/i18n/tt.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Managerны ачу
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Язманы ачыгыз, аннары андагы төймәне кулланыгыз
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ug.tsv b/i18n/ug.tsv
index 57a3329f..50f9e053 100644
--- a/i18n/ug.tsv
+++ b/i18n/ug.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager نى ئېچىش
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there يوللىمىنى ئېچىڭ، ئاندىن شۇ يەردىكى كۇنۇپكىنى ئىشلىتىڭ
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/uk.tsv b/i18n/uk.tsv
index fda68c38..6db237cc 100644
--- a/i18n/uk.tsv
+++ b/i18n/uk.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Відкрити Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Відкрийте допис, потім скористайтеся кнопкою там
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/ur.tsv b/i18n/ur.tsv
index cdcebbd7..6cbe6be2 100644
--- a/i18n/ur.tsv
+++ b/i18n/ur.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager کھولیں
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there پوسٹ کھولیں، پھر وہاں بٹن استعمال کریں
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/uz.tsv b/i18n/uz.tsv
index aa615ff8..bcc4d37a 100644
--- a/i18n/uz.tsv
+++ b/i18n/uz.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mister Download Manager ni ochish
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Postni oching, so‘ngra u yerdagi tugmadan foydalaning
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/vi.tsv b/i18n/vi.tsv
index bd012b08..ada1774d 100644
--- a/i18n/vi.tsv
+++ b/i18n/vi.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager Mở Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there Mở bài đăng, sau đó dùng nút ở đó
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/zh-hans.tsv b/i18n/zh-hans.tsv
index 24ed26b2..ba1f18ea 100644
--- a/i18n/zh-hans.tsv
+++ b/i18n/zh-hans.tsv
@@ -5790,6 +5790,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager 打开 Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there 打开帖子,然后使用那里的按钮
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/i18n/zh-hant.tsv b/i18n/zh-hant.tsv
index 62f322cf..56858112 100644
--- a/i18n/zh-hant.tsv
+++ b/i18n/zh-hant.tsv
@@ -5781,6 +5781,9 @@ extension Open its address once and accept its certificate, then enter a code fr
#. button in the toolbar button's popup; keep the name Mister Download Manager as it is
#, machine
extension Open Mister Download Manager 開啟 Mister Download Manager
+#. shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short
+#, machine
+extension Open the post, then use the button there 開啟貼文,然後使用該處的按鈕
#. text in the browser extension
#. button in the toolbar button's popup: open the app's Options
#. the trailing ... means it is still going on: keep it
diff --git a/tools/extension/e2e.mjs b/tools/extension/e2e.mjs
index a064fde7..ab7873d1 100644
--- a/tools/extension/e2e.mjs
+++ b/tools/extension/e2e.mjs
@@ -18,7 +18,9 @@
// do with each new type, as Waterfox is: caught before its dialog, #208), cookie (cookies and referrer
// forwarded), names (Content-Disposition), redirect, leadon (a page going to the file by script, #374), form (POST, 303), alt (Alt+click leaves it
// to the browser), opened (a PDF or MP3 the browser would show or play), spot (the video button
-// clear of the page's controls, #421), preview (the video button kept over a hover-to-play
+// clear of the page's controls, #421), feeds (a video in a feed sends its post, its own file, or
+// nothing and says so, never the feed: sample pages served at LinkedIn's, Facebook's, X's,
+// Instagram's, Reddit's, TikTok's, Vimeo's, Dailymotion's addresses, #689), preview (the video button kept over a hover-to-play
// preview the page stopped as the pointer went to it, #503), steady (the video button keeping one place over
// a preview that grows and shows its own buttons while hovered, #560), csp (the video button
// under a strict CSP), hls (the stream a player loaded), streams (HLS and DASH players handed over
@@ -173,15 +175,22 @@ class Bidi {
this.ws = ws;
this.next = 1;
this.waiting = new Map();
+ // Event listeners (`on`): each gets every event {method, params}.
+ this.listeners = [];
ws.addEventListener("message", (e) => {
const m = JSON.parse(e.data);
const w = m.id && this.waiting.get(m.id);
if (w) {
this.waiting.delete(m.id);
m.type === "error" ? w.reject(new Error(`${w.method}: ${m.error} ${m.message}`)) : w.resolve(m.result);
+ } else if (m.type === "event") {
+ for (const f of this.listeners) f(m);
}
});
}
+ on(f) {
+ this.listeners.push(f);
+ }
send(method, params = {}) {
const id = this.next++;
this.ws.send(JSON.stringify({ id, method, params }));
@@ -316,7 +325,7 @@ async function chromium(bin, profile, dl, page, ready) {
}
};
// The button's pill, through its closed shadow root (DevTools sees through it).
- const pill = async () => {
+ const pill = async (fn = PILL_STYLE) => {
const { root: doc } = await cdp.send("DOM.getDocument", { depth: -1, pierce: true }, sessionId);
const find = (n) => {
if (n.nodeName === "MDM-VIDEO-BUTTON") return n;
@@ -330,7 +339,7 @@ async function chromium(bin, profile, dl, page, ready) {
const shadow = host && (host.shadowRoots || [])[0];
if (!shadow) return null;
const { object } = await cdp.send("DOM.resolveNode", { nodeId: shadow.nodeId }, sessionId);
- const r = await cdp.send("Runtime.callFunctionOn", { objectId: object.objectId, functionDeclaration: PILL_STYLE, returnByValue: true }, sessionId);
+ const r = await cdp.send("Runtime.callFunctionOn", { objectId: object.objectId, functionDeclaration: fn, returnByValue: true }, sessionId);
return r.result.value ? JSON.parse(r.result.value) : null;
};
// Another tab at `url` (the extension's own pages too): its `evaluate` and `close`.
@@ -344,9 +353,26 @@ async function chromium(bin, profile, dl, page, ready) {
};
return { evaluate: ev, close: () => cdp.send("Target.closeTarget", { targetId: tid }).catch(() => {}) };
};
+ // The tab's requests to `hosts` (http and https) answered here, never by the network:
+ // `respond(url)` gives { status, type, body }, or null for the network's own answer.
+ let respond = () => null;
+ const serve = async (hosts, answer) => {
+ respond = answer;
+ cdp.on((m) => {
+ if (m.sessionId !== sessionId || m.method !== "Fetch.requestPaused") return;
+ const r = respond(m.params.request.url);
+ const { requestId } = m.params;
+ if (!r) return cdp.send("Fetch.continueRequest", { requestId }, sessionId).catch(() => {});
+ const headers = [{ name: "Content-Type", value: r.type }];
+ cdp.send("Fetch.fulfillRequest", { requestId, responseCode: r.status, responseHeaders: headers, body: Buffer.from(r.body).toString("base64") }, sessionId).catch(() => {});
+ });
+ const patterns = hosts.flatMap((h) => [`http://${h}/*`, `https://${h}/*`]).map((urlPattern) => ({ urlPattern, requestStage: "Request" }));
+ await cdp.send("Fetch.enable", { patterns }, sessionId);
+ };
return {
extension: id,
base: `chrome-extension://${id}/`,
+ serve,
major,
evaluate,
mouse,
@@ -494,7 +520,7 @@ async function firefox(bin, profile, dl, page, ready) {
actions: [{ type: "key", id: "keyboard", actions: [{ type: "keyDown", value: KEYS[k] }, { type: "keyUp", value: KEYS[k] }] }],
});
// The pill, through the closed shadow root BiDi serializes with includeShadowTree "all".
- const pill = async () => {
+ const pill = async (fn = PILL_STYLE) => {
const r = await bidi.send("script.evaluate", {
expression: `document.querySelector("mdm-video-button")`,
target: { context },
@@ -505,7 +531,7 @@ async function firefox(bin, profile, dl, page, ready) {
const shadow = r.result && r.result.value && r.result.value.shadowRoot;
if (!shadow || !shadow.sharedId) return null;
const c = await bidi.send("script.callFunction", {
- functionDeclaration: PILL_STYLE,
+ functionDeclaration: fn,
this: { sharedId: shadow.sharedId },
target: { context },
awaitPromise: false,
@@ -581,8 +607,32 @@ async function firefox(bin, profile, dl, page, ready) {
if (r.type === "exception") throw new Error(`the menu: ${r.exceptionDetails.text}`);
return r.result.value;
};
+ // The tab's requests to `hosts` answered here (as in Chromium, above).
+ let respond = () => null;
+ const serve = async (hosts, answer) => {
+ respond = answer;
+ bidi.on((m) => {
+ if (m.method !== "network.beforeRequestSent" || !m.params.isBlocked) return;
+ const request = m.params.request.request;
+ const r = respond(m.params.request.url);
+ if (!r) return bidi.send("network.continueRequest", { request }).catch(() => {});
+ bidi
+ .send("network.provideResponse", {
+ request,
+ statusCode: r.status,
+ reasonPhrase: r.status === 200 ? "OK" : "Not Found",
+ headers: [{ name: "Content-Type", value: { type: "string", value: r.type } }],
+ body: { type: "string", value: r.body },
+ })
+ .catch(() => {});
+ });
+ await bidi.send("session.subscribe", { events: ["network.beforeRequestSent"], contexts: [context] });
+ const urlPatterns = hosts.flatMap((hostname) => ["http", "https"].map((protocol) => ({ type: "pattern", protocol, hostname })));
+ await bidi.send("network.addIntercept", { phases: ["beforeRequestSent"], urlPatterns, contexts: [context] });
+ };
return {
extension,
+ serve,
// Another add-on (the folder `dir`), temporary beside ours: its ID; and removed again.
install: async (dir) => (await bidi.send("webExtension.install", { extensionData: { type: "path", path: dir } })).extension,
uninstall: (id) => bidi.send("webExtension.uninstall", { extension: id }),
@@ -1039,14 +1089,31 @@ async function hover(session, v) {
return null;
}
+// Where the button's main part is (its .go, read through its closed shadow root: at its left
+// end, at its right end in a right-to-left language); its left end when it can't be read.
+const GO_AT = `function () {
+ const g = this.querySelector(".go");
+ const r = g && g.getBoundingClientRect();
+ return JSON.stringify(r ? { x: r.left + Math.min(14, r.width / 2), w: r.width } : null);
+}`;
+const mainPart = async (session, b) => {
+ const go = session.pill ? await session.pill(GO_AT).catch(() => null) : null;
+ return go && go.w ? go.x : b.l + 14;
+};
+
// Click the button's main part: the app's Download video window opens; the address it shows.
-async function clickButton(session, b) {
+// `shot`: a picture of that window first (PrintWindow: off the screens too), for a PR's body.
+async function clickButton(session, b, shot = "") {
const pid = appPid();
appWindows(pid, VIDEO_WINDOW);
await until("the Download video window closed", 5000, () => !appWindows(pid).includes(VIDEO_WINDOW));
- await session.mouse(b.l + 14, (b.t + b.b) / 2, "click");
+ await session.mouse(await mainPart(session, b), (b.t + b.b) / 2, "click");
await until("the Download video window", 15000, () => appWindows(pid).includes(VIDEO_WINDOW));
const address = await until("the Download video window's address", 10000, () => videoAddress(pid));
+ if (shot) {
+ await sleep(1500);
+ spawnSync("powershell", ["-NoProfile", "-File", path.join(root, "tools", "lab", "cap-own.ps1"), "-ProcessId", String(pid), "-Title", VIDEO_WINDOW, "-Out", shot]);
+ }
appWindows(pid, VIDEO_WINDOW);
return address;
}
@@ -1105,6 +1172,146 @@ async function videoButton(session, never) {
return "shown, clicked (the video's file), dragged, kept, never on the site";
}
+// ---- #689: a video in a feed sends its post ----------------------------------------------------
+
+// The sample feeds (our own pages, reduced to what names a post on each site), served at their
+// sites' own addresses by the browser's protocol (nothing reaches those sites).
+const FEEDS = path.join(root, "tools", "extension", "feeds");
+// What the button says when nothing names the video, in the browser's language (English, or
+// Chromium's --lang in E2E_CHROMIUM_ARGS).
+const OPEN_POST = (t) => {
+ const lang = (t.kind === "chromium" && /--lang=([\w-]+)/.exec(process.env.E2E_CHROMIUM_ARGS || "")) || [];
+ const file = (l) => path.join(root, "extension", "_locales", l, "messages.json");
+ const at = lang[1] && fs.existsSync(file(lang[1].replace("-", "_"))) ? file(lang[1].replace("-", "_")) : file("en");
+ return JSON.parse(fs.readFileSync(at, "utf8")).video_open_post.message;
+};
+// The page's videos in the sample pages' order (test.mjs's): into open shadow roots too.
+const VIDEOS = `(() => { const all = []; const walk = (n) => { for (const c of n.children) { if (c.localName === "video") all.push(c);
+ if (c.shadowRoot) walk(c.shadowRoot); walk(c); } }; walk(document); return all; })()`;
+// What the button says now (its label, and whether that is an error), in its closed shadow root.
+const PILL_LABEL = `function () {
+ const p = this.querySelector(".pill");
+ const l = this.querySelector(".label");
+ return JSON.stringify({ text: l ? l.textContent : "", err: Boolean(p && p.classList.contains("err")) });
+}`;
+
+// Point at the video (rectangle `v`) until the button shows over it (not over the last one); its
+// rectangle, or null.
+async function buttonOver(session, v) {
+ for (let i = 0; i < 40; i++) {
+ await session.mouse((v.l + v.r) / 2 + (i % 2), (v.t + v.b) / 2);
+ const b = await rect(session, "mdm-video-button");
+ if (b && b.t >= v.t - 1 && b.b <= v.b + 1 && b.l >= v.l - 1 && b.r <= v.r + 1) {
+ // Settled there (it fades in and follows the video).
+ await sleep(400);
+ const again = await rect(session, "mdm-video-button");
+ if (again && Math.abs(again.l - b.l) < 2 && Math.abs(again.t - b.t) < 2) return again;
+ }
+ await sleep(200);
+ }
+ return null;
+}
+
+// Each video of each sample page hovered and its button clicked: the app's Download video window
+// opens on what the page names for it (its post, or the page when it is the video's own), or on
+// its own plain file when nothing names it; with neither, no window, and the button says to open
+// the post. Never the feed.
+async function feedVideos(t) {
+ const s = t.session;
+ // E2E_FEEDS: only these sample pages (comma separated names, "linkedin,x").
+ const only = (process.env.E2E_FEEDS || "").split(",").filter(Boolean);
+ const pages = fs
+ .readdirSync(FEEDS)
+ .filter((f) => f.endsWith(".html") && (!only.length || only.includes(f.replace(/\.html$/, ""))))
+ .map((f) => {
+ const html = fs.readFileSync(path.join(FEEDS, f), "utf8");
+ return { f, html, page: /<meta name="mdm-page" content="([^"]+)"/.exec(html)[1].replaceAll("&amp;", "&") };
+ });
+ const css = fs.readFileSync(path.join(FEEDS, "feeds.css"), "utf8");
+ // media.example.test: a video's own plain file (social.html), never fetched from a network
+ // either (another download manager there would take it).
+ await s.serve([...new Set(pages.map((p) => new URL(p.page).hostname)), "media.example.test"], (url) => {
+ const u = new URL(url);
+ if (u.pathname.endsWith("/feeds.css")) return { status: 200, type: "text/css", body: css };
+ if (u.hostname === "media.example.test") return { status: 200, type: "video/mp4", body: "" };
+ const p = pages.find((x) => new URL(x.page).host === u.host && new URL(x.page).pathname === u.pathname);
+ return p ? { status: 200, type: "text/html; charset=utf-8", body: p.html } : { status: 404, type: "text/plain", body: "not a sample page" };
+ });
+ const pid = appPid();
+ const openPost = OPEN_POST(t);
+ const done = [];
+ let again = 0;
+ // E2E_FEEDS_SHOT: a folder for a PR's pictures, from the LinkedIn sample: the app's window for
+ // its first video, the button's answer for one nothing names.
+ const shots = process.env.E2E_FEEDS_SHOT || "";
+ const shot = (f, i, what) => (shots && f === "linkedin.html" && (what === "told" || i === 0) ? path.join(shots, `${t.name}-${what}.png`) : "");
+ if (shots) fs.mkdirSync(shots, { recursive: true });
+ for (const { f, page } of pages) {
+ await s.navigate(page);
+ const count = await s.evaluate(`${VIDEOS}.length`);
+ if (!count) throw new Error(`${f}: no video on the page (served?)`);
+ let posts = 0;
+ let files = 0;
+ let told = 0;
+ for (let i = 0; i < count; i++) {
+ const want = await s.evaluate(`(() => { const v = ${VIDEOS}[${i}]; v.scrollIntoView({ block: "center" });
+ const e = v.getAttribute("data-expect");
+ return e === "page" ? location.href : e === "none" ? (/^https?:/.test(v.currentSrc) ? v.currentSrc : null) : e.replaceAll("{origin}", location.origin); })()`);
+ await sleep(150);
+ const v = await s.evaluate(`(() => { const r = ${VIDEOS}[${i}].getBoundingClientRect(); return { l: r.left, t: r.top, r: r.right, b: r.bottom }; })()`);
+ let b = await buttonOver(s, v);
+ if (!b) throw new Error(`${f}: no button over video ${i + 1}`);
+ if (want) {
+ // What the button says meanwhile, for the report when no window opens.
+ // A click the button never took (it said nothing: headless Firefox now and then drops
+ // one) is made once more, and counted; one it answered without a window fails.
+ let got = "";
+ for (let attempt = 0; !got; attempt++) {
+ const said = new Set();
+ const end = Date.now() + 5000;
+ const watching = (async () => {
+ while (Date.now() < end) {
+ const l = await s.pill(PILL_LABEL).catch(() => null);
+ if (l) said.add(l.text);
+ await sleep(100);
+ }
+ })();
+ got = await clickButton(s, b, shot(f, i, "window")).catch(async (e) => {
+ await watching;
+ if (attempt === 0 && said.size <= 1) return "";
+ throw new Error(`${f}: video ${i + 1} (${want}): ${e.message} (the button said: ${[...said].join(" | ")})`);
+ });
+ if (!got) {
+ again += 1;
+ await s.mouse(2, 2);
+ b = await buttonOver(s, v);
+ if (!b) throw new Error(`${f}: no button over video ${i + 1} again`);
+ }
+ }
+ if (got !== want) throw new Error(`${f}: video ${i + 1} sent ${got}, not ${want}`);
+ /^http:\/\/media\.example\.test\//.test(got) ? (files += 1) : (posts += 1);
+ } else {
+ appWindows(pid, VIDEO_WINDOW);
+ await s.mouse(await mainPart(s, b), (b.t + b.b) / 2, "click");
+ const said = await until(`${f}: video ${i + 1}'s answer on the button`, 10000, async () => {
+ const l = await s.pill(PILL_LABEL);
+ return l && l.err ? l.text : "";
+ });
+ if (shot(f, i, "told") && s.screenshot) await s.screenshot(shot(f, i, "told"));
+ if (said !== openPost) throw new Error(`${f}: video ${i + 1} said "${said}"`);
+ await sleep(1000);
+ if (appWindows(pid).includes(VIDEO_WINDOW)) throw new Error(`${f}: video ${i + 1} opened the video window`);
+ told += 1;
+ // Its answer shown to the end (video.js flash), as a person would see it.
+ await sleep(1500);
+ }
+ await s.mouse(2, 2);
+ }
+ done.push(`${f.replace(/\.html$/, "")} ${[posts && `${posts} named`, files && `${files} file`, told && `${told} told`].filter(Boolean).join("/")}`);
+ }
+ return `each video's own address, its file, or "${openPost}": ${done.join(", ")}${again ? ` (${again} click(s) the button never took, made again)` : ""}`;
+}
+
// How long the page and the extension keep the app's "may it show here" (video.js ASK_MS,
// background.js PANEL_KEEP_MS), with room for the question.
const PANEL_KEPT_MS = 5000 + 1500;
@@ -2131,6 +2338,12 @@ const CASES = {
return videoFocus(t.session);
},
+ // #689: the sample feeds at their sites' addresses (served by the browser's protocol).
+ async feeds(t) {
+ if (!WIN) throw new Skip(NO_UIA);
+ return feedVideos(t);
+ },
+
async video(t) {
return videoButton(t.session, t.last);
},
diff --git a/tools/extension/feeds/article.html b/tools/extension/feeds/article.html
new file mode 100644
index 00000000..def7568f
--- /dev/null
+++ b/tools/extension/feeds/article.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<!-- A site the extension knows nothing of: an article with two players and no post around them.
+ The page is still theirs to yt-dlp (its generic reader), as before (our own sample). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="http://news.example.test/2026/11/a-sample-story"><title>A sample story</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<article><h1>A sample story</h1>
+ <p>Some words. <a href="/about">About us</a></p>
+ <figure><video data-expect="page"></video><figcaption>A first sample clip</figcaption></figure>
+ <figure><video data-expect="page"></video><figcaption>A second sample clip</figcaption></figure>
+</article>
+</body></html>
diff --git a/tools/extension/feeds/dailymotion.html b/tools/extension/feeds/dailymotion.html
new file mode 100644
index 00000000..b2625857
--- /dev/null
+++ b/tools/extension/feeds/dailymotion.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<!-- Dailymotion's home, its cards playing a preview in place (our own sample: no real account or
+ video). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.dailymotion.com/"><title>Dailymotion</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<main><div class="feed">
+ <div class="card"><a href="/video/x9sampl1"><div class="preview"><video data-expect="https://www.dailymotion.com/video/x9sampl1"></video></div></a>
+ <a href="/video/x9sampl1">A first sample video</a> <a href="/samplechannel">Sample Channel</a></div>
+ <div class="card"><div class="preview"><video data-expect="https://www.dailymotion.com/video/x9sampl2"></video></div>
+ <a href="https://www.dailymotion.com/video/x9sampl2?playlist=x6sampl">A second sample video</a></div>
+</div></main>
+</body></html>
diff --git a/tools/extension/feeds/facebook-watch.html b/tools/extension/feeds/facebook-watch.html
new file mode 100644
index 00000000..da7ef264
--- /dev/null
+++ b/tools/extension/feeds/facebook-watch.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<!-- A Facebook video's own page: its player names nothing, the page is the video's; the videos
+ listed under it name their own. -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.facebook.com/watch/?v=5678901234567890"><title>Facebook</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<div role="main">
+ <div class="x1lliihq"><video data-expect="page"></video></div>
+ <div class="more-videos">
+ <div><a href="https://www.facebook.com/watch/?v=6789012345678901">Another sample video</a><video data-expect="https://www.facebook.com/watch/?v=6789012345678901"></video></div>
+ <div><a href="https://www.facebook.com/watch/?v=7890123456789012">One more sample video</a><video data-expect="https://www.facebook.com/watch/?v=7890123456789012"></video></div>
+ </div>
+</div>
+</body></html>
diff --git a/tools/extension/feeds/facebook.html b/tools/extension/feeds/facebook.html
new file mode 100644
index 00000000..3ac3d5eb
--- /dev/null
+++ b/tools/extension/feeds/facebook.html
@@ -0,0 +1,61 @@
+<!doctype html>
+<!-- Facebook's home feed (#643), reduced to what names a post (our own sample: no real person, post
+ or text). data-expect: what the button must send for each video ("page", "none"). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.facebook.com/"><title>Facebook</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<div role="main">
+<div role="feed">
+ <div aria-posinset="1" aria-describedby=":r1:">
+ <div class="x1yztbdb">
+ <h4><a href="https://www.facebook.com/sample.page.a?__cft__=AZx">Sample Page A</a></h4>
+ <span><a href="#" role="link">3h</a></span>
+ <div class="x1lliihq"><video data-expect="https://www.facebook.com/reel/1234567890123456/"></video></div>
+ <a href="https://www.facebook.com/reel/1234567890123456/?s=fb_shorts_tab&amp;__cft__=AZx" aria-label="Open reel">Reel</a>
+ </div>
+ </div>
+ <div aria-posinset="2" aria-describedby=":r2:">
+ <div class="x1yztbdb">
+ <h4><a href="https://www.facebook.com/sample.page.b">Sample Page B</a></h4>
+ <span><a href="https://www.facebook.com/sample.page.b/videos/a-sample-title/2345678901234567/?__cft__=AZy">Yesterday</a></span>
+ <div class="x1lliihq"><video data-expect="https://www.facebook.com/watch/?v=2345678901234567"></video></div>
+ <a href="https://www.facebook.com/sample.page.b">Follow</a>
+ </div>
+ </div>
+ <div aria-posinset="3" aria-describedby=":r3:">
+ <div class="x1yztbdb">
+ <h4><a href="https://www.facebook.com/sample.person.c">Sample Person C</a></h4>
+ <span><a href="https://www.facebook.com/sample.person.c/posts/pfbid02SampleSampleSampleSampleSampleSample1l">2d</a></span>
+ <div class="x1lliihq"><video data-expect="https://www.facebook.com/sample.person.c/posts/pfbid02SampleSampleSampleSampleSampleSample1l"></video></div>
+ </div>
+ </div>
+ <div aria-posinset="4" aria-describedby=":r4:">
+ <div class="x1yztbdb">
+ <h4><a href="https://www.facebook.com/groups/123456789012/">Sample Group</a></h4>
+ <div data-video-id="3456789012345678"><video data-expect="https://www.facebook.com/watch/?v=3456789012345678"></video></div>
+ <a href="https://www.facebook.com/groups/123456789012/posts/4567890123456789/">Sample Person D posted</a>
+ </div>
+ </div>
+ <div aria-posinset="5" aria-describedby=":r5:">
+ <div class="x1yztbdb">
+ <h4><a href="https://www.facebook.com/sample.page.e">Sample Page E</a></h4>
+ <span><a href="#" role="link">Sponsored</a></span>
+ <div class="x1lliihq"><video data-expect="none"></video></div>
+ </div>
+ </div>
+ <div aria-posinset="6" aria-describedby=":r6:">
+ <div class="x1yztbdb">
+ <h4><a href="https://www.facebook.com/sample.page.f">Sample Page F</a></h4>
+ <span><a href="https://www.facebook.com/permalink.php?story_fbid=pfbid0SampleStory6&amp;id=100000000000006">5h</a></span>
+ <div class="x1lliihq"><video data-expect="https://www.facebook.com/permalink.php?story_fbid=pfbid0SampleStory6&amp;id=100000000000006"></video></div>
+ </div>
+ </div>
+ <div aria-posinset="7" aria-describedby=":r7:">
+ <div class="x1yztbdb">
+ <h4><a href="https://www.facebook.com/sample.page.g">Sample Page G</a></h4>
+ <div class="x1lliihq"><video data-expect="https://fb.watch/sAmPlE7x/"></video></div>
+ <a href="https://fb.watch/sAmPlE7x/?mibextid=sample">Share</a>
+ </div>
+ </div>
+</div>
+</div>
+</body></html>
diff --git a/tools/extension/feeds/feeds.css b/tools/extension/feeds/feeds.css
new file mode 100644
index 00000000..2829d649
--- /dev/null
+++ b/tools/extension/feeds/feeds.css
@@ -0,0 +1,4 @@
+/* The sample feeds' players: big enough for the download button (video.js MIN_W, MIN_H). */
+body { margin: 8px; font: 14px/1.4 system-ui, sans-serif; background: #f4f5f7; color: #1d2733; }
+video { display: block; width: 480px; height: 270px; background: #1f2b3a; margin: 6px 0 14px; }
+a { color: #24579b; }
diff --git a/tools/extension/feeds/instagram.html b/tools/extension/feeds/instagram.html
new file mode 100644
index 00000000..43815600
--- /dev/null
+++ b/tools/extension/feeds/instagram.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<!-- Instagram's home feed, reduced to what names a post (our own sample: no real account, post or
+ text). data-expect: what the button must send for each video. -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.instagram.com/"><title>Instagram</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<main role="main"><div><div>
+ <article>
+ <header><a href="/sample.account.a/">sample.account.a</a> <a href="/p/DSampleCode1/"><time datetime="2026-11-10T09:00:00.000Z">1d</time></a></header>
+ <div><video data-expect="https://www.instagram.com/p/DSampleCode1/"></video></div>
+ <a href="/p/DSampleCode1/liked_by/">Liked by others</a>
+ <a href="/p/DSampleCode1/comments/">View all 4 comments</a>
+ </article>
+ <article>
+ <header><a href="/sample.account.b/">sample.account.b</a> <a href="/reel/DSampleCode2/"><time datetime="2026-11-09T09:00:00.000Z">2d</time></a></header>
+ <div><video data-expect="https://www.instagram.com/reel/DSampleCode2/"></video></div>
+ <a href="/reels/audio/1234567890123456/">Original audio</a>
+ </article>
+ <article>
+ <header><a href="/sample.advertiser/">sample.advertiser</a> Sponsored</header>
+ <div><video data-expect="none"></video></div>
+ </article>
+</div></div></main>
+</body></html>
diff --git a/tools/extension/feeds/linkedin-sdui.html b/tools/extension/feeds/linkedin-sdui.html
new file mode 100644
index 00000000..d46d908c
--- /dev/null
+++ b/tools/extension/feeds/linkedin-sdui.html
@@ -0,0 +1,80 @@
+<!doctype html>
+<!-- LinkedIn's feed as its server-driven app draws it since 2026 (the structure of a signed-in
+ feed, our own sample: no real person, post or id). No URN sits near a video: a post is named
+ only in the keys of its parts (componentkey): its text's translation key (its ugcPost), its
+ comments' URNs (its activity), and its comment tools' key (base64 of a protobuf naming its
+ activity, field 1, or its ugcPost, field 2). data-expect: what the button must send. -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.linkedin.com/feed/foryou/"><title>Feed | LinkedIn</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<div id="root" data-strictmode="true"><div data-layout-grid=""><div><main id="workspace" tabindex="-1"><div><div><section aria-label="Primary content"><div>
+<div data-sdui-screen="com.linkedin.sdui.flagshipnav.feed.ForYouFeed">
+<div role="list" data-testid="mainFeed" data-component-type="LazyColumn" componentkey="container-update-list_mainFeed-lazy-container">
+ <div data-lazy-mount-id="sample1"><div data-display-contents="true"><div><div id="expandedSampleHashA" componentkey="expandedSampleHashA">
+ <div role="listitem" componentkey="update-card-focusSampleHashAFeedType_MAIN_FEED_RELEVANCE">
+ <div data-display-contents="true"><div componentkey="SampleHashA">
+ <a href="https://www.linkedin.com/company/sample-company-a/" componentkey="0b5d2f0e-0000-4000-8000-000000000001">Sample Company A</a>
+ <button componentkey="0b5d2f0e-0000-4000-8000-000000000002" aria-label="Open control menu for post by Sample Company A">…</button>
+ <div componentkey="translatable-commentary-FeTranslationUrn(contentUrnCommentUrn=null, contentUrnGroupPostUrn=null, contentUrnShareUrn=null, contentUrnUgcPostUrn=ContentUrnUgcPostUrn(userGeneratedContentPostUrn=UserGeneratedContentPostUrn(userGeneratedContentId=7391000000000000033)), detectedLocale=, targetLocale=en)"><p>A first sample post.</p></div>
+ <div componentkey="0b5d2f0e-0000-4000-8000-000000000003" data-color-scheme="dark"><div tabindex="0" componentkey="0b5d2f0e-0000-4000-8000-000000000004">
+ <div data-vjs-player="true" id="SampleVideoA" tabindex="-1" role="region" aria-label="Video Player">
+ <video id="SampleVideoA_html5_api" role="application" preload="metadata" playsinline muted data-expect="https://www.linkedin.com/feed/update/urn:li:ugcPost:7391000000000000033/"></video>
+ </div>
+ </div></div>
+ <a href="https://www.linkedin.com/feed/foryou/">Sample viewer</a>
+ </div></div>
+ </div>
+ </div></div></div></div>
+ <div data-lazy-mount-id="sample2"><div data-display-contents="true"><div><div id="expandedSampleHashB" componentkey="expandedSampleHashB">
+ <div role="listitem" componentkey="update-card-focusSampleHashBFeedType_MAIN_FEED_RELEVANCE">
+ <div data-display-contents="true"><div componentkey="SampleHashB">
+ <a href="https://www.linkedin.com/in/sample-person-b/" componentkey="0b5d2f0e-0000-4000-8000-000000000011">Sample Person B</a>
+ <div componentkey="0b5d2f0e-0000-4000-8000-000000000013" data-color-scheme="dark"><div tabindex="0" componentkey="0b5d2f0e-0000-4000-8000-000000000014">
+ <div data-vjs-player="true" id="SampleVideoB" tabindex="-1" role="region" aria-label="Video Player">
+ <video id="SampleVideoB_html5_api" role="application" preload="metadata" playsinline muted data-expect="https://www.linkedin.com/feed/update/urn:li:ugcPost:7391000000000000022/"></video>
+ </div>
+ </div></div>
+ <button componentkey="0b5d2f0e-0000-4000-8000-000000000015" aria-label="Comment">Comment</button>
+ <div id="EgsIrIDM7ufVjZLNAQ-replaceableCommentToolsSampleHashBFeedType_MAIN_FEED_RELEVANCE" componentkey="EgsIrIDM7ufVjZLNAQ-replaceableCommentToolsSampleHashBFeedType_MAIN_FEED_RELEVANCE"></div>
+ </div></div>
+ </div>
+ </div></div></div></div>
+ <div data-lazy-mount-id="sample3"><div data-display-contents="true"><div><div id="expandedSampleHashC" componentkey="expandedSampleHashC">
+ <div role="listitem" componentkey="update-card-focusSampleHashCFeedType_MAIN_FEED_RELEVANCE">
+ <div data-display-contents="true"><div componentkey="SampleHashC">
+ <a href="https://www.linkedin.com/in/sample-person-c/" componentkey="0b5d2f0e-0000-4000-8000-000000000021">Sample Person C</a>
+ <div componentkey="0b5d2f0e-0000-4000-8000-000000000023" data-color-scheme="dark"><div tabindex="0" componentkey="0b5d2f0e-0000-4000-8000-000000000024">
+ <div data-vjs-player="true" id="SampleVideoC" tabindex="-1" role="region" aria-label="Video Player">
+ <video id="SampleVideoC_html5_api" role="application" preload="metadata" playsinline muted data-expect="https://www.linkedin.com/feed/update/urn:li:activity:7391000000000000044/"></video>
+ </div>
+ </div></div>
+ <div id="CgsI2IDM7ufVjZLNAQ-replaceableCommentToolsSampleHashCFeedType_MAIN_FEED_RELEVANCE" componentkey="CgsI2IDM7ufVjZLNAQ-replaceableCommentToolsSampleHashCFeedType_MAIN_FEED_RELEVANCE"></div>
+ <div componentkey="CommentComponentReference_urn:li:comment:(activity:7391000000000000044,7391000000000000045)"><p>A sample comment.</p></div>
+ <div componentkey="replaceableComment_urn:li:comment:(activity:7391000000000000044,7391000000000000045)"></div>
+ </div></div>
+ </div>
+ </div></div></div></div>
+ <div data-lazy-mount-id="sample4"><div data-display-contents="true"><div><div id="expandedSampleHashD" componentkey="expandedSampleHashD">
+ <div role="listitem" componentkey="update-card-focusSampleHashDFeedType_MAIN_FEED_RELEVANCE">
+ <div data-display-contents="true"><div componentkey="SampleHashD">
+ <div componentkey="feed-header-urn:li:activity:7391000000000000055-0">Sample Person D likes this</div>
+ <p>A post with no video.</p>
+ <div id="CgsI7oDM7ufVjZLNAQ-replaceableCommentToolsSampleHashDFeedType_MAIN_FEED_RELEVANCE" componentkey="CgsI7oDM7ufVjZLNAQ-replaceableCommentToolsSampleHashDFeedType_MAIN_FEED_RELEVANCE"></div>
+ </div></div>
+ </div>
+ </div></div></div></div>
+ <div data-lazy-mount-id="sample5"><div data-display-contents="true"><div><div id="expandedSampleHashE" componentkey="expandedSampleHashE">
+ <div role="listitem" componentkey="update-card-focusSampleHashEFeedType_MAIN_FEED_RELEVANCE">
+ <div data-display-contents="true"><div componentkey="SampleHashE">
+ <a href="https://www.linkedin.com/company/sample-advertiser/" componentkey="0b5d2f0e-0000-4000-8000-000000000041">Sample Advertiser · Promoted</a>
+ <div componentkey="0b5d2f0e-0000-4000-8000-000000000043" data-color-scheme="dark"><div tabindex="0" componentkey="0b5d2f0e-0000-4000-8000-000000000044">
+ <div data-vjs-player="true" id="SampleVideoE" tabindex="-1" role="region" aria-label="Video Player">
+ <video id="SampleVideoE_html5_api" role="application" preload="metadata" playsinline muted data-expect="none"></video>
+ </div>
+ </div></div>
+ </div></div>
+ </div>
+ </div></div></div></div>
+</div>
+</div>
+</div></section></div></div></main></div></div></div>
+</body></html>
diff --git a/tools/extension/feeds/linkedin.html b/tools/extension/feeds/linkedin.html
new file mode 100644
index 00000000..83bb8581
--- /dev/null
+++ b/tools/extension/feeds/linkedin.html
@@ -0,0 +1,51 @@
+<!doctype html>
+<!-- LinkedIn's home feed, reduced to what names a post (our own sample: no real person, post or
+ text). Each <video> says what the button must send for it (data-expect: an address, "page"
+ for the page's own, "none" for nothing). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.linkedin.com/feed/"><title>Feed | LinkedIn</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<main class="scaffold-layout__main">
+<div class="scaffold-finite-scroll__content" data-finite-scroll-hotkey-context="FEED">
+ <div data-id="urn:li:activity:7390000000000000001" class="relative" data-finite-scroll-hotkey-item="0">
+ <div class="feed-shared-update-v2" data-urn="urn:li:activity:7390000000000000001" role="article">
+ <div class="update-components-actor">
+ <a class="update-components-actor__meta-link" href="https://www.linkedin.com/in/sample-person-a/">Sample Person A</a>
+ <a class="update-components-actor__sub-description-link" href="https://www.linkedin.com/feed/update/urn:li:activity:7390000000000000001/">2h</a>
+ </div>
+ <div class="update-components-text">A first sample post with a video.</div>
+ <div class="update-components-linkedin-video"><div class="video-js" data-vjs-player="">
+ <video class="vjs-tech" data-expect="https://www.linkedin.com/feed/update/urn:li:activity:7390000000000000001/"></video>
+ </div></div>
+ <div class="social-details-social-counts"><a href="https://www.linkedin.com/feed/update/urn:li:ugcPost:7390000000000000101/">12 comments</a></div>
+ </div>
+ </div>
+ <div data-id="urn:li:aggregate:(urn:li:ugcPost:7390000000000000002)" class="relative" data-finite-scroll-hotkey-item="1">
+ <div class="feed-shared-update-v2" data-urn="urn:li:ugcPost:7390000000000000002" role="article">
+ <div class="update-components-actor"><a href="https://www.linkedin.com/company/sample-company-b/">Sample Company B</a></div>
+ <div class="update-components-linkedin-video"><div class="video-js" data-vjs-player="">
+ <video class="vjs-tech" data-expect="https://www.linkedin.com/feed/update/urn:li:ugcPost:7390000000000000002/"></video>
+ </div></div>
+ </div>
+ </div>
+ <div data-id="urn:li:activity:7390000000000000003" class="relative" data-finite-scroll-hotkey-item="2">
+ <div class="feed-shared-update-v2" data-urn="urn:li:activity:7390000000000000003" role="article">
+ <div class="update-components-actor"><a href="https://www.linkedin.com/in/sample-person-c/">Sample Person C reposted this</a></div>
+ <div class="update-components-mini-update-v2">
+ <a class="update-components-mini-update-v2__link-to-details-page" href="https://www.linkedin.com/feed/update/urn:li:activity:7390000000000000004/">Sample Person D</a>
+ <div class="update-components-linkedin-video"><div class="video-js" data-vjs-player="">
+ <video class="vjs-tech" data-expect="https://www.linkedin.com/feed/update/urn:li:activity:7390000000000000004/"></video>
+ </div></div>
+ </div>
+ </div>
+ </div>
+ <div class="relative" data-finite-scroll-hotkey-item="3">
+ <div class="feed-shared-update-v2" role="article">
+ <div class="update-components-actor"><a href="https://www.linkedin.com/company/sample-advertiser/">Sample Advertiser · Promoted</a></div>
+ <div class="update-components-linkedin-video"><div class="video-js" data-vjs-player="">
+ <video class="vjs-tech" data-expect="none"></video>
+ </div></div>
+ </div>
+ </div>
+</div>
+</main>
+</body></html>
diff --git a/tools/extension/feeds/reddit-old.html b/tools/extension/feeds/reddit-old.html
new file mode 100644
index 00000000..00c274e6
--- /dev/null
+++ b/tools/extension/feeds/reddit-old.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<!-- old.reddit.com's listing: each post (.thing) names its permalink; an expanded video plays in
+ the listing (our own sample). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://old.reddit.com/r/samplesub/"><title>samplesub</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<div id="siteTable" class="sitetable linklisting">
+ <div class="thing link" data-fullname="t3_1abcde3" data-permalink="/r/samplesub/comments/1abcde3/a_third_sample_post/">
+ <a class="title" href="/r/samplesub/comments/1abcde3/a_third_sample_post/">A third sample post</a>
+ <div class="expando"><div class="reddit-video-player-root"><video data-expect="{origin}/r/samplesub/comments/1abcde3/"></video></div></div>
+ <a class="comments" href="https://old.reddit.com/r/samplesub/comments/1abcde3/a_third_sample_post/">12 comments</a>
+ </div>
+ <div class="thing link" data-fullname="t3_1abcde4" data-permalink="/r/samplesub/comments/1abcde4/a_fourth_sample_post/">
+ <a class="title" href="/r/samplesub/comments/1abcde4/a_fourth_sample_post/">A fourth sample post</a>
+ <div class="expando"><div class="reddit-video-player-root"><video data-expect="{origin}/r/samplesub/comments/1abcde4/"></video></div></div>
+ </div>
+</div>
+</body></html>
diff --git a/tools/extension/feeds/reddit.html b/tools/extension/feeds/reddit.html
new file mode 100644
index 00000000..7dc1818c
--- /dev/null
+++ b/tools/extension/feeds/reddit.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<!-- Reddit's front page (shreddit), reduced to what names a post (our own sample: no real account,
+ post or text). Its player keeps the <video> in its own shadow root. data-expect: what the
+ button must send for each video ("page", "none"). {origin}: the page's own host. -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.reddit.com/"><title>Reddit - The heart of the internet</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<shreddit-app><main>
+<shreddit-feed>
+ <article aria-label="A first sample post">
+ <shreddit-post permalink="/r/samplesub/comments/1abcde1/a_first_sample_post/" post-type="video" id="t3_1abcde1">
+ <a slot="full-post-link" href="/r/samplesub/comments/1abcde1/a_first_sample_post/">A first sample post</a>
+ <shreddit-player-2><template shadowrootmode="open"><div class="container"><video data-expect="{origin}/r/samplesub/comments/1abcde1/"></video></div></template></shreddit-player-2>
+ </shreddit-post>
+ </article>
+ <article aria-label="A second sample post">
+ <shreddit-post permalink="/r/othersample/comments/1abcde2/a_second_sample_post/" post-type="video" id="t3_1abcde2">
+ <a slot="full-post-link" href="/r/othersample/comments/1abcde2/a_second_sample_post/">A second sample post</a>
+ <shreddit-player-2><template shadowrootmode="open"><div class="container"><video data-expect="{origin}/r/othersample/comments/1abcde2/"></video></div></template></shreddit-player-2>
+ </shreddit-post>
+ </article>
+ <shreddit-ad-post>
+ <a href="https://ads.example.test/landing">Sample advertiser</a>
+ <shreddit-player-2><template shadowrootmode="open"><div class="container"><video data-expect="none"></video></div></template></shreddit-player-2>
+ </shreddit-ad-post>
+</shreddit-feed>
+</main></shreddit-app>
+</body></html>
diff --git a/tools/extension/feeds/social.html b/tools/extension/feeds/social.html
new file mode 100644
index 00000000..b24a6c1b
--- /dev/null
+++ b/tools/extension/feeds/social.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<!-- A site the extension knows nothing of: a federated timeline (role="feed"), each post linking to
+ itself from its timestamp (our own sample). The third video names no post and plays a plain
+ file: that file goes, with the page as Referer. data-expect: what videoPage names ("none":
+ nothing; the e2e case then wants the video's own file when it has one, else the button's
+ "open the post" message). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="http://social.example.test/home"><title>Home - Sample Social</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<main><div role="feed" aria-label="Home">
+ <article class="status">
+ <a href="/@sample_a">Sample A</a> <a class="status__relative-time" href="/@sample_a/113000000000000001"><time datetime="2026-11-10T09:00:00Z">1h</time></a>
+ <div class="media"><video data-expect="http://social.example.test/@sample_a/113000000000000001"></video></div>
+ </article>
+ <article class="status">
+ <a href="/@sample_b">Sample B</a> <a class="status__relative-time" href="/@sample_b/113000000000000002"><time datetime="2026-11-10T08:00:00Z">2h</time></a>
+ <div class="media"><video data-expect="http://social.example.test/@sample_b/113000000000000002"></video></div>
+ </article>
+ <article class="status">
+ <span>Sample C</span>
+ <div class="media"><video data-expect="none" src="http://media.example.test/clip.mp4" preload="metadata"></video></div>
+ </article>
+ <article class="status">
+ <span>Sample D</span>
+ <div class="media"><video data-expect="none"></video></div>
+ </article>
+</div></main>
+</body></html>
diff --git a/tools/extension/feeds/tiktok.html b/tools/extension/feeds/tiktok.html
new file mode 100644
index 00000000..4e21da20
--- /dev/null
+++ b/tools/extension/feeds/tiktok.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<!-- TikTok's For You page, reduced to what names a video (our own sample: no real account or
+ video). Its players are named after the video (xgwrapper-<n>-<id>), sent in yt-dlp's own form for an
+ author not known (/@_/video/<id>); a card links to it. -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://www.tiktok.com/foryou"><title>TikTok - Make Your Day</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<main><div data-e2e="recommend-list">
+ <article data-e2e="recommend-list-item-container">
+ <section><div id="xgwrapper-0-7430000000000000001" class="xgplayer-container"><video data-expect="https://www.tiktok.com/@_/video/7430000000000000001"></video></div></section>
+ <section><a href="/@sample.creator.a" data-e2e="video-author-avatar">sample.creator.a</a></section>
+ </article>
+ <article data-e2e="recommend-list-item-container">
+ <section><a href="/@sample.creator.b/video/7430000000000000002"><div class="poster"><video data-expect="https://www.tiktok.com/@sample.creator.b/video/7430000000000000002"></video></div></a></section>
+ <section><a href="/@sample.creator.b">sample.creator.b</a> <a href="/music/sample-sound-7430000000000000099">original sound</a></section>
+ </article>
+ <article data-e2e="recommend-list-item-container">
+ <section><div id="xgwrapper-2-7430000000000000003"><video data-expect="https://www.tiktok.com/@_/video/7430000000000000003"></video></div></section>
+ </article>
+</div></main>
+</body></html>
diff --git a/tools/extension/feeds/vimeo-player.html b/tools/extension/feeds/vimeo-player.html
new file mode 100644
index 00000000..f3e73c26
--- /dev/null
+++ b/tools/extension/feeds/vimeo-player.html
@@ -0,0 +1,7 @@
+<!doctype html>
+<!-- Vimeo's own player (an embed's frame): its address carries an unlisted clip's key, the link
+ in it doesn't, so the page is the video's (our own sample). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://player.vimeo.com/video/900000004?h=abcdef0123"><title>A sample clip</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<div class="player"><video data-expect="page"></video><a href="https://vimeo.com/900000004">A sample clip</a></div>
+</body></html>
diff --git a/tools/extension/feeds/vimeo.html b/tools/extension/feeds/vimeo.html
new file mode 100644
index 00000000..b34cb4b5
--- /dev/null
+++ b/tools/extension/feeds/vimeo.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<!-- A Vimeo page of many clips playing in place (a feed's cards), reduced to what names each clip
+ (our own sample: no real account or video). -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://vimeo.com/watch"><title>Vimeo</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<main>
+ <section class="feed">
+ <div class="clip-card"><div class="player"><video data-expect="https://vimeo.com/900000001"></video></div>
+ <a href="/900000001">A first sample clip</a> <a href="/samplecreator">Sample Creator</a></div>
+ <div class="clip-card"><div class="player"><video data-expect="https://vimeo.com/900000002/0123456789"></video></div>
+ <a href="https://vimeo.com/900000002/0123456789">An unlisted sample clip</a></div>
+ <div class="clip-card"><div class="player"><video data-expect="https://vimeo.com/900000003"></video></div>
+ <a href="/channels/samplechannel/900000003">A channel's sample clip</a></div>
+ </section>
+</main>
+</body></html>
diff --git a/tools/extension/feeds/x.html b/tools/extension/feeds/x.html
new file mode 100644
index 00000000..5506184c
--- /dev/null
+++ b/tools/extension/feeds/x.html
@@ -0,0 +1,39 @@
+<!doctype html>
+<!-- X's home timeline, reduced to what names a post (our own sample: no real account, post or
+ text). data-expect: what the button must send for each video ("page", "none"). The addresses
+ built on the page's own host are written with it as {origin}. -->
+<html><head><meta charset="utf-8"><meta name="mdm-page" content="https://x.com/home"><title>Home / X</title><link rel="stylesheet" href="feeds.css"></head>
+<body>
+<main role="main">
+<div aria-label="Timeline: Your Home Timeline">
+ <div data-testid="cellInnerDiv">
+ <article data-testid="tweet" role="article" tabindex="0">
+ <div data-testid="User-Name"><a href="/sampleuser_a" role="link">Sample User A</a>
+ <a href="/sampleuser_a/status/1850000000000000001" role="link"><time datetime="2026-11-10T09:00:00.000Z">Nov 10</time></a></div>
+ <div data-testid="tweetText">A first sample post.</div>
+ <div data-testid="videoPlayer"><div data-testid="videoComponent"><video data-expect="{origin}/sampleuser_a/status/1850000000000000001"></video></div></div>
+ <a href="/sampleuser_a/status/1850000000000000001/analytics">Views</a>
+ </article>
+ </div>
+ <div data-testid="cellInnerDiv">
+ <article data-testid="tweet" role="article" tabindex="0">
+ <div data-testid="User-Name"><a href="/sampleuser_b" role="link">Sample User B</a>
+ <a href="/sampleuser_b/status/1850000000000000002" role="link"><time datetime="2026-11-10T08:00:00.000Z">Nov 10</time></a></div>
+ <div data-testid="tweetText">Quoting a video.</div>
+ <div role="link" tabindex="0">
+ <div data-testid="User-Name">Sample User Q <time datetime="2026-11-09T08:00:00.000Z">Nov 9</time></div>
+ <a href="/sampleuser_q/status/1850000000000000009/video/1" aria-label="Embedded video">
+ <div data-testid="videoPlayer"><video data-expect="{origin}/sampleuser_q/status/1850000000000000009"></video></div>
+ </a>
+ </div>
+ </article>
+ </div>
+ <div data-testid="cellInnerDiv">
+ <article data-testid="tweet" role="article" tabindex="0">
+ <div data-testid="User-Name"><a href="/sampleadvertiser" role="link">Sample Advertiser</a> Ad</div>
+ <div data-testid="videoPlayer"><video data-expect="none"></video></div>
+ </article>
+ </div>
+</div>
+</main>
+</body></html>
diff --git a/tools/extension/test.mjs b/tools/extension/test.mjs
index 9dbba94f..9f305979 100644
--- a/tools/extension/test.mjs
+++ b/tools/extension/test.mjs
@@ -1175,27 +1175,22 @@ const MPD = (protect) => `<?xml version="1.0"?>
ok("video button logo");
}
+// video.js's videoPage, with what it calls (from it to its end mark), run against `location` and
+// `document`: the address the button hands the app for a <video>.
+const videoPageOn = (() => {
+ const source = readFileSync(new URL("../../extension/video.js", import.meta.url), "utf8");
+ const start = source.indexOf("function videoPage(v) {");
+ const end = source.indexOf("// ---- the video's own address: end.");
+ assert.ok(start > 0 && end > start, "video.js has videoPage and its end mark");
+ const body = `${source.slice(start, end)}; return videoPage;`;
+ return (location, document) => new Function("location", "document", body)(location, document);
+})();
+
// The address the button hands the app (video.js's videoPage): the video's own page, not the page
// that plays it. YouTube's home, a search, a channel or a playlist is a list to yt-dlp, and a watch
// page opened from a mix carries the list in its address: the button sent either, and the app
// offered the whole feed (~50 videos) instead of the one playing. #311.
{
- const source = readFileSync(new URL("../../extension/video.js", import.meta.url), "utf8");
- const start = source.indexOf("function videoPage(v) {");
- assert.ok(start > 0, "video.js has videoPage");
- // The function's own braces, so a test never runs a half of it.
- let depth = 0;
- let end = start;
- for (let i = source.indexOf("{", start); i < source.length; i += 1) {
- if (source[i] === "{") depth += 1;
- if (source[i] === "}") {
- depth -= 1;
- if (depth === 0) {
- end = i + 1;
- break;
- }
- }
- }
// A page: its address, an optional ytd-watch-flexy video-id, and the cards a player can sit in
// (each level on the way up from the video element names the video links it contains).
const at = (href, { flexy = null, cards = [] } = {}) => {
@@ -1206,8 +1201,7 @@ const MPD = (protect) => `<?xml version="1.0"?>
const chain = cards.map(element);
for (let i = 0; i < chain.length; i += 1) chain[i].parentElement = chain[i + 1] || null;
const document = { querySelector: (sel) => (sel === "ytd-watch-flexy" && flexy ? { getAttribute: () => flexy } : null) };
- const fn = new Function("location", "document", `${source.slice(start, end)}; return videoPage;`)({ href }, document);
- return fn(chain[0] || element([]));
+ return videoPageOn({ href }, document)(chain[0] || element([]));
};
// A watch page from a mix or a playlist: the video's own address, without the list.
assert.equal(at("https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=RDdQw4w9WgXcQ&start_radio=1"), "https://www.youtube.com/watch?v=dQw4w9WgXcQ");
@@ -1299,22 +1293,212 @@ const MPD = (protect) => `<?xml version="1.0"?>
ok("in-place navigation and YouTube's player: the video playing now, or nothing");
}
+// A small DOM for the sample pages (tools/extension/feeds): elements with their attributes, open
+// shadow roots (<template shadowrootmode>), `a.href`, and querySelector(All) with the simple
+// selectors video.js uses (a tag, #id, [attr], [attr="v"], [attr*="v"], [attr^="v"], lists).
+function samplePage(html) {
+ const VOID = new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "source", "track", "wbr"]);
+ const ENTITY = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'" };
+ const decode = (s) => s.replace(/&(amp|lt|gt|quot|#39);/g, (_, e) => ENTITY[e]);
+ let base = "about:blank";
+ // Descendants in document order, not into shadow roots (as the DOM's own).
+ const descendants = function* (n) {
+ for (const c of n.children) {
+ yield c;
+ yield* descendants(c);
+ }
+ };
+ const compound = (sel) => {
+ const m = /^([a-z][\w-]*)?(?:#([\w-]+))?((?:\[[^\]]+\])*)$/i.exec(sel.trim());
+ assert.ok(m, `a selector the sample DOM reads: ${sel}`);
+ const attrs = [...m[3].matchAll(/\[([\w-]+)(?:([*^]?=)"([^"]*)")?\]/g)].map((a) => ({ name: a[1], op: a[2], value: a[3] }));
+ return (el) =>
+ (!m[1] || el.localName === m[1].toLowerCase()) &&
+ (!m[2] || el.getAttribute("id") === m[2]) &&
+ attrs.every(({ name, op, value }) => {
+ const v = el.getAttribute(name);
+ if (v === null) return false;
+ return !op || (op === "=" ? v === value : op === "*=" ? v.includes(value) : v.startsWith(value));
+ });
+ };
+ const finder = {
+ querySelectorAll(sel) {
+ const any = sel.split(",").map(compound);
+ return [...descendants(this)].filter((el) => any.some((f) => f(el)));
+ },
+ querySelector(sel) {
+ return this.querySelectorAll(sel)[0] || null;
+ },
+ };
+ class Element {
+ constructor(name, attributes, parent) {
+ this.localName = name;
+ this.attributes = attributes;
+ this.children = [];
+ this.parentNode = parent;
+ this.shadowRoot = null;
+ }
+ get parentElement() {
+ return this.parentNode instanceof Element ? this.parentNode : null;
+ }
+ getAttribute(name) {
+ const a = this.attributes.find((x) => x.name === name);
+ return a ? a.value : null;
+ }
+ get href() {
+ return new URL(this.getAttribute("href"), base).href;
+ }
+ }
+ Object.assign(Element.prototype, finder);
+ const doc = { children: [], localName: "#document", ...finder };
+ const stack = [doc];
+ const tags = /<!--[\s\S]*?-->|<!doctype[^>]*>|<\/([\w-]+)\s*>|<([\w-]+)((?:\s+[^\s=/>]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+))?)*)\s*\/?>/gi;
+ for (const t of html.matchAll(tags)) {
+ if (t[1]) {
+ const name = t[1].toLowerCase();
+ const at = stack.findLastIndex((n) => n.localName === name || (name === "template" && n.isShadow));
+ if (at > 0) stack.length = at;
+ continue;
+ }
+ if (!t[2]) continue;
+ const name = t[2].toLowerCase();
+ const attributes = [...(t[3] || "").matchAll(/([^\s=/>]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g)].map((a) => ({
+ name: a[1].toLowerCase(),
+ value: decode(a[2] ?? a[3] ?? a[4] ?? ""),
+ }));
+ const parent = stack[stack.length - 1];
+ // A declarative shadow root: what follows, up to its </template>, is the host's shadow tree.
+ if (name === "template" && attributes.some((a) => a.name === "shadowrootmode" && a.value === "open")) {
+ const root = { children: [], localName: "#shadow-root", isShadow: true, host: parent, ...finder };
+ parent.shadowRoot = root;
+ stack.push(root);
+ continue;
+ }
+ const el = new Element(name, attributes, parent);
+ parent.children.push(el);
+ if (!VOID.has(name)) stack.push(el);
+ }
+ // Every element, into shadow roots too (the button finds the videos there).
+ const all = function* (n) {
+ for (const c of n.children) {
+ yield c;
+ if (c.shadowRoot) yield* all(c.shadowRoot);
+ yield* all(c);
+ }
+ };
+ const page = doc.querySelector('meta[name="mdm-page"]').getAttribute("content");
+ base = page;
+ return { document: doc, page, videos: [...all(doc)].filter((e) => e.localName === "video") };
+}
+
+// #689, #643: a video in a feed names the post it sits in, never the feed. Each sample page (our
+// own, reduced to what names a post on each site; tools/extension/feeds) says what each of its
+// videos must name: an address ({origin}: the page's own), "page" (the page is the video's) or
+// "none" (nothing names it: the feed is not sent; its own plain file is, when it has one).
+{
+ const dir = new URL("feeds/", import.meta.url);
+ const pages = readdirSync(dir).filter((f) => f.endsWith(".html"));
+ assert.ok(pages.length >= 12, "the sample pages");
+ // Each page at its own address, and at the big sites' other hosts too.
+ const OTHER = {
+ "x.html": ["https://twitter.com/home", "https://mobile.x.com/home"],
+ "reddit.html": ["https://sh.reddit.com/"],
+ "linkedin.html": ["https://linkedin.com/feed/foryou/"],
+ "facebook.html": ["https://web.facebook.com/", "https://m.facebook.com/"],
+ };
+ let checked = 0;
+ for (const file of pages) {
+ const { document, page, videos } = samplePage(readFileSync(new URL(file, dir), "utf8"));
+ assert.ok(videos.length, `${file}: its videos`);
+ for (const at of [page, ...(OTHER[file] || [])]) {
+ const location = new URL(at);
+ const videoPage = videoPageOn(location, document);
+ for (const [i, v] of videos.entries()) {
+ const expect = v.getAttribute("data-expect");
+ const want = expect === "page" ? location.href : expect === "none" ? null : expect.replaceAll("{origin}", location.origin);
+ const got = videoPage(v);
+ assert.equal(got, want, `${file} at ${at}: video ${i + 1}`);
+ // Never the page itself, unless it is the video's own.
+ if (expect !== "page") assert.notEqual(got, location.href, `${file}: video ${i + 1} named the page`);
+ checked += 1;
+ }
+ }
+ }
+ ok(`#689: a video in a feed names its post, never the feed (${pages.length} sample pages, ${checked} videos)`);
+}
+
+// What the resolvers build is a form yt-dlp's extractors read (their _VALID_URL, yt-dlp
+// 2026.08.19), so the app's lookup finds the one video.
+{
+ const YTDLP = [
+ /^https?:\/\/(?:www\.)?linkedin\.com\/feed\/update\/urn:li:activity:(\d+)/,
+ /^https?:\/\/(?:[\w-]+\.)?facebook\.com\/(?:(?:permalink\.php|video\.php|watch\/?)\?(?:.*?)(?:v|story_fbid)=|[^/]+\/videos\/(?:[^/]+\/)?|[^/]+\/posts\/|groups\/[^/]+\/(?:permalink|posts)\/|reel\/)(pfbid[A-Za-z0-9]+|\d+)/,
+ /^https?:\/\/(?:(?:www|m(?:obile)?)\.)?(?:twitter|x)\.com\/(?:(?:i\/web|[^/]+)\/status|statuses)\/(\d+)/,
+ /^https?:\/\/(?:www\.)?instagram\.com(?:\/[^/?#]+)?\/(?:p|tv|reels?)\/([^/?#&]+)/,
+ /^https?:\/\/(?:\w+\.)?reddit\.com\/(?:(?:r|user)\/[^/]+\/)?comments\/([^/?#&]+)/,
+ /^https?:\/\/www\.tiktok\.com\/@[\w.-]+\/video\/(\d+)/,
+ /^https?:\/\/vimeo\.com\/(\d+)(?:\/[\da-f]{10})?$/,
+ /^https?:\/\/www\.dailymotion\.com\/video\/([^/?_&#]+)/,
+ ];
+ const dir = new URL("feeds/", import.meta.url);
+ let checked = 0;
+ for (const file of readdirSync(dir).filter((f) => f.endsWith(".html") && !/^(social|article)\.html$/.test(f))) {
+ const { page, videos } = samplePage(readFileSync(new URL(file, dir), "utf8"));
+ for (const v of videos) {
+ const expect = v.getAttribute("data-expect").replaceAll("{origin}", new URL(page).origin);
+ // fb.watch's short links lead to the video's page; a LinkedIn post known by its ugcPost
+ // URN is its public page, which yt-dlp's generic reader reads.
+ if (expect === "none" || expect === "page" || expect.startsWith("https://fb.watch/") || /urn:li:ugcPost:/.test(expect)) continue;
+ assert.ok(YTDLP.some((r) => r.test(expect)), `${file}: ${expect} is a form yt-dlp reads`);
+ checked += 1;
+ }
+ }
+ ok(`#689: the ${checked} addresses built are forms yt-dlp's extractors read`);
+}
+
+// #689: what the background does with what video.js named on a feed. A post: it goes alone (no
+// stream the tab loaded, which may be another video's, nor the feed's title), the feed as its
+// Referer. Nothing named: never the feed; the video's own plain file when it has one (the feed
+// as its Referer), else nothing and the button says to open the post.
+{
+ const message = (listeners, m, sender) => new Promise((r) => listeners.message(m, sender, (x) => r(JSON.parse(JSON.stringify(x)))));
+ const at = (url) => ({ id: "ours", url, frameId: 0, tab: { id: 4, url, incognito: false } });
+ const videos = (calls) => natives(calls).filter((m) => m.video);
+ const { api, calls, listeners } = fakeApi({ firefox: false });
+ load(api, false);
+ const feed = "https://www.linkedin.com/feed/";
+ // A stream the feed loaded (another video's, as far as anyone knows).
+ listeners.responseStarted({ tabId: 4, frameId: 0, url: "https://cdn.test/feed/master.m3u8", responseHeaders: [] });
+ const post = "https://www.linkedin.com/feed/update/urn:li:activity:7390000000000000001/";
+ assert.equal((await message(listeners, { type: "video", url: post, src: "", title: "Feed | LinkedIn" }, at(feed))).ok, true);
+ assert.deepEqual(
+ (({ url, src, title, referrer }) => ({ url, src, title, referrer }))(videos(calls).at(-1)),
+ { url: post, src: undefined, title: "", referrer: feed },
+ "the post alone, the feed as its Referer",
+ );
+ // Nothing names it, no file of its own: nothing goes, and the button says why.
+ const r = await message(listeners, { type: "video", url: null, src: "", title: "Feed | LinkedIn" }, at(feed));
+ assert.deepEqual([r.ok, r.why], [false, "feed"]);
+ assert.equal(videos(calls).length, 1, "the feed is never sent");
+ // Nothing names it, its own plain file: that file, the feed as its Referer, no title.
+ await message(listeners, { type: "video", url: null, src: "https://media.test/clip.mp4", title: "Home" }, at("https://social.test/home"));
+ const file = videos(calls).at(-1);
+ assert.deepEqual([file.src, file.url, file.title], ["https://media.test/clip.mp4", "https://social.test/home", ""]);
+ // Another host of the same site is the site's (Facebook's short links, X's old name).
+ await message(listeners, { type: "video", url: "https://fb.watch/sAmPlE7x/", src: "" }, at("https://web.facebook.com/"));
+ assert.equal(videos(calls).at(-1).url, "https://fb.watch/sAmPlE7x/");
+ await message(listeners, { type: "video", url: "https://x.com/someone/status/1", src: "" }, at("https://twitter.com/home"));
+ assert.equal(videos(calls).at(-1).url, "https://x.com/someone/status/1");
+ // Another site's address named by a page is not taken: the page's own goes, as before.
+ await message(listeners, { type: "video", url: "https://elsewhere.test/v/1", src: "" }, at("https://news.test/story"));
+ assert.equal(videos(calls).at(-1).url, "https://news.test/story");
+ ok("#689: a post alone, the video's own file, or nothing; never the feed");
+}
+
// Shorts and live streams name their video in the path (video.js videoPage); the page is the
// video's, not a list. Their addresses as yt-dlp reads them (the same video as watch?v=).
{
- const source = readFileSync(new URL("../../extension/video.js", import.meta.url), "utf8");
- const start = source.indexOf("function videoPage(v) {");
- let depth = 0;
- let end = start;
- for (let i = source.indexOf("{", start); i < source.length; i += 1) {
- if (source[i] === "{") depth += 1;
- if (source[i] === "}" && --depth === 0) {
- end = i + 1;
- break;
- }
- }
- const named = (href) =>
- new Function("location", "document", `${source.slice(start, end)}; return videoPage;`)({ href }, { querySelector: () => null })({ parentElement: null, querySelectorAll: () => [] });
+ const named = (href) => videoPageOn({ href }, { querySelector: () => null })({ parentElement: null, querySelectorAll: () => [] });
assert.equal(named("https://www.youtube.com/shorts/cxkLg22mWco"), "https://www.youtube.com/watch?v=cxkLg22mWco");
assert.equal(named("https://www.youtube.com/shorts/cxkLg22mWco?feature=share"), "https://www.youtube.com/watch?v=cxkLg22mWco");
assert.equal(named("https://m.youtube.com/shorts/cxkLg22mWco"), "https://www.youtube.com/watch?v=cxkLg22mWco");