Simple code that automatically presses play when a video is paused on Edgenuity
// ==UserScript==
// @name Auto Play if Paused (Edge)
// @namespace https://gf.qytechs.cn/en/users/1527556-imhungrie
// @version 1.0
// @description Simple code that automatically presses play when a video is paused on Edgenuity
// @match *://*/*
// @license MIT
// @grant none
// ==/UserScript==
(function() {
'use strict';
function clickPlayButton() {
const btn = document.querySelector('.vjs-play-control');
if (btn && (btn.title === 'Play' || btn.getAttribute('aria-label') === 'Play')) {
btn.click();
}
}
const observer = new MutationObserver(() => {
clickPlayButton();
});
window.addEventListener('load', () => {
observer.observe(document.body, { childList: true, subtree: true, attributes: true });
setInterval(clickPlayButton, 3000);
});
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址