Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit ec93f75

Browse files
MortimerGorobluemarvin
authored andcommitted
Set max-scale and min-scale values in Youtube's viewport (#2616)
1 parent 039d51a commit ec93f75

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/assets/web_extensions/webcompat_youtube

1 file changed

+1
-1
lines changed

app/src/main/assets/web_extensions/webcompat_youtube/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class YoutubeExtension {
2626

2727
// If missing, inject a `<meta name="viewport">` tag to trigger YouTube's mobile layout.
2828
overrideViewport() {
29-
const content = `width=device-width;`;
29+
const content = `width=device-width;maximum-scale=1;minimum-scale=1;initial-scale=1;`;
3030
let viewport = document.querySelector('meta[name="viewport"]');
3131
if (viewport) {
3232
viewport.setAttribute('content', content);

0 commit comments

Comments
 (0)