Greasy Fork

Greasy Fork is available in English.

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

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

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

// ==UserScript==
// @name         云上全平台🦄️支持自动答题|题库搜|刷资源|刷视频|视频加速|快速背题|AI搜题|AI问答|自动刷课--需使请用扫描下方二维馬问客服
// @namespace    https://github.com/wkwk796
// @version      1.0
// @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==

(function() {
    'use strict';
    
    // 添加开发者联系方式
    const contactInfo = {
        WX: 'wkwk796',
        website: 'https://github.com/wkwk796'
    };

    // 初始化配置
    const config = {
        videoSpeed: 2.0,    // 视频播放倍速
        autoAnswer: true,   // 自动答题
        autoSubmit: true,   // 自动提交
        debugMode: false    // 调试模式
    };

    // 创建控制面板
    function createControlPanel() {
        const panel = document.createElement('div');
        panel.style = 'position:fixed;top:20px;right:20px;background:#fff;padding:15px;box-shadow:0 0 10px rgba(0,0,0,0.2);z-index:9999;';
        panel.innerHTML = `
            <h3 style="margin:0 0 10px;color:#1890ff;">全平台学习助手</h3>
            <div>开发者QQ:${contactInfo.qq}</div>
            <div>版本:v${GM_info.script.version}</div>
            <hr>
            <label>视频倍速:<input type="number" value="${config.videoSpeed}" step="0.1" id="speedInput"></label>
            <button id="saveBtn" style="margin-left:10px;">保存配置</button>
        `;
        
        document.body.appendChild(panel);
        
        // 保存配置
        document.getElementById('saveBtn').addEventListener('click', () => {
            config.videoSpeed = parseFloat(document.getElementById('speedInput').value);
            GM_setValue('config', config);
            alert('配置已保存!');
        });
    }

    // 智慧树视频处理
    function handleZhihuishuVideo() {
        const video = document.querySelector('video');
        if (video) {
            video.playbackRate = config.videoSpeed;
            video.addEventListener('ended', autoNextChapter);
        }
    }

    // 超星学习通处理
    function handleChaoxing() {
        // 视频加速
        const video = document.querySelector('video');
        if (video) {
            video.playbackRate = config.videoSpeed;
            video.addEventListener('ended', autoNextChapter);
        }

        // 自动答题
        if (config.autoAnswer) {
            Array.from(document.querySelectorAll('.answerOption')).forEach(btn => {
                if (btn.innerText.includes('正确')) btn.click();
            });
        }
    }

    // 自动下一章节
    function autoNextChapter() {
        const nextBtn = document.querySelector('.nextBtn, .next-button');
        if (nextBtn) {
            setTimeout(() => nextBtn.click(), 3000);
        }
    }

    // 初始化脚本
    function init() {
        createControlPanel();
        
        // 加载保存的配置
        const savedConfig = GM_getValue('config');
        if (savedConfig) Object.assign(config, savedConfig);

        // 平台判断
        if (window.location.host.includes('chaoxing')) {
            handleChaoxing();
        } else if (window.location.host.includes('zhihuishu')) {
            handleZhihuishuVideo();
        }

        // 调试信息
        if (config.debugMode) {
            console.log('%c脚本已启动!问题反馈QQ:' + contactInfo.qq, 
                'color:white; background:#1890ff; padding:2px 5px;');
        }
    }

    // 延迟启动防止DOM未加载
    setTimeout(init, 1500);
})();