// ==UserScript== // @name 脚本全能助手兼容学习、AI课、考试、支持免费视频刷 | 超星学习通 | 智慧树 | U校园/AI | MOOC | 继续教育类 | 优课学堂 | 考试 | 青书学堂 | 优学院 | 超星学习通 | AI解答 | 学习通 | 学习强国 | 中国大学mooc | 智慧职教 | 青书学堂 | WeLearn | 知到 | 乐跑 | 世界运动 | 阳光跑 | 自动刷课|大学生课程|毕业论文降重|教师等等课程提供学习 // @namespace qinghy // @version 2.2.10 // @description 当前系统脚本有几种模式已完美兼容【学习通、智慧树、签到等课程】;【完美匹配应付考试、测试、搜题】;【是个崭新的平台,基于生成AI-ChatGpt生成答案】;【自动提交、自动收录答案、无需打开电脑运行脚本】;新手建议不使用js脚本进行操作,因操作过程麻烦上手难度不小、也不大,但是耗时间研究,也有可能研究出来还是收费的;可咨询群2️⃣已满:1042758197 请入咨询群3️⃣:74028813 // @author 2.0版本 // @grant none // @run-at document-end // @license MIT // @icon https://qinghy.top/upload/images/qinglyc.jpg // @match *://*.chaoxing.com/* // @match *://*.edu.cn/* // @match *://*.nbdlib.cn/* // @match *://*.hnsyu.net/* // @match *://*.gdhkmooc.com/* // @match *://*.zhihuishu.com/* // @match *://*.tmall.com/* // @match *://chaoshi.detail.tmall.com/* // @match *://*.tmall.hk/* // @match *://*.liangxinyao.com/* // @match *://*.jd.com/* // @match *://*.jd.hk/* // @match *://*.jkcsjd.com/* // @match *://*.yiyaojd.com/* // @match *://*.vip.com/* // @match *://*.uai.unipus.cn/* // @match *://*.u.unipus.cn/* // @match *://*.mooc.yinghuaonline.com/user/login/* // @match *://*.mooc.yinghuaonline.com/* // @match *://*.www.qingshuxuetang.com/* // @match *://*.www.buu.edu.cn/* // @match *://*.www.pmphmooc.com/* // @match *://*.vipglobal.hk/* // @match *://*.welearn.sflep.com/* // @match *://*.www.ouchn.edu.cn/* // @exclude *://login.tmall.com/* // @exclude *://pages.tmall.com/* // @exclude *://wq.jd.com/* // @connect mooc1-1.chaoxing.com // @connect mooc1.chaoxing.com // @connect mooc1-2.chaoxing.com // @connect passport2-api.chaoxing.com // @connect cx.icodef.com // @connect cx.icodef.com // @connect q.icodef.com // @connect azkou.cn // @connect localhost // @connect 127.0.0.1 // @grant GM_getResourceText // @grant GM_getValue // @grant GM_info // @grant GM_setValue // @grant GM_xmlhttpRequest // @grant unsafeWindow // @grant GM_getTab // @grant GM_saveTab // @grant GM_listValues // @grant GM_deleteValue // @grant GM_notification // @grant GM_addValueChangeListener // @grant GM_removeValueChangeListener // @run-at document-start // @antifeature ads // @namespace https://qinghy.top // @homepage https://scriptcat.org/zh-CN/script-show-page/3038 // @source https://qinghy.top // @antifeature payment 可使用web付费脚本平台进行播放、考试、题库 // ==/UserScript== (function() { 'use strict'; // 创建悬浮窗口 const floatingWindow = document.createElement('div'); floatingWindow.id = 'baidu-floating-window'; floatingWindow.style.cssText = ` position: fixed; z-index: 9999; background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); width: 300px; height: 500px; left: 20px; top: 20px; font-family: 'Microsoft YaHei', sans-serif; overflow: hidden; display: flex; flex-direction: column; `; // const titleBar = document.createElement('div'); titleBar.style.cssText = ` padding: 12px 15px; background-color: #f5f5f5; border-bottom: 1px solid #e0e0e0; cursor: move; display: flex; justify-content: space-between; align-items: center; user-select: none; flex-shrink: 0; `; const title = document.createElement('h3'); title.textContent = '青禾院-轻量版V 2.0'; title.style.cssText = ` margin: 0; font-size: 15px; color: #333; font-weight: normal; `; const closeBtn = document.createElement('span'); closeBtn.textContent = '×'; closeBtn.style.cssText = ` font-size: 20px; cursor: pointer; color: #999; line-height: 1; padding: 0 5px; `; // const navBar = document.createElement('div'); navBar.style.cssText = ` display: flex; border-bottom: 1px solid #f0f0f0; background-color: #fafafa; flex-shrink: 0; `; // const createNavButton = (text, onClick) => { const btn = document.createElement('button'); btn.textContent = text; btn.style.cssText = ` flex: 1; padding: 12px 0; background: none; border: none; cursor: pointer; font-size: 14px; color: #666; transition: all 0.3s; position: relative; `; btn.addEventListener('click', onClick); return btn; }; const homeBtn = createNavButton('首页', () => { homeContent.style.display = 'block'; settingsContent.style.display = 'none'; questionBankContent.style.display = 'none'; myContent.style.display = 'none'; description.style.display = 'block'; playButton.style.display = 'none'; }); const settingsBtn = createNavButton('设置', () => { homeContent.style.display = 'none'; settingsContent.style.display = 'block'; questionBankContent.style.display = 'none'; myContent.style.display = 'none'; description.style.display = 'block'; playButton.style.display = 'none'; }); const questionBankBtn = createNavButton('题库', () => { homeContent.style.display = 'none'; settingsContent.style.display = 'none'; questionBankContent.style.display = 'block'; myContent.style.display = 'none'; description.style.display = 'block'; playButton.style.display = 'block'; }); // const availableCourses = [ "学习通", "智慧树", "U校园", "MOOC", "学习强国", "知到", "乐跑", "优学院" ]; const myBtn = createNavButton('环境测试', () => { homeContent.style.display = 'none'; settingsContent.style.display = 'none'; questionBankContent.style.display = 'none'; myContent.style.display = 'block'; description.style.display = 'none'; playButton.style.display = 'none'; }); // const content = document.createElement('div'); content.style.cssText = ` padding: 15px; overflow-y: auto; flex-grow: 1; `; // const homeContent = document.createElement('div'); homeContent.innerHTML = `

首页



青禾院学习助手2.0版本

如果!如果!如果!2.0版本无法使用请移步至3.0版本,以下连接快速安装3.0版本


下载新版本3.0版本

`; // const settingsContent = document.createElement('div'); settingsContent.innerHTML = `

设置

(当前状态:已关闭)



(当前状态:已关闭)

87%
`; // const questionBankContent = document.createElement('div'); questionBankContent.innerHTML = `

题库【基本信息】

点击跳转到Tsing Wo College脚本批量播放


-------------------公告-------------------

`; // const myContent = document.createElement('div'); myContent.style.display = 'none'; myContent.innerHTML = ` `; // myContent.querySelector('#refresh-profile-btn').addEventListener('click', function() { // this.innerHTML = ` 刷新中... `; // setTimeout(() => { // // // this.innerHTML = ` 刷新资料 `; // const statusElement = myContent.querySelector('#profile-status'); statusElement.innerHTML = ` 正在重新获取环境配置... `; statusElement.style.color = '#52c41a'; setTimeout(() => { statusElement.innerHTML = ` 失败!请检查环境... `; }, 2000); }, 1000); }); // const spinStyle = document.createElement('style'); spinStyle.textContent = ` @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } `; document.head.appendChild(spinStyle); // const description = document.createElement('div'); description.innerHTML = `


说明


欢迎机构对接合作一手独家资源,顶级质量。可批量导入,可批量查课,顶级质量,自动售后,独家一号一ip。欢迎机构老师同行来谈合作


联系方式Q:417545796


`; // const playButton = document.createElement('button'); playButton.textContent = '播放'; playButton.style.cssText = ` width: 100%; padding: 10px; background-color: #1890ff; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; margin-top: 10px; display: none; `; // const submitButton = document.createElement('button'); submitButton.textContent = '欢迎各位友商咨询,合作联系方式'; submitButton.style.cssText = ` width: 100%; padding: 10px; background-color: #52c41a; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; margin-top: 10px; `; // titleBar.appendChild(title); titleBar.appendChild(closeBtn); navBar.appendChild(homeBtn); navBar.appendChild(settingsBtn); navBar.appendChild(questionBankBtn); navBar.appendChild(myBtn); content.appendChild(homeContent); content.appendChild(settingsContent); content.appendChild(questionBankContent); content.appendChild(myContent); content.appendChild(description); content.appendChild(playButton); content.appendChild(submitButton); floatingWindow.appendChild(titleBar); floatingWindow.appendChild(navBar); floatingWindow.appendChild(content); document.body.appendChild(floatingWindow); // settingsContent.style.display = 'none'; questionBankContent.style.display = 'none'; // let isDragging = false; let offsetX, offsetY; titleBar.addEventListener('mousedown', function(e) { if (e.target !== closeBtn) { isDragging = true; const rect = floatingWindow.getBoundingClientRect(); offsetX = e.clientX - rect.left; offsetY = e.clientY - rect.top; floatingWindow.style.cursor = 'grabbing'; } }); document.addEventListener('mousemove', function(e) { if (!isDragging) return; floatingWindow.style.left = (e.clientX - offsetX) + 'px'; floatingWindow.style.top = (e.clientY - offsetY) + 'px'; }); document.addEventListener('mouseup', function() { isDragging = false; floatingWindow.style.cursor = 'default'; titleBar.style.cursor = 'move'; }); // closeBtn.addEventListener('click', function() { floatingWindow.style.display = 'none'; }); // const historyContent = document.createElement('div'); historyContent.style.display = 'none'; // const questionBankSubmitBtn = document.getElementById('question-bank-submit-btn'); const questionBankSubmitMessage = document.getElementById('question-bank-submit-message'); questionBankSubmitBtn.addEventListener('click', function() { // questionBankSubmitMessage.style.display = 'block'; // setTimeout(() => { questionBankSubmitMessage.style.display = 'none'; }, 3000); // console.log('题库信息已提交'); }); // const viewProgressBtn = document.getElementById('view-progress-btn'); const progressInfo = document.getElementById('progress-info'); viewProgressBtn.addEventListener('click', function() { if(progressInfo.style.display === 'none') { // progressInfo.style.display = 'block'; this.textContent = '收缩'; this.style.backgroundColor = '#391085'; // document.getElementById('progress-time').textContent = new Date().toLocaleString(); } else { // progressInfo.style.display = 'none'; this.textContent = '查看课程进度'; this.style.backgroundColor = '#722ed1'; } }); // const autoAnswerToggle = document.getElementById('auto-answer-toggle'); const autoAnswerStatus = document.getElementById('auto-answer-status'); autoAnswerToggle.addEventListener('change', function() { if (this.checked) { autoAnswerStatus.textContent = '(当前状态:已开启)'; } else { autoAnswerStatus.textContent = '(当前状态:已关闭)'; } }); // const nameInput = document.getElementById('name-input'); const nameStatus = document.getElementById('name-status'); nameInput.addEventListener('input', function() { if(this.value.trim() === '') { nameStatus.textContent = '姓名不能为空'; nameStatus.style.color = '#ff4d4f'; } else if(this.value.length < 2) { nameStatus.textContent = '姓名至少需要2个字符'; nameStatus.style.color = '#faad14'; } else { nameStatus.textContent = '道友请手下留情!'; nameStatus.style.color = '#52c41a'; } }); const buyBtn = document.getElementById('buy-question-bank-btn'); const buyStatus = document.getElementById('buy-status'); buyBtn.addEventListener('click', function() { // this.style.transform = 'scale(0.95)'; this.style.backgroundColor = '#cf1322'; buyStatus.textContent = '正在跳转到Tsing Wo College脚本批量播放...'; buyStatus.style.color = '#1890ff'; // setTimeout(() => { this.style.transform = 'scale(1)'; this.style.backgroundColor = '#f5222d'; window.open('https://qinghy.top', '_blank'); // setTimeout(() => { buyStatus.textContent = '已跳转到ScriptCat脚本批量播放'; buyStatus.style.color = '#52c41a'; }, 500); }, 300); }); // playButton.addEventListener('click', function() { // if(nameInput.value.trim() === '') { nameStatus.textContent = '请先输入反馈问题'; nameStatus.style.color = '#ff4d4f'; nameInput.focus(); return; } const speedSelect = document.getElementById('speed-select'); const speed = parseInt(speedSelect.value, 10); const baiduButton = document.querySelector('input#su'); if (baiduButton) { for (let i = 0; i < speed; i++) { setTimeout(() => { baiduButton.click(); }, i * 500); } // 记录日志 console.log('用户姓名:', nameInput.value); } else { console.error('未找到"内容{}"按钮'); } }); // // // const courseSearch = document.getElementById('course-search'); // const searchCourseBtn = document.getElementById('search-course-btn'); // const searchStatus = document.getElementById('search-status'); // const searchResults = document.getElementById('search-results'); // // // // searchCourseBtn.addEventListener('click', function() { // const keyword = courseSearch.value.trim(); // // if(keyword === '') { // searchStatus.textContent = '请输入课程名称'; // searchStatus.style.color = '#ff4d4f'; // courseSearch.focus(); // return; // } // // // // searchStatus.textContent = '正在搜索课程: ' + keyword; // searchStatus.style.color = '#1890ff'; // this.disabled = true; // this.style.backgroundColor = '#096dd9'; // // // // setTimeout(() => { // // // searchResults.style.display = 'block'; // // // // this.disabled = false; // this.style.backgroundColor = '#1890ff'; // // // // searchStatus.textContent = '已完成搜索: ' + keyword; // searchStatus.style.color = '#52c41a'; // // // // console.log('搜索课程:', keyword); // }, 1500); // }); // const courseSearch = document.getElementById('course-search'); const searchCourseBtn = document.getElementById('search-course-btn'); const resetSearchBtn = document.getElementById('reset-search-btn'); const closeResultsBtn = document.getElementById('close-results-btn'); const searchStatus = document.getElementById('search-status'); const searchResults = document.getElementById('search-results'); const resultsContainer = document.getElementById('results-container'); // function resetSearch() { courseSearch.value = ''; searchStatus.textContent = ''; searchResults.style.display = 'none'; searchCourseBtn.style.backgroundColor = '#1890ff'; resetSearchBtn.style.backgroundColor = '#d9d9d9'; } // searchCourseBtn.addEventListener('click', function() { const keyword = courseSearch.value.trim(); if(keyword === '') { searchStatus.textContent = '请输入课程名称'; searchStatus.style.color = '#ff4d4f'; courseSearch.focus(); return; } // searchStatus.textContent = '正在搜索课程: ' + keyword; searchStatus.style.color = '#1890ff'; this.style.backgroundColor = '#096dd9'; resetSearchBtn.style.backgroundColor = '#bfbfbf'; // setTimeout(() => { // const matchedCourse = availableCourses.find(course => course.toLowerCase() === keyword.toLowerCase() ); // searchResults.style.display = 'block'; // if(matchedCourse) { resultsContainer.innerHTML = `
查询成功!

已找到课程: ${matchedCourse}

该课程题库包含:

`; searchStatus.textContent = `成功找到课程: ${matchedCourse}`; searchStatus.style.color = '#52c41a'; } else { resultsContainer.innerHTML = `
未添加该课程

未找到课程: ${keyword}

请联系管理员QQ:417545796 或者Q群:1042758197或74028813

`; searchStatus.textContent = `未找到课程: ${keyword}`; searchStatus.style.color = '#ff4d4f'; } // this.style.backgroundColor = '#1890ff'; }, 800); }); // resetSearchBtn.addEventListener('click', function() { this.style.backgroundColor = '#bfbfbf'; setTimeout(() => { resetSearch(); }, 200); }); // closeResultsBtn.addEventListener('click', resetSearch); // courseSearch.addEventListener('keypress', function(e) { if(e.key === 'Enter') { searchCourseBtn.click(); } }); // const needAnswerToggle = document.getElementById('settings-submit-btn'); const needAnswerStatus = document.getElementById('submit-message'); needAnswerToggle.addEventListener('change', function() { if (this.checked) { needAnswerStatus.textContent = '(当前状态:已开启)'; // window.open('https://qinghy.top', '_blank'); } else { needAnswerStatus.textContent = '(当前状态:已关闭)'; } }); // const chapterToggle = document.getElementById('chapter-toggle'); const chapterStatus = document.getElementById('chapter-status'); chapterToggle.addEventListener('change', function() { if (this.checked) { chapterStatus.textContent = '(当前状态:已开启)'; } else { chapterStatus.textContent = '(当前状态:已关闭)'; } }); // const accuracyProgress = document.getElementById('accuracy-progress'); const accuracyValue = document.getElementById('accuracy-value'); const decreaseBtn = document.getElementById('decrease-accuracy'); const increaseBtn = document.getElementById('increase-accuracy'); let currentAccuracy = 87; function updateAccuracy() { accuracyProgress.style.width = `${currentAccuracy}%`; accuracyValue.textContent = `${currentAccuracy}%`; // if (currentAccuracy < 50) { accuracyProgress.style.backgroundColor = '#ff4d4f'; // 红色 } else if (currentAccuracy < 70) { accuracyProgress.style.backgroundColor = '#faad14'; // 橙色 } else { accuracyProgress.style.backgroundColor = '#52c41a'; // 绿色 } } decreaseBtn.addEventListener('click', function() { currentAccuracy = Math.max(0, currentAccuracy - 5); updateAccuracy(); }); increaseBtn.addEventListener('click', function() { currentAccuracy = Math.min(100, currentAccuracy + 5); updateAccuracy(); }); // updateAccuracy(); // const settingsSubmitBtn = document.getElementById('settings-submit-btn'); const submitMessage = document.getElementById('submit-message'); settingsSubmitBtn.addEventListener('click', function() { // submitMessage.style.display = 'block'; // setTimeout(() => { submitMessage.style.display = 'none'; }, 3000); // console.log('设置已提交:', { autoAnswer: autoAnswerToggle.checked, needAnswer: needAnswerToggle.checked, speed: document.getElementById('speed-select').value, chapter: chapterToggle.checked, accuracy: currentAccuracy }); }); // playButton.addEventListener('click', function() { const speedSelect = document.getElementById('speed-select'); const speed = parseInt(speedSelect.value, 10); const baiduButton = document.querySelector('input#su'); if (baiduButton) { for (let i = 0; i < speed; i++) { setTimeout(() => { baiduButton.click(); }, i * 500); } } else { console.error('未找到"百度一下"按钮'); } }); // submitButton.addEventListener('click', function() { window.open('https://qinghy.top/', '_blank'); }); // const style = document.createElement('style'); style.textContent = ` .switch { position: relative; display: inline-block; width: 34px; height: 20px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 20px; } .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #2196F3; } input:checked + .slider:before { transform: translateX(14px); } `; document.head.appendChild(style); })();