From f1f0da4a9db09625a50a812285c4479d5e692036 Mon Sep 17 00:00:00 2001 From: Klen_list <49125075+klen-list@users.noreply.github.com> Date: Thu, 8 Feb 2024 21:55:48 +0300 Subject: [PATCH] fixYoutubeEmbeds: fix when youtube decides to use http without s (#2155) Co-authored-by: V --- src/plugins/fixYoutubeEmbeds.desktop/native.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fixYoutubeEmbeds.desktop/native.ts b/src/plugins/fixYoutubeEmbeds.desktop/native.ts index 5419d4ad..d5c2df36 100644 --- a/src/plugins/fixYoutubeEmbeds.desktop/native.ts +++ b/src/plugins/fixYoutubeEmbeds.desktop/native.ts @@ -17,7 +17,7 @@ app.on("browser-window-created", (_, win) => { frame.executeJavaScript(` new MutationObserver(() => { if( - document.querySelector('div.ytp-error-content-wrap-subreason a[href^="https://www.youtube.com/watch?v="]') + document.querySelector('div.ytp-error-content-wrap-subreason a[href*="www.youtube.com/watch?v="]') ) location.reload() }).observe(document.body, { childList: true, subtree:true }); `);