如何删除“更多视频"来自 Youtube 的功能 [英] How to remove "More videos" feature from Youtube

查看:36
本文介绍了如何删除“更多视频"来自 Youtube 的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当嵌入的视频暂停时,YouTube 会显示一个带有视频建议(更多视频")的菜单.iframe 中的元素具有ytp-pause-overlay"类.每次用户暂停时都会显示,除非它被最小化一次.

YouTube displays a menu with video suggestions ("More videos") when an embedded video is paused. The element in the iframe has the class "ytp-pause-overlay". It is displayed every time the user pauses, unless it is minimized once.

嵌入视频中更多视频菜单的屏幕截图

如果可能的话 [The Guardian 和 Udacity 做到了],如何将其移除?如果不是,是否可以默认最小化显示(ytp-scroll-min")?

If possible [The Guardian and Udacity did it], how can it be removed? If not, is it possible to display it minimized by default ("ytp-scroll-min")?

更多视频"功能会影响字幕和键盘控制,在教育或企业环境中,这是不可取的.

"More videos" feature affects subtitles and keyboard controls and, in educational or corporate contexts, it is not desirable.

正如预期的那样,以下建议的参数都没有用:

As expected, none of the following suggested parameters has been useful:

  • rel=0
  • ytp-pause-overlay=0
  • ecver=2

如果 Google 工程师团队中的任何人能提供帮助,我将不胜感激.

I would be utterly grateful if anyone in Google engineers team could help.

提前致谢.

推荐答案

基于您尝试过的rel 参数,

Based from what you have tried about rel parameter,

rel 参数的行为在 9 月或之后发生变化2018 年 2 月 25 日.更改的效果是您将无法停用相关视频.但是,您可以选择指定播放器中显示的相关视频应来自与刚刚播放的视频相同的频道.

The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.

更具体地说:

  • 在更改之前,如果参数的值是设置为 0,则播放器不会显示相关视频.
  • 之后更改,如果rel参数设置为0,播放器会显示相关与刚刚播放的视频来自同一频道的视频
  • Prior to the change, if the parameter's value is set to 0, then the player does not show related videos.
  • After the change, if the rel parameter is set to 0, the player will show related videos that are from the same channel as the video that was just played.

Youtube 的 embed api 不再允许您禁用它.在 github 中检查同样的问题.

Youtube's embed api no longer lets you disable it. Check this same issue in github.

这篇关于如何删除“更多视频"来自 Youtube 的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆