Greasy Fork

Greasy Fork is available in English.

云上全平台🦄️支持自动答题|题库搜|刷资源|刷视频|视频加速|快速背题|AI搜题|AI问答|自动刷课--需使请用扫描下方二维馬问客服

🐯全网免费仅做一款脚本🐯】、【🚀已完美兼容、智慧树、中国大学mooc、慕课、雨课堂、新国开、超星、学习通、知到、国家开放大学、蓝墨云、职教云、智慧职教、云班课精品课、山东专技、西财在线剩余网站仅支持部分功能🚀】【半兼容、绎通云、U校园、学堂在线】、【😎完美应付测试,全自动答题,一键完成所有资源学习(视频挨个刷时长不存在滴)、视频倍速😎】、

目前为 2025-03-31 提交的版本。查看 最新版本

// ==UserScript==
// @name         云上全平台🦄️支持自动答题|题库搜|刷资源|刷视频|视频加速|快速背题|AI搜题|AI问答|自动刷课--需使请用扫描下方二维馬问客服
// @namespace    https://github.com/wkwk796
// @version      1.4
// @description  🐯全网免费仅做一款脚本🐯】、【🚀已完美兼容、智慧树、中国大学mooc、慕课、雨课堂、新国开、超星、学习通、知到、国家开放大学、蓝墨云、职教云、智慧职教、云班课精品课、山东专技、西财在线剩余网站仅支持部分功能🚀】【半兼容、绎通云、U校园、学堂在线】、【😎完美应付测试,全自动答题,一键完成所有资源学习(视频挨个刷时长不存在滴)、视频倍速😎】、
// @author       Wkwk796
// @match        *://*.chaoxing.com/*
// @match        *://*.zhihuishu.com/*
// @match        *://mooc1.chaoxing.com/nodedetailcontroller/*
// @match        *://*.chaoxing.com/mooc-ans/work/doHomeWorkNew*
// @match        *://*.chaoxing.com/work/doHomeWorkNew*
// @match        *://*.edu.cn/work/doHomeWorkNew*
// @match        *://*.asklib.com/*
// @match        *://*.chaoxing.com/*
// @match        *://*.hlju.edu.cn/*
// @match        *://lms.ouchn.cn/*
// @match        *://xczxzdbf.moodle.qwbx.ouchn.cn/*
// @match        *://tongyi.aliyun.com/qianwen/*
// @match        *://chatglm.cn/*
// @match        *://*.zhihuishu.com/*
// @match        *://course.ougd.cn/*
// @match        *://moodle.syxy.ouchn.cn/*
// @match        *://moodle.qwbx.ouchn.cn/*
// @match        *://elearning.bjou.edu.cn/*
// @match        *://whkpc.hnqtyq.cn:5678/*
// @match        *://study.ouchn.cn/*
// @match        *://www.51xinwei.com/*
// @match        *://*.w-ling.cn/*
// @match        *://xuexi.jsou.cn/*
// @match        *://*.edu-edu.com/*
// @match        *://xuexi.jsou.cn/*
// @match        *://spoc-exam.icve.com.cn/*
// @match        *://*.icve.com.cn/*
// @match        *://zice.cnzx.info/*
// @grant        unsafeWindow
// @grant        GM_xmlhttpRequest
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_info
// @license      MIT
// @icon         https://static.zhihuishu.com/static/img/favicon.ico
// ==/UserScript==

// ==/UserScript==

(function() {
    'use strict';

    // 自定义控制面板样式
    GM_addStyle(`
        .control-panel {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.9);
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 99999;
            font-family: Arial;
            min-width: 200px;
        }
        .panel-title {
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }
        .contact-info {
            color: #666;
            font-size: 12px;
            margin-top: 10px;
            border-top: 1px solid #eee;
            padding-top: 10px;
        }
    `);

    // 创建控制面板
    const panel = document.createElement('div');
    panel.className = 'control-panel';
    panel.innerHTML = `
        <div class="panel-title">🎮 自动播放控制</div>
        <div>状态:<span id="play-status">等待中...</span></div>
        <div class="contact-info">联系作者:wkwk796</div>
    `;
    document.body.appendChild(panel);

    // 通用视频检测函数
    function checkAndPlayVideo() {
        const statusSpan = document.querySelector('#play-status');

        // 超星学习通处理
        const cxVideo = document.querySelector('video');
        if (cxVideo) {
            if (cxVideo.paused) {
                cxVideo.play().then(() => {
                    cxVideo.playbackRate = 2.0;
                    statusSpan.textContent = '播放中 (2x)';
                    statusSpan.style.color = 'green';
                }).catch(err => {
                    statusSpan.textContent = '播放被阻止,请点击页面任意位置';
                    statusSpan.style.color = 'red';
                });
            }
            return;
        }

        // 智慧树处理
        const zhsVideo = document.querySelector('.vjs-tech');
        if (zhsVideo && zhsVideo.paused) {
            zhsVideo.play();
            statusSpan.textContent = '播放中';
            statusSpan.style.color = 'green';
            return;
        }
    }

    // 自动播放控制器
    let playInterval = setInterval(checkAndPlayVideo, 3000);

    // 防挂机检测(随机移动鼠标)
    setInterval(() => {
        window.dispatchEvent(new MouseEvent('mousemove', {
            clientX: Math.random() * window.innerWidth,
            clientY: Math.random() * window.innerHeight
        }));
    }, 15000);

    // 页面可见性处理
    document.addEventListener('visibilitychange', () => {
        if (document.visibilityState === 'visible') {
            playInterval = setInterval(checkAndPlayVideo, 3000);
        } else {
            clearInterval(playInterval);
        }
    });

    // 错误处理
    window.addEventListener('error', (e) => {
        console.error('播放器错误:', e);
        document.querySelector('#play-status').textContent = '发生错误,请刷新页面';
    });
})();