您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
自动播放下一集
当前为
// ==UserScript== // @name enetedu.com自动播放下一集 // @namespace http://tampermonkey.net/ // @version 0.1.0 // @description 自动播放下一集 // @author moxiaoying // @match https://a.gp.enetedu.com/MyCourse/Process* // @icon https://www.google.com/s2/favicons?sz=64&domain=enetedu.com // @grant none // @run-at document-end // @license MIT // ==/UserScript== (function() { 'use strict'; const sleep = async (time_delay) => { return new Promise(resolve => { setTimeout(() => { resolve() }, time_delay*1000) }) } const iframe = document.querySelector('body > div > table:nth-child(13) > tbody > tr > td > table:nth-child(2) > tbody > tr > td > table:nth-child(2) > tbody > tr > td:nth-child(2) > table:nth-child(1) > tbody > tr > td > table:nth-child(1) > tbody > tr > td:nth-child(3) > form > table > tbody > tr > td:nth-child(2) > iframe') async function main(){ await sleep(3) const video = iframe.contentDocument.getElementsByTagName('video')[0] video.onended = (e)=> { document.querySelectorAll('.tishivalju')[1].click() } } main() })();