Detailed Installation Guide
Before installing the script, you need to install the Tampermonkey extension. Tampermonkey is a highly regarded browser extension for loading user scripts, supporting Chrome, Edge, Firefox, Safari, Opera, and many domestic browsers.
After installing the Tampermonkey extension, click the link below for one-click installation:
If you are first-time installing Tampermonkey, the methods are as follows:
Standard Installation
To install Tampermonkey normally, you just need to install it through the official website or the app store. However, often the links below may not be accessible in China, in which case refer to the domestic installation method below.
Tampermonkey official website: https://www.tampermonkey.net You can download and install it following the official website instructions or install it through the browser's app store.
If your network can access the app store address below, then install directly:
- Tampermonkey - Chrome Web Store
- Tampermonkey - Edge Add-ons
- Tampermonkey - Firefox Add-ons
- Tampermonkey - Safari App Store
- Tampermonkey - Opera Add-ons
After installing the Tampermonkey extension, click the link below to complete the script installation:
h5player.user.js (Click here to install the H5Player enhancement script)
You can also enter the URL below in the browser's address bar to install the script:
Installation in China
Due to the network environment in China, it is often not possible to install directly through the browser's app store. In this case, the offline installation method must be used to install Tampermonkey.
Below is the offline installation package of Tampermonkey. Download the offline package and then install it from the extension page of the browser.
Step One: Download the Offline Package
The official address of Tampermonkey's offline package may not be accessible. If not, use the following domestic addresses, but if possible, please prioritize the official address:
Domestically accessible network disk file addresses:
- Tampermonkey.crx - Lanzou Cloud Extraction Code: fn2o
- Tampermonkey.crx - Baidu Cloud Extraction Code: ayi3
If you are using a domestic browser such as 360 Extreme Browser, dragging the downloaded offline package to the browser window will complete the installation.
If not, or if direct dragging does not install, then please proceed with the steps below.
Step Two: Enable Developer Mode
You can open the browser's extension page via the menu option or by entering chrome://extensions/
in the address bar, then activating the developer mode.
Step Three: Unzip the Offline Package and Load for Installation
The downloaded offline package is essentially a tar archive. On Windows, change the file name extension to .tar
and unzip it using a tool like zip or rar, then go to the extension page, click on Load unpacked
, and select the unzipped folder to complete the installation.
For macOS or Linux systems, unzip using the command line, then load and install via the extension page.
# Note to modify the file name according to the actual situation
tar -xvf tampermonkey_stable.crx
Step Four: Install the h5player Enhancement Script
h5player.user.js (Click here to install the H5Player enhancement script)
You can also enter the following URL in the browser's address bar to complete the script installation:
The operational effect after installation is shown below:
Mobile Installation
For users with mobile needs, the script is also supported.
On mobile devices, Kiwi Browser is the recommended choice, as it can install the Tampermonkey plugin like a desktop environment and then install the script through Tampermonkey.
If you can access the Google Play Store, you can install Kiwi Browser directly through it.
If you cannot access the Google Play Store, you can download and install it through the following mirror addresses:
If the above mirror addresses are inaccessible, download and install via the following cloud disk addresses:
- Kiwi Browser - Lanzou Cloud Extraction Code: 6hx7
- Kiwi Browser - Baidu Cloud Extraction Code: m1yb
After installing the Kiwi Browser, install the Tampermonkey plugin by following the previous installation methods.
The operational effect after installation is shown below:
Installation on AdGuard Client
The AdGuard client also supports loading user scripts, and the h5player script can be installed and run via AdGuard. Compared to using the Tampermonkey plugin, there are some limitations to user scripts in AdGuard, but core functions are still supported.
The benefit of injecting scripts via the AdGuard client is that the script can be executed on any webpage, enabling the enhancement of some webpages that do not support the Tampermonkey client.
Currently, the script's support in this regard is not fully optimized. If you need to load the script in this way, please let me know via issues, and I will decide whether to adapt and perfect it based on actual conditions.