您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
学习,学个屁
当前为
注意:本脚本仅在Chrome浏览器下测试过。
http://wb.mycourse.cn
,按照群里给的文档输入身份证号或者学号;https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
安装插件;http://wb.mycourse.cn
,按照群里给的文档输入身份证号或者学号;http://wb.mycourse.cn
;F12
功能键,在弹出的Console
tab列输入框复制粘贴进以下代码:
'use strict';(function(){'use strict';var a=function parseSearchParams(e){e=unescape(e),e=e.slice(e.indexOf('?')+1);var f={};return e.split('&').map(function(g){return g.split('=')}).forEach(function(g){return f[g[0]]=g[1]}),f},b=function request(e,f){var g=+new Date;return fetch('http://cp.mycourse.cn/wxcourse/addJiaoXueJiHuainfo.action?userid='+e+'&jiaoxuejihuaid='+f+'&_='+g)},c=function fuckCourses(){var e=Array.from(document.querySelectorAll('a.courseLink')).filter(function(f){return f.querySelector('div.color3')}).map(function(f){var g=f.href,h=a(g),i=h.userId,j=h.jiaoxuejihuaId;return b(i,j)});return 0<e.length&&Promise.all(e).then(function(){alert('\u5DF2\u7ECF\u5168\u90E8\u5B66\u4E60\u5B8C\u6210\uFF0C\u8003\u8BD5\u9700\u8981\u81EA\u5DF1\u5B8C\u6210'),location.reload()}),e},d=function answerForceQuestions(){var e=!1;document.querySelectorAll('div.widthPercent90.paddingL_30.border-box').forEach(function(f){var g=Math.floor(f.childElementCount*Math.random());f.children[g].click(),e=!0}),e&&document.querySelector('.forceQuestionSubmit').click()};switch(location.href){case'http://wb.mycourse.cn/svnweiban/student/home_index.action':d();break;case'http://wb.mycourse.cn/svnweiban/student/study_studyAndTest.action':c();}})();