From d108509e93322a21d053af304088e33e6c00c640 Mon Sep 17 00:00:00 2001 From: Yoo Taejong Date: Thu, 23 Nov 2023 19:40:56 +0900 Subject: [PATCH 1/3] Update `@match` rule Only run script on watch pages, not in embeds. --- scripts/local-youtube-dl.user.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/local-youtube-dl.user.js b/scripts/local-youtube-dl.user.js index 9423b24..8ed6cfa 100644 --- a/scripts/local-youtube-dl.user.js +++ b/scripts/local-youtube-dl.user.js @@ -16,7 +16,10 @@ // @description:fr Obtenez un lien brut YouTube sans service externe. // @description:cs Stahujte YouTube videa bez externích služeb. // @author maple3142 -// @match https://*.youtube.com/* +// @match https://www.youtube.com/watch?* +// @match http://www.youtube.com/watch?* +// @match https://m.youtube.com/watch?* +// @match http://m.youtube.com/watch?* // @require https://unpkg.com/vue@2.6.10/dist/vue.js // @require https://unpkg.com/xfetch-js@0.3.4/xfetch.min.js // @require https://unpkg.com/@ffmpeg/ffmpeg@0.6.1/dist/ffmpeg.min.js From fa52bbf79d1bdc5665cc3a192cecf95b25a710d9 Mon Sep 17 00:00:00 2001 From: Yoo Taejong Date: Thu, 23 Nov 2023 19:41:11 +0900 Subject: [PATCH 2/3] Update local-youtube-dl.user.js --- scripts/local-youtube-dl.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/local-youtube-dl.user.js b/scripts/local-youtube-dl.user.js index 8ed6cfa..b8f1316 100644 --- a/scripts/local-youtube-dl.user.js +++ b/scripts/local-youtube-dl.user.js @@ -16,10 +16,10 @@ // @description:fr Obtenez un lien brut YouTube sans service externe. // @description:cs Stahujte YouTube videa bez externích služeb. // @author maple3142 -// @match https://www.youtube.com/watch?* -// @match http://www.youtube.com/watch?* -// @match https://m.youtube.com/watch?* -// @match http://m.youtube.com/watch?* +// @match https://www.youtube.com/watch?* +// @match http://www.youtube.com/watch?* +// @match https://m.youtube.com/watch?* +// @match http://m.youtube.com/watch?* // @require https://unpkg.com/vue@2.6.10/dist/vue.js // @require https://unpkg.com/xfetch-js@0.3.4/xfetch.min.js // @require https://unpkg.com/@ffmpeg/ffmpeg@0.6.1/dist/ffmpeg.min.js From 04e8cae625513b1c9a34f05dff3d0fd101a106f2 Mon Sep 17 00:00:00 2001 From: Yoo Taejong Date: Fri, 24 Nov 2023 06:35:55 +0900 Subject: [PATCH 3/3] Update local-youtube-dl.user.js soft navigation support --- scripts/local-youtube-dl.user.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/local-youtube-dl.user.js b/scripts/local-youtube-dl.user.js index b8f1316..e4fe034 100644 --- a/scripts/local-youtube-dl.user.js +++ b/scripts/local-youtube-dl.user.js @@ -16,10 +16,11 @@ // @description:fr Obtenez un lien brut YouTube sans service externe. // @description:cs Stahujte YouTube videa bez externích služeb. // @author maple3142 -// @match https://www.youtube.com/watch?* -// @match http://www.youtube.com/watch?* -// @match https://m.youtube.com/watch?* -// @match http://m.youtube.com/watch?* +// @match https://www.youtube.com/* +// @match http://www.youtube.com/* +// @match https://m.youtube.com/* +// @match http://m.youtube.com/* +// @exclude /^https?://www\.youtube\.com/embed// // @require https://unpkg.com/vue@2.6.10/dist/vue.js // @require https://unpkg.com/xfetch-js@0.3.4/xfetch.min.js // @require https://unpkg.com/@ffmpeg/ffmpeg@0.6.1/dist/ffmpeg.min.js