// ==UserScript== // @name 国家中小学平台 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 国家中小学平台自动16倍数 // @author moxiaoying // @match http*://www.zxx.edu.cn/teacherTraining/courseDetail* // @icon https://www.google.com/s2/favicons?sz=64&domain=zxx.edu.cn // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; setInterval(()=>{ //debugger; document.querySelector('.vjs-tech').playbackRate = 16 document.querySelector('.vjs-big-play-button').click() currentItem = document.querySelector('.tcourse-catalog .resource-item-active') if(currentItem.querySelector('div').getAttribute('title').includes('学完')){ currentItem.nextElementSibling.click() } },5*1000); // Your code here... })();