拖動!新課綱銜接平台!!

讓你任意的拖動進度條!

// ==UserScript==
// @name         拖動!新課綱銜接平台!!
// @namespace    https://greasyfork.org/users/795886
// @version      0.4
// @description  讓你任意的拖動進度條!
// @author       ZRE
// @include      *://ecc.pro.edu.tw/BackEnd/TR_Watch/Index/*
// @grant        none
// ==/UserScript==

(function() {
	videojs("MainVideo").ready(function () {
		var sheet = document.createElement('style');
		sheet.innerHTML = `
		.video-js .vjs-time-control{display: block;}
		.video-js .vjs-remaining-time{display: none;}
		.vjs-progress-control {display: inherit !important;}
		`;
		document.body.appendChild(sheet);
		this.off('seeking');
		this.off('seeked');
        this.off('timeupdate');
		this.on('timeupdate', function(){
			this.controlBar.currentTimeDisplay.updateContent();
			this.controlBar.progressControl.seekBar.startUpdate();
		});
	  });
})();