// ==UserScript== // @name 大卡学习钉钉加速!! // @namespace JuanJuanWang // @version 0.3 // @description 大卡学习钉钉每年一次刷刷刷 // @author JuanJuanWang // @match https://im.dingtalk.com/ // @match https://dinglearning.cn/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; var func = () => { if((!window.location.href.includes("VideoPlay")&& document.getElementById("ifrm")!=null)) { document.getElementById("ifrm").remove(); } 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 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... })();