From 9d0149a837b0a3a1709a8ffb9a0761b5f8a0b62a Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Fri, 10 Jan 2020 20:09:50 +0100 Subject: [PATCH] Set max-scale and min-scale values in Youtube's viewport (#2616) --- app/src/main/assets/web_extensions/webcompat_youtube/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/assets/web_extensions/webcompat_youtube/main.js b/app/src/main/assets/web_extensions/webcompat_youtube/main.js index 812e77894..e4eefd5d5 100644 --- a/app/src/main/assets/web_extensions/webcompat_youtube/main.js +++ b/app/src/main/assets/web_extensions/webcompat_youtube/main.js @@ -26,7 +26,7 @@ class YoutubeExtension { // If missing, inject a `` tag to trigger YouTube's mobile layout. overrideViewport() { - const content = `width=device-width;`; + const content = `width=device-width;maximum-scale=1;minimum-scale=1;initial-scale=1;`; let viewport = document.querySelector('meta[name="viewport"]'); if (viewport) { viewport.setAttribute('content', content);