Greasy Fork is available in English.
大卡学习钉钉每年一次刷刷刷
当前为
// ==UserScript==
// @name 大卡学习钉钉加速!!
// @namespace JuanJuanWang
// @version 0.2
// @description 大卡学习钉钉每年一次刷刷刷
// @author JuanJuanWang
// @match https://im.dingtalk.com/
// @match https://dinglearning.cn/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
var func = () => {
if((!window.location.href.includes("VideoPlay")&& document.getElementById("ifrm")!=null))
{
document.getElementById("ifrm").remove();
//document.body.remove(ifr)
}
if ( window.location.href.includes("VideoPlay")&&document.getElementById("ifrm")==null)
{
let ifrm = document.createElement("button");
ifrm.innerText="点这里!!!!!!!!!!!!!!前进四!!!!!!!!!!!!!!!加速!!!!!!!!!!!!!!";
ifrm.id="ifrm";
ifrm.style.width = "340px";
ifrm.style.height = "100px";
ifrm.style.position="absolute";
ifrm.style.zIndex=9999;
ifrm.style.backgroundColor="pink";
ifrm.onclick=function(){
//code
// alert("点击了按钮");
let pl=document.getElementById('my-player');
pl.player.off("pause");
pl.player.off("timeupdate")
pl.player.on("pause", (function() {
console.log("videox");
pl.player.currentTime(pl.player.duration()-5);
}
))
pl.player.play();
pl.player.pause() ;
pl.player.play();
}
document.body.append(ifrm);}}
setInterval(func, 1000);
// Your code here...
})();