Skip to content

h5player for tampermonkey

Web Player Enhancement Script


Introduction

This script enhances video playback and is compatible with all H5 video websites, such as: Bilibili, TikTok, Tencent Video, Youku, iQIYI, Xigua Video, YouTube, Weibo Video, Zhihu Video, Sohu Video, Netease Open Class, Baidu Netdisk, AliYun Disk, TED, Instagram, Twitter, and so on.

The script allows keyboard shortcuts for full course control, supporting functions like speed control for playback, video screenshot, picture-in-picture, webpage full screen, adjusting brightness, saturation, contrast, enhanced customization configurations availability, providing you a pleasing online video playing experience.

Moreover, it also offers the ability to fast forward short pre/post rolls, speed up learning from online tutorials/educational videos, and privately store offline audio and video files.

h5player-ui

Application Scenarios

  • Endless speed control: control the rhythm freely, no matter how fast or slow.
  • Speed learning: Stay one step ahead with high-speed tutorial and lecture viewing.
  • Enjoy drama: Turn tedious viewing into joyful experience.
  • Quick short films: Say goodbye to boring waiting.
  • Video screenshot: Archive notes, clip and share conveniently.
  • Offline video: View locally, send privately, and create an offline library.
  • Real-time live streaming: Say no to latency, always stay concurrent.

Technical Features

  • Broad compatibility: All webpages with video tags are supported, even those embedded in iframes and shadowdoms.
  • Cross-domain control: Shortcuts seamlessly connect even on cross-domain restricted pages.
  • Multi-instance support (compatible with platforms like Twitter and Instagram).
  • Progress tracking.
  • Speed control memory.
  • Video zooming.
  • Picture-in-picture capability.
  • Cross-Tab control of picture-in-picture.
  • Video screenshot feature.
  • Audio instance control.
  • Offline storage of video/audio files.
  • Live video stream extraction.
  • Customizable feature additions through configurations.

Discussion Groups


Add me and I'll Invite You to the Group
(Specify: from h5player)
Telegram Group
(Join Directly)

Custom Functionality

The script already supports most commonly used features. If you need more, you can achieve this through custom configurations. For details, refer to: Custom Configurations

If you don't know how to program or don't want the hassle, but have a demand for more complex features, you may consider paying the author for 'Paid Customization';
[Contact the author through the above WeChat or TG](#Discussion Groups)

Installation

Before installing the script, the Tampermonkey plug-in should be installed first. Tampermonkey is a well-received browser extension for loading user scripts, which supports: Chrome, Edge, Firefox, Safari, Opera, and numerous domestic brand browsers.

After installing the Tampermonkey plug-in, click the link below for one-click installation:

For more detailed installation help, see here: Detailed Installation Tutorial

User Guide

Shortcut Key List

Shortcut KeyDescription
Fast forward 5 seconds
Rewind 5 seconds
Ctrl+→Fast forward 30 seconds
Ctrl+←Rewind 30 seconds
Volume increase 5%
Volume decrease 5%
Ctrl+↑Volume increase 20%
Ctrl+↓Volume decrease 20%
CSpeed up playback +0.1
XSlow down playback -0.1
ZNormal speed playback
shift+CEnlarge video screen +0.05
shift+XShrink video screen -0.05
shift+ZRestore video screen
shift+PEnter or exit picture in picture function
shift+SScreenshot, capture current frame and save
shift+DDownload audio/video files (experimental feature)
shift+REnable or disable automatic resume playback progress feature
shift+→Move screen to the right 10px
shift+←Move screen to the left 10px
shift+↑Move screen upwards 10px
shift+↓Move screen downwards 10px
EnterEnter/Exit Full Screen
shift+EnterEnter/Exit Web Full Screen
NNext video/chapter (only supported on some websites)
DPrevious frame (for fine-tuning when taking screenshots to find the best quality frame)
FNext frame (for fine-tuning when taking screenshots to find the best quality frame)
EIncrease brightness %
WDecrease brightness %
TIncrease contrast%
RDecrease contrast %
UIncrease saturation %
YDecrease saturation %
OIncrease hue by 1 degree
IDecrease hue by 1 degree
KIncrease blur by 1 px
JDecrease blur by 1 px
QImage reset
SRotate screen by 90 degrees
MFlip screen horizontally
shift+MFlip screen vertically
ctrl+\Whether the shortcut key is available on the whole webpage, default is true
Ctrl+spaceDisable/Enable this playback plugin

Supported Website List

This plugin supports all websites that use HTML5 technology for video playback

Below is a list of some common websites for easy click testing:

Video WebsitesURL
Bilibilihttps://bilibili.com
Tencent Videohttps://v.qq.com
Douyinhttps://douyin.com
iQIYIhttps://iqiyi.com
Youkuhttps://youku.com
YouTubehttps://youtube.com
TEDhttps://www.ted.com
Instagramhttps://www.instagram.com
Twitterhttps://twitter.com
Telegram webhttps://web.telegram.org
Pornhubhttps://www.pornhub.com
Douyuhttps://www.douyu.com
Huyahttps://www.huya.com
Weibo TVhttps://weibo.com/tv
Kueran Videohttps://krcom.cn
Sohu Videohttps://tv.sohu.com
NetEase Open Classhttps://open.163.com/ted
QQ Music - MVhttps://y.qq.com/portal/mv_lib.html
Phoenix Videohttps://v.ifeng.com/
Fun TVhttps://www.fun.tv
PPTV Polymeric Powerhttps://www.pptv.com
Qilu Nethttps://v.iqilu.com
Sunshine Satellite TVhttps://www.isuntv.com
CCTV Networkhttps://www.cntv.cn
Mango TVhttps://www.mgtv.com
Watermelon Videohttps://www.ixigua.com
Xin Chuan Broadbandhttps://v.zhibo.tv
China Sportshttps://video.zhibo.tv
AcFunhttps://www.acfun.cn
Kwaihttps://www.kuaishou.com
MioMio Danmu Websitehttps://www.miomio.tv
56 nethttps://www.56.com
VKhttps://vk.com
Vinehttps://vine.co
Magistohttps://www.magisto.com
CBShttps://www.cbs.com
FC2 Videohttps://video.fc2.com
Audio WebsitesURL
Ximalayahttps://www.ximalaya.com/
Lazy to Listenhttps://www.lrts.me/
Dragonfly FMhttps://www.qtfm.cn/
Kugou Audiobookhttps://www.kugou.com/ts/
Baidu Wangpan Audio Fileshttps://pan.baidu.com/
AliYun Disk Audio Fileshttps://aliyundrive.com/
Other Network Disk Audio Files......

If the website you frequent is not well supported, feel free to raise issues

Other Notes

    1. This script is developed and maintained in my spare time. Feedback is welcome, but any negative reviews are not accepted.
    1. If you find that the script is completely unusable, it's generally not a problem with the script itself. You are advised to try reinstalling the plugin.

Update Log

Support the Author

If my efforts have brought convenience to you, please do not hesitate to give your appreciation.

How much in donations does an open-source work with a million installations receive in a year?

PayPal: paypal.me/BlazeLiu

如果我的努力给你带来了便利,请不要吝啬你的赞赏


Released under the GPL License.