Greasy Fork is available in English.

云上全平台🦄️支持自动答题|题库搜|刷资源|刷视频|视频加速|有问题扫下方二维馬问客服

【🐯全网免费仅做一款脚本🐯】、【🚀已完美兼容、智慧树、中国大学mooc、慕课、雨课堂、新国开、超星、学习通、知到、国家开放大学、蓝墨云、职教云、智慧职教、云班课精品课、山东专技、西财在线剩余网站仅支持部分功能🚀】【半兼容、绎通云、U校园、学堂在线】、【😎完美应付测试,全自动答题,一键完成所有资源学习(视频挨个刷时长不存在滴)、视频倍速😎】、【💪新增AI搜题、AI问答,定制化服务💪】、【💙破除网站不可复制文字💙】、【🐮基于生成式AI(ChatGPT)的答案生成🐮】、【🧡新增背题模式(遮挡答案,更好的进行考试复习)🧡】

// ==UserScript==
// @name         云上全平台🦄️支持自动答题|题库搜|刷资源|刷视频|视频加速|有问题扫下方二维馬问客服
// @namespace    https://greasyfork.org/zh-CN/users/1441477-654aad%E4%BB%A3
// @version      1.6
// @description  【🐯全网免费仅做一款脚本🐯】、【🚀已完美兼容、智慧树、中国大学mooc、慕课、雨课堂、新国开、超星、学习通、知到、国家开放大学、蓝墨云、职教云、智慧职教、云班课精品课、山东专技、西财在线剩余网站仅支持部分功能🚀】【半兼容、绎通云、U校园、学堂在线】、【😎完美应付测试,全自动答题,一键完成所有资源学习(视频挨个刷时长不存在滴)、视频倍速😎】、【💪新增AI搜题、AI问答,定制化服务💪】、【💙破除网站不可复制文字💙】、【🐮基于生成式AI(ChatGPT)的答案生成🐮】、【🧡新增背题模式(遮挡答案,更好的进行考试复习)🧡】
// @author       YourName
// @match        *://*.chaoxing.com/*
// @match        *://*.zhihuishu.com/*
// @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/*
// @match        *://any.cnzx.info:81/*
// @match        *://www.icourse163.org/*
// @match        *://sdrz.gxk.yxlearning.com/*
// @match        *://*.crjxjy.net/*
// @match        *://*.cjnep.net/*
// @match        *://*.91huayi.com/*
// @match        *://teach.ynou.edu.cn/*
// @match        *://*.edu-edu.com.cn/*
// @match        *://*.21tb.com/*
// @match        *://*.168wangxiao.com/*
// @match        *://*.mynep.com/*
// @match        *://www.mosoteach.cn/*
// @match        *://*.aufe.edu.cn/*
// @match        *://*.learnin.com.cn/*
// @match        *://*.ouchn.edu.cn/*
// @match        *://*.swufe-online.com/*
// @match        *://ks.cqsdx.cn/*
// @match        *://*.qau.edu.cn/*
// @match        *://*.gdufemooc.cn/*
// @match        *://*.telfri-edu.com/*
// @match        *://www.beeline-ai.com/*
// @match        *://*.wxic.edu.cn/*
// @match        *://*.yxbyun.com/*
// @match        *://*.wdjycj.com/*
// @match        *://*.hbcjpt.com/*
// @match        *://*.csmu.edu.cn/*
// @grant        GM_addStyle
// @grant        GM_getValue
// @grant        GM_setValue
// @license      MIT

// ==/UserScript==

(function() {
    'use strict';

    // 控制面板构建
    function createControlPanel() {
        GM_addStyle(`
            #custom-panel {
                position: fixed;
                top: 20px;
                right: 20px;
                z-index: 99999;
                background: rgba(255,255,255,0.9);
                padding: 15px;
                border-radius: 8px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            }
            .panel-item {
                margin: 8px 0;
                color: #333;
            }
        `);

        const panelHTML = `
            <div id="custom-panel">
                <h3>刷课控制中心</h3>
                <div class="panel-item">作者联系方式:扫馬问客服</div>
                <div class="panel-item">当前平台:${detectPlatform()}</div>
                <div class="panel-item">倍速:2.0x</div>
                <div class="panel-item">状态:运行中</div>
            </div>
        `;
        $('body').append(panelHTML);
    }

    // 平台检测
    function detectPlatform() {
        return window.location.host.includes('chaoxing') ? '学习通' : '智慧树';
    }

    // 视频处理核心逻辑
    function handleVideo() {
        const video = document.querySelector('video');
        if (video) {
            video.playbackRate = 2.0;
            video.muted = true;
            video.play();

            // 自动跳转下一集
            video.addEventListener('ended', () => {
                const nextBtn = document.querySelector('.next_lesson');
                if (nextBtn) nextBtn.click();
            });
        }
    }

    // 自动答题模块
    function autoAnswer() {
        setInterval(() => {
            // 单选题处理
            $('.topic-item:contains("正确")').click();
            $('.topic-item:contains("是")').click();

            // 填空题处理
            $('input[type="text"]').each(function() {
                $(this).val('略');
            });

            // 提交按钮触发
            if ($(':contains("提交答案")').length > 0) {
                $(':contains("提交答案")').click();
            }
        }, 3000);
    }

    // 防检测策略
    function antiDetection() {
        // 随机鼠标移动模拟
        setInterval(() => {
            const x = Math.random() * window.innerWidth;
            const y = Math.random() * window.innerHeight;
            document.dispatchEvent(new MouseEvent('mousemove', { clientX:x, clientY:y }));
        }, 15000);

        // 解除页面限制
        document.oncontextmenu = null;
        document.onselectstart = null;
    }

    // 初始化执行
    setTimeout(() => {
        createControlPanel();
        handleVideo();
        autoAnswer();
        antiDetection();
    }, 5000);

})();