您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Useful AFK tools for EdPuzzle
当前为
// ==UserScript== // @name Edpuzzle no pause // @namespace http://tampermonkey.net/ // @version 4.01 // @description Useful AFK tools for EdPuzzle // @author J // @match https://edpuzzle.com/* // @run-at document-end // @grant none // ==/UserScript== //(function() { var beep=document.createElement("audio"); beep.id="beep"; beep.src="https://www.soundjay.com/button/sounds/beep-01a.mp3"; beep.type="audio/mpeg"; var played = false; setTimeout(function(){ window.bx=document.createElement("input"); bx.type="checkbox"; window.np=document.createElement("input"); np.type="checkbox"; window.ctn=document.createElement("input"); ctn.type="checkbox"; document.getElementsByClassName("PNsDTVSfY4")[0].prepend(bx) document.getElementsByClassName("PNsDTVSfY4")[0].prepend("Beep on question? ") document.getElementsByClassName("PNsDTVSfY4")[0].prepend(np); document.getElementsByClassName("PNsDTVSfY4")[0].prepend("No pause? "); document.getElementsByClassName("PNsDTVSfY4")[0].prepend(ctn); document.getElementsByClassName("PNsDTVSfY4")[0].prepend("Auto continue? "); }, 1500) setInterval(tick,50); function tick(){ //No Pause try{ if(document.getElementsByClassName("_3BJiQRVise")[0].ariaLabel=="Play"&&np.checked){ document.getElementsByClassName("_3BJiQRVise")[0].click(); } } catch(e){ //nobody cares! } //Auto continue try{ if(document.getElementsByClassName("_3pAlsuWUO9 _33wl7jxuFe")[0].innerText!=="Submit"&&ctn.checked){ document.getElementsByClassName("_3pAlsuWUO9 _33wl7jxuFe")[0].click(); } } catch(e){ //nobody cares again! } //Beep on question try{ if(document.getElementsByClassName("_3pAlsuWUO9 _33wl7jxuFe")[0].innerText=="Submit"&&bx.checked){ if(!played){ played=true; beep.play(); } } else { played=false; } } catch(e){ played=false; } } //})();