Greasemonkey脚本暂停在非活动选项卡上的视频播放 [英] Greasemonkey script to pause video playback on non-active tabs

查看:143
本文介绍了Greasemonkey脚本暂停在非活动选项卡上的视频播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常在Firefox中浏览时,我会右键点击一个链接,然后在一个单独的选项卡中打开它以便稍后查看,然后继续阅读当前页面。但是,当链接是Youtube脚本时,即使选项卡未处于活动状态,播放也会立即开始。其他视频播放器(如fora.tv和TED.com)在启动该选项卡之前不会开始播放。



是否有 greasemonkey 脚本,我可以用它来确保视频(特别是Youtube视频)被暂停,除非他们的标签我找到了两个选项:



Youtube备用视频播放器(greasemonkey脚本)
http://userscripts.org/scripts/show/ 13955



脚本摘要:
使用FlowPlayer Flash视频播放器替换YouTube视频播放器。
$ b


  • 替换了youtube播放器

  • no hd

  • Firefox附加组件TubeStop
    http://www.chrisfinke.com/addons/tubestop/


    • 禁用YouTube视频上的自动播放功能

    • 每次都会这样做(即使该标签已激活)


      现在我将保留TubeStop插件。

      Often when browsing in Firefox, I'll right click on a link, and open it in a separate tab to view later, and go on reading the current page. When the link is a Youtube script, however, playback starts immediately even though the tab isn't active. Other video players (like fora.tv and TED.com) don't start playback until you activate that tab.

      Is there a greasemonkey script that I can use to make sure that videos (and especially Youtube videos) are paused unless their tab is active?

      解决方案

      I found two options:

      "Youtube Alternate Video Player" (greasemonkey script) http://userscripts.org/scripts/show/13955

      Script Summary: Replaces the youtube flash video player with FlowPlayer flash video player.

      • replaces the youtube player
      • no hd
      • no 16:9

      Firefox Add-On "TubeStop" http://www.chrisfinke.com/addons/tubestop/

      • disables the autoplay on YouTube videos
      • does it every time (even if the tab is active)

      I will keep the TubeStop addon for now.

      这篇关于Greasemonkey脚本暂停在非活动选项卡上的视频播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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