A script that can help you to browse video automatically.
This script is aimed at the theoretical study of the Hangzhou driver's license course. The video website is http://hz.5u5u5u5u.com/home.action.
- Identify Verification code automatically.
- Simulate mouse and keyboard operations.
The script was only tested on the Firefox browser.
- Install Tampermonkey on your Firefox browser.
- I use Chaojiying platform to identify Verification Code. So, you have to register an account on http://www.chaojiying.com/. Besides, fill in your account information in the code.(You have to recharge on the platform, ¥1 is enough)
const userName = 'xxxxxx'; const passWord = 'xxxxxx'; const softId = 'xxxxxx';
- Use Tampermonkey to run "browseVideo.js"
- Open Video website, click on the video and play it. Then you can do other things, the script will help you browse video automatically.
- Handling Verification Code recognition failure.
- Automatic log-in.
- Play the next video automatically.