// ==UserScript== // @name 【万能】全平台自动答题脚本 // @version 4.0.7 // @namespace 自动答题 // @description 本脚本简易操作一键安装,安装即用,支持【超星学习通】,【智慧树】,【执教云】,【雨课堂】等平台的测验考试,内置题库,自动答题功能全聚合。 // @author 万能 // @match *://*.chaoxing.com/* // @match *://*.edu.cn/* // @match *://*.hnsyu.net/* // @match *://*.zhihuishu.com/* // @match *://*.bsnc.cn/* // @match *://*.xuetangx.com/* // @match *://*.yuketang.cn/* // @match *://*.icve.com.cn/* // @match *://*/* // @compatible chrome firefox edge // @contributionURL https://lyck6.cn/pay // @antifeature payment 解锁付费题库需捐助 // @grant GM_info // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_getResourceText // @grant GM_addStyle // @grant GM_registerMenuCommand // @grant GM_setValue // @grant GM_getValue // @grant GM_deleteValue // @run-at document-end // @connect yuketang.cn // @connect appwk.baidu.com // @connect lyck6.cn // @resource Table https://www.forestpolice.org/ttf/2.0/table.json // @require https://cdn.jsdelivr.net/gh/photopea/Typr.js@15aa12ffa6cf39e8788562ea4af65b42317375fb/src/Typr.min.js // @require https://cdn.jsdelivr.net/gh/photopea/Typr.js@f4fcdeb8014edc75ab7296bd85ac9cde8cb30489/src/Typr.U.min.js // @require https://cdn.jsdelivr.net/npm/jquery@2.2.3/dist/jquery.min.js // @require https://cdn.jsdelivr.net/npm/jquery.md5@1.0.2/index.min.js // @require https://cdn.bootcdn.net/ajax/libs/axios/0.27.2/axios.js // @require https://cdn.jsdelivr.net/gh/zyufstudio/jQuery@3a09ff54b33fc2ae489b5083174698b3fa83f4a7/jPopBox/dist/jPopBox.min.js // @downloadURL none // ==/UserScript== //全局配置参数 var GLOBAL = { time: 3E3, //查题间隔时间,不建议小于5s,如果为了安全起见最好10s以上,即10E3 delay: 2E3, //延迟加载,页面初始化完毕之后的等待2s之后再去搜题, fillAnswerDelay: 1E3 //填充答案的延迟,不建议小于0.5秒,默认一秒 }; // var script = document.createElement('script'); // script.src = 'https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js'; // document.head.appendChild(script); (function (exports) { 'use strict'; function sleep(time) { return new Promise((resolve) => { setTimeout(resolve, time); }) } function iframeMsg(type, message) { exports.top.document.getElementById('iframeNode').contentWindow.vueDefinedProp(type, message); } function filterImg(dom) { return $(dom).clone().find("img[src]").replaceWith(function () { return $("

").text(''); }).end().find("iframe[src]").replaceWith(function () { return $("

").text('