智慧树刷课教程

演示
因为代刷网课赚钱会被抓,只好免费分享出来了呜呜呜。
智慧树网课刷课(超星尔雅没试过)


代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
   | (function () { 	const MAX_DELAY = 60 // 切课时的最大延迟,单位:秒 	const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time)) 	const start = async function () { 		console.log('智慧树助手已启动,唐宋丶https://tangsong99.github.io') 		while (true) { 			console.log('正在检查') 			const delay = Math.floor(Math.random() * MAX_DELAY * 1000) + 1000 			if (!/1\.5/.test($('.speedBox').attr('style'))) { 				console.log('提升到1.5倍速') 				$('.speedTab15').click() 			} 			if (!/liuchang/.test($('.definiBox').attr('style'))) { 				console.log('更改画质') 				$('.line1bq').click() 			} 			if ($('.volumeBox').find('.passVolume').width() != 0) { 				console.log('静音') 				$('.volumeIcon').click() 			} 			if ($('.playButton').length > 0) { 				console.log('点击播放') 				$('.playButton').click() 			} 			if ($('.popbtn_cancel')[0]) { 				console.log('发现弹题,将在' + delay / 1000 + ' 秒后点击关闭') 				await sleep(delay / 2) 				const iframe = document.getElementById('tmDialog_iframe').contentWindow 				iframe.document.querySelector('.answerOption label').click() 				await sleep(delay / 2) 				$('.popbtn_cancel').click() 			} 			if ($('.current_play').find('.progressbar').width() == $('.current_play').find('.progressbar_box').width()) { 				console.log('本节完成,' + delay / 1000 + ' 秒后将切到下一课') 				await sleep(delay) 				$('.current_play').nextAll('.video')[0].click() 			} 			await sleep(1000) 		} 	} 	start() }())
  | 
 
最后
网课一般都有警告什么刷课会抓,但是我刷了好几个都没啥事,如有被封,后果自负。
附:网课答案我是从微省app查的,微信公众号的答案分享平台生命周期太短了。