最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Scrollbar on the right side after the full screen YouTube video of the older version of chrome - Stack Overflow

programmeradmin4浏览0评论

If you use an older version (< = chrome72) to access youtube, a scroll bar (at the far right of the screen) will appear after the full screen

I think of a way to solve this problem, which is to inject the following JavaScript script into the web page

var css = document.createElement("style");
css.innerHTML="ytd-app { overflow: overlay  !important; }";
document.head.appendChild(css);

After injecting JavaScript script, this problem can be solved, but I always feel that the time of full screen bees longer (the time from clicking the full screen button to full screen, but I have no conclusive evidence)

I would like to ask two questions

  1. Is there a more scientific way to solve the problem (without replacing or upgrading the browser)

  2. In terms of the above code, is there any conclusive evidence that it will make the full screen time longer

Thanks a lot

If you use an older version (< = chrome72) to access youtube, a scroll bar (at the far right of the screen) will appear after the full screen

I think of a way to solve this problem, which is to inject the following JavaScript script into the web page

var css = document.createElement("style");
css.innerHTML="ytd-app { overflow: overlay  !important; }";
document.head.appendChild(css);

After injecting JavaScript script, this problem can be solved, but I always feel that the time of full screen bees longer (the time from clicking the full screen button to full screen, but I have no conclusive evidence)

I would like to ask two questions

  1. Is there a more scientific way to solve the problem (without replacing or upgrading the browser)

  2. In terms of the above code, is there any conclusive evidence that it will make the full screen time longer

Thanks a lot

Share Improve this question asked Jun 25, 2021 at 10:28 redapple0204redapple0204 351 gold badge1 silver badge8 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 2

This seems to be an old post and I don't know if I am late or not but I just came across the best solution to this. Add an extension called Improve YouTube from the link that I've attached Improve YouTube

And after that just open youtube on a pew page, click the plugin, go to appearance, click player and then scroll down pletely to "Hide <>" and turn it on. This way the scroll bar will be pletely gone and you can even scroll down to the ments if you ever feel like it without the the scroll bar being present.

Have a great day :)

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论