send seek request at time interval.
当前为
// ==UserScript==
// @name YouTube automatic seek request
// @namespace 神楽屋
// @version 0.4.3
// @description send seek request at time interval.
// @author 神楽 舞衣
// @match http://*/*
// @match https://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var timerid;
function videoseek() {
var player1 = document.getElementsByTagName('video')[0];
if (player1) {
player1.addEventListener('play', videoseek, false);
if (!player1.paused && (player1.currentTime > 5)) { player1.currentTime = player1.currentTime; }
}
clearTimeout(timerid);
timerid = setTimeout(videoseek, 1200000);
}
videoseek();
})();