// ==UserScript== // @name 📚全国神兽网课助手是个老平台: 可轻松解决以下课程的学习烦脑-支持学习通 | 智慧树 | U校园/AI校园 | 知到 | 智慧职教 | 国家智慧中心小学 | 成人教育 | 新国开 | 清华社 | 联大学堂 | 正保云课堂 | 学堂 | 柠檬 | 中国大学mooc | 青书学堂 |自动刷课|乐跑|小步点|远动世界 | 毕业论文|简历生成|PPT生成等等学习资料等大家前来获取 // @namespace shensho // @version 1.0.7 // @description 👨‍🏫【全国神兽】学习通网课助手平台,不仅可以播放视频,💯结合智能搭建库支持在线模拟考试、章节测验、作业解答、自动提交、ChatGPT作答、智能检索答案、AI题库、下载学习资料,大家分享课程心得,解决大学生及中小教师网课问题,支持一对一辅导操作,减轻学习与工作负担,打造美好环境,本脚本仅供个人学习研究用途,严禁用于任何非法活动。使用者需自行承担因不当使用所产生的一切法律后果。开发者对脚本的滥用行为概不负责。欢迎加入QQ群获取:74028813 // @author 🥇神兽 // @grant none // @run-at document-end // @license MIT // @icon https://qinghy.top/index/upload/qgzs.png // @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 *://*.vipglobal.hk/* // @exclude *://login.tmall.com/* // @exclude *://pages.tmall.com/* // @exclude *://wq.jd.com/* // @exclude *://uai.unipus.cn/* // @connect mooc1-1.chaoxing.com // @connect mooc1.chaoxing.com // @connect mooc1-2.chaoxing.com // @connect passport2-api.chaoxing.com // @connect www.tiku.me // @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 // @homepage https://scriptcat.org/zh-CN/script-show-page/3389 // @source https://qinghy.top/index/ // @antifeature payment ChatGPT自动答题,自动刷课、作业、章节测验、考试 // ==/UserScript== (function () { // 设置菜单 showSettings() { const html = `

助手设置

生活不易,猪猪叹气 —— 赏口饲料,让我少气!🐷✨

输入任务要求的时长,脚本会自动计算最优阅读速度
根据任务时长自动调整阅读速度
支持 0.1 - 30 秒(如:0.5 秒/页,1.2 秒/段落)
在课程目录页面自动点击第一章节
单位: 毫秒,延迟时间越长越稳定
`; 'use strict'; const style = document.createElement('style'); style.innerHTML = ` #custom-popup { position: fixed; top: 10%; left: 50%; transform: translateX(-50%); width: 320px !important; height: 560px !important; background-color: white; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.3); z-index: 99999; font-family: Arial, sans-serif; display: flex; flex-direction: column; overflow: hidden; } #popup-header { padding: 15px; background-color: gray; color: white; font-size: 14px; border-top-left-radius: 8px; border-top-right-radius: 8px; cursor: move; display: flex; justify-content: space-between; align-items: center; } #popup-close { background: none; border: none; color: white; font-size: 16px; cursor: pointer; } #popup-nav { display: flex; background-color: #f8f9fa; } #popup-nav button { flex: 1; padding: 10px; border: none; background: none; cursor: pointer; font-weight: bold; } #popup-nav button.active { background-color: blue; color: white; } #popup-content { flex: 1; padding: 10px; overflow-y: auto; } .instruction-section { margin-bottom: 10px; } .instruction-sectionhz { margin-bottom: 20px; } .instruction-title { font-weight: bold; margin-bottom: 5px; } .instruction-titlehz { font-weight: bold; margin-bottom: 15px; } .instruction-list { list-style-type: decimal; padding-left: 20px; } .warning { color: red; font-weight: bold; } #search-container { margin-bottom: 10px; display: flex; gap: 10px; } #search-input { flex: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px; } #search-button, #reset-button { padding: 10px; border: none; background-color: blue; color: white; border-radius: 4px; cursor: pointer; } #reset-button { background-color: lightgray; color: black; } #search-results { margin-top: 10px; } #search-results p { margin: 5px 0; } #answer-method-select { margin-bottom: 10px; } #answer-method-label { margin-bottom: 5px; font-weight: bold; } #answer-method-dropdown { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; } #method-info { margin-top: 10px; } #method-info p { margin: 5px 0; } #key-container { margin-bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; } #key-label { margin-bottom: 5px; font-weight: bold; } #key-input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } #button-container { margin-top: 10px; display: flex; justify-content: space-between; } #get-question-bank-button { padding: 5px; border: none; background-color: blue; color: white; border-radius: 4px; cursor: pointer; width: 90px; height: 30px; } #submit-button { padding: 5px; border: none; background-color: green; color: white; border-radius: 4px; cursor: pointer; width: 60px; height: 30px; } #progress-container { margin-top: 10px; } #progress-label { margin-bottom: 5px; font-weight: bold; } #progress-bar-container { display: flex; align-items: center; } #increase-button, #decrease-button { padding: 10px; border: none; background-color: #dab35a; color: gray; border-radius: 4px; cursor: pointer; width: 30px; height: 30px; } #progress-bar { flex: 1; height: 20px; background-color: #ddd; border-radius: 4px; overflow: hidden; margin: 0 10px; } #progress-fill { height: 100%; background-color: green; width: 85%; transition: width 0.3s ease-in-out; } #progress-value { margin-left: 10px; font-weight: bold; } #auto-switch-container { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; } #auto-switch-label { font-weight: bold; } #auto-submit-container { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; } #auto-submit-label { font-weight: bold; } #auto-next-question-container { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; } #auto-next-question-label { font-weight: bold; } .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .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: 34px; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #2196F3; } input:focus + .slider { box-shadow: 0 0 1px #2196F3; } input:checked + .slider:before { transform: translateX(26px); } #alert-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.3); z-index: 100000; padding: 20px; text-align: center; } #alert-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 99999; } #alert-modal button { padding: 10px 20px; border: none; background-color: blue; color: white; border-radius: 4px; cursor: pointer; margin-top: 10px; } #auto-answer-container { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; } #auto-answer-label { font-weight: bold; } #search-button, #reset-button, #get-button { padding: 10px; border: none; background-color: blue; color: white; border-radius: 4px; cursor: pointer; } #get-message { margin-top: 10px; font-weight: bold; } #get-message.success { color: green; } #get-message.failure { color: red; } #search-button, #reset-button, #get-button, #view-courses-button { padding: 10px; border: none; background-color: blue; color: white; border-radius: 4px; cursor: pointer; } #back-button { padding: 10px; border: none; background-color: gray; color: white; border-radius: 4px; cursor: pointer; float: right; margin-right: 10px; } #courses-table { width: 100%; border-collapse: collapse; margin-top: 10px; } #courses-table th, #courses-table td { border: 1px solid #ddd; padding: 8px; text-align: left; } #courses-table th { background-color: #f2f2f2; } #courses-table tr:nth-child(even) { background-color: #f9f9f9; } #courses-table tr:hover { background-color: #e0e0e0; } .contact-info { margin-top: 20px; font-size: 12px; display: flex; justify-content: space-between; } .contact-info label { font-weight: bold; } #log-container { margin-top: 20px; border-top: 1px solid #ddd; padding-top: 10px; font-size: 12px; max-height: 100px; overflow-y: auto; } #log-container p { margin: 5px 0; } `; document.head.appendChild(style); const popup = document.createElement('div'); popup.id = 'custom-popup'; popup.innerHTML = ` `; document.body.appendChild(popup); const navButtons = document.querySelectorAll('#popup-nav button'); const tabContents = document.querySelectorAll('.tab-content'); navButtons.forEach(button => { button.addEventListener('click', () => { const tab = button.getAttribute('data-tab'); navButtons.forEach(btn => btn.classList.remove('active')); tabContents.forEach(content => content.style.display = 'none'); button.classList.add('active'); document.querySelector(`#tab-${tab}`).style.display = 'block'; }); }); const closeButton = document.getElementById('popup-close'); closeButton.addEventListener('click', () => { popup.style.display = 'none'; }); document.addEventListener('keydown', (e) => { if (e.key === 'F9') { popup.style.display = 'none'; } }); function showTemporaryMessage(message) { searchResults.innerHTML = message; searchResults.style.display = "block"; // setTimeout(() => { searchResults.style.display = "none"; // }, 20000); // } const searchInput = document.getElementById('search-input'); const searchButton = document.getElementById('search-button'); const resetButton = document.getElementById('reset-button'); const searchResults = document.getElementById('search-results'); searchButton.addEventListener('click', () => { const query = searchInput.value.trim(); if (query.toLowerCase() === '学习通') { showTemporaryMessage(`

⏳学习通信息:

正在加载配置【学习通】课程信息:获取失败...

`); } else if (query.toLowerCase() === '智慧树') { showTemporaryMessage(`

⏳智慧树信息:

正在加载配置【智慧树】课程信息:获取失败...

`); } else if (query.toLowerCase() === '职教') { showTemporaryMessage(`

⏳职教:

正在加载配置【职教】课程信息:获取失败...

`); }else if (query.toLowerCase() === '雨课堂') { showTemporaryMessage(`

⏳雨课堂:

正在加载配置【雨课堂】课程信息:获取失败...

`); }else if (query.toLowerCase() === '青书学堂') { showTemporaryMessage(`

⏳青书学堂:

正在加载配置【青书学堂】课程信息:获取失败...

`); }else if (query.toLowerCase() === '乐跑') { showTemporaryMessage(`

⏳乐跑:

正在加载配置【乐跑】课程信息:获取失败...

`); }else if (query.toLowerCase() === '知到') { showTemporaryMessage(`

⏳知到:

正在加载配置【知到】课程信息:获取失败...

`); }else if (query.toLowerCase() === '柠檬') { showTemporaryMessage(`

⏳柠檬:

正在加载配置【柠檬】课程信息:获取失败...

`); }else if (query.toLowerCase() === '学起plus') { showTemporaryMessage(`

⏳学起plus:

正在加载配置【学起plus】课程信息:获取失败...

`); }else if (query.toLowerCase() === '国开') { showTemporaryMessage(`

⏳国开:

正在加载配置【国开】课程信息:获取失败...

`); }else if (query.toLowerCase() === 'U校园') { showTemporaryMessage(`

⏳U校园:

正在加载配置【U校园】课程信息:获取失败...

`); } else if (query.toLowerCase() === '中国大学mooc') { showTemporaryMessage(`

⏳中国大学MOOC:

正在加载配置【中国大学mooc】课程信息:获取失败...

`); } else { showTemporaryMessage(`

未找到相关课程:

联系方式q:417545796

QQ群:74028813

`); } searchInput.value = ''; logMessage('执行了搜索操作'); }); resetButton.addEventListener('click', () => { searchInput.value = ''; searchResults.innerHTML = ''; methodInfoDiv.innerHTML = ''; keyInput.value = ''; progressFill.style.width = '85%'; progressValue.textContent = '85%'; autoSwitchCheckbox.checked = false; autoAnswerCheckbox.checked = false; autoSubmitCheckbox.checked = false; autoNextQuestionCheckbox.checked = false; logMessage('执行了重置操作'); }); const answerMethodDropdown = document.getElementById('answer-method-dropdown'); const methodInfoDiv = document.getElementById('method-info'); answerMethodDropdown.addEventListener('change', () => { const selectedMethod = answerMethodDropdown.value; let methodInfo; switch (selectedMethod) { case 'ai': methodInfo = `

ChatGPT‌智能:

ChatGPT是OpenAI开发的AI答题、对话模型,擅长文本生成、检索答题、代码编写和多轮对话,基于GPT架构。

`; break; case 'keepee': methodInfo = `

DeepSeek‌答题:

DeepSeek是深度求索公司开发的AI助手,擅长多模态交互与科研分析,支持长文本处理,考试题目搜索,使用强大库源解析答案。

`; break; case 'gtk': methodInfo = `

Mindshow‌教学:

MindShow是一款AI驱动的3D演示工具,支持智能生成动态PPT,自动识别答案图片,识别题目图片内容,提升视觉呈现效果。

`; break; case 'Claude': methodInfo = `

Claude‌撰写:

Claude是Anthropic开发的AI课题检索助手,注重安全对话与逻辑推理,基于Constitutional AI原则设计,更加强大,使用与库题解析答案。

`; break; default: methodInfo = ''; break; } methodInfoDiv.innerHTML = methodInfo; logMessage(`选择了答题方式: ${selectedMethod}`); }); const keyInput = document.getElementById('key-input'); keyInput.addEventListener('input', () => { const keyValue = keyInput.value.trim(); console.log('Key entered:', keyValue); logMessage(`输入了key: ${keyInput.value}`); }); const getQuestionBankButton = document.getElementById('get-question-bank-button'); getQuestionBankButton.addEventListener('click', () => { window.open('https://qinghy.top/index/index', '_blank'); }); const submitButton = document.getElementById('submit-button'); submitButton.addEventListener('click', () => { showAlertModal('保存失败', '联系站长Q:417545796'); logMessage('保存失败'); }); function showAlertModal(title, message) { const modalOverlay = document.createElement('div'); modalOverlay.id = 'alert-modal-overlay'; document.body.appendChild(modalOverlay); const modal = document.createElement('div'); modal.id = 'alert-modal'; modal.innerHTML = `

${title}

${message}

`; document.body.appendChild(modal); const closeModalButton = document.getElementById('alert-modal-close'); closeModalButton.addEventListener('click', () => { document.body.removeChild(modal); document.body.removeChild(modalOverlay); }); } const progressFill = document.getElementById('progress-fill'); const progressValue = document.getElementById('progress-value'); const increaseButton = document.getElementById('increase-button'); const decreaseButton = document.getElementById('decrease-button'); let currentProgress = 85; function updateProgress(value) { currentProgress = Math.min(Math.max(value, 0), 100); progressFill.style.width = `${currentProgress}%`; progressValue.textContent = `${currentProgress}%`; } increaseButton.addEventListener('click', () => { updateProgress(currentProgress + 5); }); decreaseButton.addEventListener('click', () => { updateProgress(currentProgress - 5); }); const autoSwitchCheckbox = document.getElementById('auto-switch-checkbox'); autoSwitchCheckbox.addEventListener('change', () => { if (autoSwitchCheckbox.checked) { console.log('执行了重置操作'); logMessage('执行了重置操作'); } else { console.log('自动切换章节已关闭'); logMessage('自动切换章节已关闭'); } }); const autoAnswerCheckbox = document.getElementById('auto-answer-checkbox'); autoAnswerCheckbox.addEventListener('change', () => { if (autoAnswerCheckbox.checked) { console.log('自动答题已开启'); logMessage('自动答题已开启'); } else { console.log('自动答题已关闭'); logMessage('自动答题已关闭'); } }); const autoSubmitCheckbox = document.getElementById('auto-submit-checkbox'); autoSubmitCheckbox.addEventListener('change', () => { if (autoSubmitCheckbox.checked) { console.log('自动提交作业已开启'); logMessage('自动提交作业已开启'); } else { console.log('自动提交作业已关闭'); logMessage('自动提交作业已关闭'); } }); const autoNextQuestionCheckbox = document.getElementById('auto-next-question-checkbox'); autoNextQuestionCheckbox.addEventListener('change', () => { if (autoNextQuestionCheckbox.checked) { console.log('考试自动下一题已开启'); logMessage('考试自动下一题已开启'); } else { console.log('考试自动下一题已关闭'); logMessage('考试自动下一题已关闭'); } }); // const getButton = document.getElementById('get-button'); const getMessage = document.getElementById('get-message'); getButton.addEventListener('click', () => { // const isSuccess = Math.random() > 0.5; getMessage.textContent = isSuccess ? '加载key失败' : '加载key失败'; getMessage.className = isSuccess ? 'success' : 'failure'; // setTimeout(() => { getMessage.textContent = ''; }, 10000); // 1分钟 logMessage(`执行了获取操作, 结果: ${isSuccess ? '失败' : '失败'}`); }); let offsetX, offsetY; const header = document.getElementById('popup-header'); header.addEventListener('mousedown', (e) => { offsetX = e.clientX - popup.offsetLeft; offsetY = e.clientY - popup.offsetTop; document.addEventListener('mousemove', mouseMoveHandler); document.addEventListener('mouseup', mouseUpHandler); header.style.cursor = 'grabbing'; }); function mouseMoveHandler(e) { popup.style.left = `${e.clientX - offsetX}px`; popup.style.top = `${e.clientY - offsetY}px`; } function mouseUpHandler() { document.removeEventListener('mousemove', mouseMoveHandler); document.removeEventListener('mouseup', mouseUpHandler); header.style.cursor = 'move'; } // const viewCoursesButton = document.getElementById('view-courses-button'); const coursesDataDiv = document.getElementById('courses-data'); viewCoursesButton.addEventListener('click', () => { // const courses = [ { id: 1, name: '${mane}获取失败', progress: '0%', time: new Date().toLocaleString() }, { id: 2, name: '${mane}获取失败', progress: '0%', time: new Date().toLocaleString() }, { id: 3, name: '${mane}获取失败', progress: '0%', time: new Date().toLocaleString() } ]; // let tableHtml = ''; tableHtml += ''; tableHtml += ''; courses.forEach(course => { tableHtml += ``; }); tableHtml += '
ID名称进度时间
${course.id}${course.name}${course.progress}${course.time}
'; // const backButton = document.createElement('button'); backButton.id = 'back-button'; backButton.textContent = '返回'; coursesDataDiv.innerHTML = `
${backButton.outerHTML}
` + tableHtml; logMessage('查看了课程列表'); }); // document.addEventListener('click', (e) => { if (e.target && e.target.id === 'back-button') { // coursesDataDiv.innerHTML = ''; document.getElementById('tab-profile').style.display = 'block'; document.querySelector('#popup-nav button[data-tab="profile"]').classList.add('active'); logMessage('返回了个人中心'); } }); // function logMessage(message) { const logContainer = document.getElementById('log-container'); const logEntry = document.createElement('p'); logEntry.textContent = `[${new Date().toLocaleTimeString()}] ${message}`; logContainer.appendChild(logEntry); logContainer.scrollTop = logContainer.scrollHeight; // } })();