Skip to content

Commit

Permalink
Set max-scale and min-scale values in Youtube's viewport (MozillaReal…
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and Alexandre Lissy committed Jan 21, 2020
1 parent ef7bc88 commit 9d0149a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class YoutubeExtension {

// If missing, inject a `<meta name="viewport">` 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);
Expand Down

0 comments on commit 9d0149a

Please sign in to comment.