// ==UserScript== // @name Skip_CrazyGang // @namespace http://tampermonkey.net/ // @version 0.1 // @description 用于对学习视频网站的确认跳过 // @author CrazyGang // @match https://wws.zgzjzj.com/learncenter/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license MIT // @downloadURL none // ==/UserScript== /*jshint esversion: 6 */ (function() { 'use strict'; setInterval(() => { let modalButtons = document.getElementsByClassName('el-button el-button--default el-button--small el-button--primary') let playButtons = document.getElementsByClassName('vjs-play-control vjs-control vjs-button vjs-paused') if (modalButtons.length) { modalButtons[0].click() } if (playButtons.length) { playButtons[0].click() } }, 1000) // Your code here... })();