freeok.lol自动下一集

油猴代码

点击查看代码
// ==UserScript==
// @name         freeok.lol自动下一集
// @namespace    http://tampermonkey.net/
// @version      2024-11-15
// @description  try to take over the world!
// @author       You
// @match        https://freeok.lol/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=freeok.lol
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    setInterval(function () {
let video = document.querySelectorAll('iframe')[2].contentWindow.document.querySelector('video')
video.addEventListener('ended', function () {
    let 当前播放集 = document.querySelector('.module-play-list-link.active')
    if (当前播放集) {
        let 下一集 = 当前播放集.nextElementSibling
        if (下一集) {
            下一集.click()
        }
    }
})
}, 5000)
})();
posted @ 2024-11-15 09:39  神仙不在  阅读(1507)  评论(0)    收藏  举报