From 7856ed6d89a7efb28553a8e30961907991dd3979 Mon Sep 17 00:00:00 2001 From: Yoo Taejong Date: Thu, 23 Nov 2023 19:24:54 +0900 Subject: [PATCH 1/3] Use `@match` instead of `@include` Safer matching behavior. Also prevent running inside iframe embeds. --- 153699.user.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/153699.user.js b/153699.user.js index 2cd6ef5..63469a1 100644 --- a/153699.user.js +++ b/153699.user.js @@ -7,10 +7,11 @@ // @homepageURL https://github.com/Zren/ResizeYoutubePlayerToWindowSize/ // @namespace http://xshade.ca // @version 137 -// @include http*://*.youtube.com/* -// @include http*://youtube.com/* -// @include http*://*.youtu.be/* -// @include http*://youtu.be/* +// @match https://www.youtube.com/watch?* +// @match http://www.youtube.com/watch?* +// @match https://m.youtube.com/watch?* +// @match http://m.youtube.com/watch?* +// @exclude /^https?://www\.youtube(?:-nocookie)?\.com/embed/.*$/ // @grant none // ==/UserScript== From 0de981cc5d753529b03f63edf4682ac2ad064259 Mon Sep 17 00:00:00 2001 From: Yoo Taejong Date: Thu, 23 Nov 2023 19:44:48 +0900 Subject: [PATCH 2/3] Update 153699.user.js Remove a redundant rule --- 153699.user.js | 1 - 1 file changed, 1 deletion(-) diff --git a/153699.user.js b/153699.user.js index 63469a1..faea352 100644 --- a/153699.user.js +++ b/153699.user.js @@ -11,7 +11,6 @@ // @match http://www.youtube.com/watch?* // @match https://m.youtube.com/watch?* // @match http://m.youtube.com/watch?* -// @exclude /^https?://www\.youtube(?:-nocookie)?\.com/embed/.*$/ // @grant none // ==/UserScript== From 75c5b718df011be7d1a036670761c8785b0b7679 Mon Sep 17 00:00:00 2001 From: Yoo Taejong Date: Fri, 24 Nov 2023 06:35:06 +0900 Subject: [PATCH 3/3] Update 153699.user.js soft navigation support --- 153699.user.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/153699.user.js b/153699.user.js index faea352..8405de5 100644 --- a/153699.user.js +++ b/153699.user.js @@ -7,10 +7,11 @@ // @homepageURL https://github.com/Zren/ResizeYoutubePlayerToWindowSize/ // @namespace http://xshade.ca // @version 137 -// @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// // @grant none // ==/UserScript==