Greasy Fork

Greasy Fork is available in English.

Dailymotion: "Playback Quality Control" Feature

Add some site-wide video playback quality control settings to Dailymotion.

目前为 2014-07-27 提交的版本。查看 最新版本

作者
David Toso
评分
0 0 0
版本
0.0.1
创建于
2014-07-27
更新于
2014-07-27
大小
8.7 KB
许可证
暂无
适用于

DailyMotion "Playback Quality Control" (0.0.1).

***EXPERIMENTAL***

Description

The Dailymotion player playback settings suck a bit. Specifically:

  • There's no site-wide setting for whether you want Automatic Playback of videos
  • The "Optimal" playback quality setting just isn't, and there's no site-wide setting
    for desired playback quality.

This UserScript removes the normal player and replaces it with the player that Dailymotion
allow you to embed on your own site, which llows some control of playback settings.
This UserScript allows you to directly express your desired site-wide preferences for
Auto Play and Maximum Desired Quality.

Known Issues:

  • There's a small possibility that I don't get to remove the normal player before it
    starts playing the video. Feedback about how to prevent this welcome.
  • Detection of the available resolutions for a video requires talking to the Dailymotion
    REST API. This is quite slow. I've added a bit of animation to the video display box
    to smooth this out, but it could do with some tweaking.
  • Clicking the player (not one of the buttons) causes the current video to pause and the
    video page to be re-loaded in a new window/tab. I'll address this shortly with some
    sort of blocking element(s).
  • I've not tested this at all with HTML5.

Long-term stability:

  • This is using the public REST API and the public Player API - both in the recommended
    way, so that shouldn't break any time soon.
  • Dailymotion occasionally change how the tabs below the video are rendered, so if they
    do the 'Quality' tab won't work/display.

I'll try to keep this updated as much as humanly possible.