// ==UserScript==
// @name onlinedu自动播放
// @namespace c-h.cc
// @version 0.3
// @description 自动点击播放器元素以继续播放
// @author JKRaks
// @match www.onlinedu.org.cn
// @include http://www.onlinedu.org.cn/*
// @include https://www.onlinedu.org.cn/*
// @grant none
// @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @downloadURL none
// ==/UserScript==
(function() {
$('body').append('
')
setInterval(function(){
try{
var vdo =$('video').get(0)
var State = vdo.paused
if(State){
ck()
}
}
catch(err){}
},300)
function ck(){
$(".dplayer-video-wrap").click()
$('#uul li:eq(0)').before(''+getNow()+'重新播放')
}
function getNow() {
var myDate = new Date();
var month=myDate.getMonth()+1;
var date=myDate.getDate();
var h=myDate.getHours();
var m=myDate.getMinutes();
var s=myDate.getSeconds();
var now = month+'/'+date+' '+h+':'+m+':'+s;
return now
}
})();