国家开放大学智能倍速助手 --有问题扫下方二维馬文客服

国家开放大学自动刷课,专业视频加速解决方案,支持快捷键/记忆速度,登陆后进入学习空间“我的课程”自动开始学习 客服V:wkwk796

当前为 2025-03-26 提交的版本,查看 最新版本

// ==UserScript==
// @name         国家开放大学智能倍速助手 --有问题扫下方二维馬文客服
// @namespace    http://tampermonkey.net/
// @version      2.3.3
// @description  国家开放大学自动刷课,专业视频加速解决方案,支持快捷键/记忆速度,登陆后进入学习空间“我的课程”自动开始学习  客服V:wkwk796
// @author       wkwk796
// @match        *://*.ouchn.cn/*
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // 创建浮动控制面板
    const panel = document.createElement('div');
    panel.style = `
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 10px;
        border-radius: 5px;
        z-index: 9999;
    `;

    // 添加技术支持信息
    const contact = document.createElement('div');
    contact.innerHTML = '技术支持:wkwk796';
    panel.appendChild(contact);

    // 创建速度选择器
    const speedControl = document.createElement('select');
    [1.0, 1.5, 2.0, 2.5, 3.0].forEach(speed => {
        const option = document.createElement('option');
        option.value = speed;
        option.text = speed + 'x';
        speedControl.appendChild(option);
    });

    speedControl.addEventListener('change', function() {
        setPlaybackSpeed(this.value);
    });

    panel.appendChild(speedControl);
    document.body.appendChild(panel);

    // 设置播放速度
    function setPlaybackSpeed(speed) {
        const videos = document.querySelectorAll('video');
        videos.forEach(video => {
            video.playbackRate = speed;
        });
    }

    // 自动检测视频加载
    const observer = new MutationObserver(() => {
        setPlaybackSpeed(speedControl.value);
    });

    observer.observe(document.body, {
        childList: true,
        subtree: true
    });

    // 初始设置
    setPlaybackSpeed(1.5);
    speedControl.value = 1.5;
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址