青书学堂自动挂课工具自动完成播放课件

it2023-02-05  167

一、介绍

主要由浏览器+插件的形式实现辅助看课,模拟人工操作,适用于青书学堂这个平台。打开登录即可使用登录后自动开始播放视频,自动进入下一个课件。可实现完成青书学习,青书教材,青书作业等功能

二、下载地址

https://www.lanzous.com/b01hj0jjg

三、效果图

四、教程开始

一、首先我们需要准备一台电脑,下载一个火狐浏览器

二将下面的代码复制到tampermonkey中,添加完成后就可以登录开始

_self = unsafeWindow, url = location.pathname, top = _self; if (frameElement) document.domain = location.host.replace(/.+?\./, ''); try { while (top != _self.top) top = top.parent.document ? top.parent : _self.top; } catch (err) { // console.log(err); top = _self; } var $ = _self.jQuery || top.jQuery, parent = _self == top ? self : _self.parent, Ext = _self.Ext || parent.Ext || {}, UE = _self.UE, Hooks = Hooks || window.Hooks; setting.normal = ''; // ':visible' // setting.time += Math.ceil(setting.time * Math.random()) - setting.time / 2; // setting.wait += Math.ceil(setting.wait * Math.random()) - setting.time / 2; setting.job = [ ':not(*)' ,'iframe[src*="/video/index.html"]' ,'iframe[src*="/work/index.html"]' ,'iframe[src*="/audio/index.html"]' ,'iframe[src*="/innerbook/index.html"]' ,'iframe[src*="/ppt/index.html"]' ,'iframe[src*="/pdf/index.html"]' ]; setting.tip = top != _self && jobSort($ || Ext.query); if (url == '/ananas/modules/video/index.html') { if (setting.video) { if (setting.review) _self.greenligth = Ext.emptyFn; checkPlayer(); } else { getIframe().remove(); } } else if (url == '/work/doHomeWorkNew' || url == '/api/work' || url == '/work/addStudentWorkNewWeb') { if (!UE) { var len = ($ || Ext.query || Array)('font:contains(未登录)', document).length; setTimeout(len == 1 ? top.location.reload : parent.greenligth, setting.time); } else if (setting.work) { setTimeout(relieveLimit, 0); beforeFind(); } else { getIframe().remove(); } } else if (url == '/ananas/modules/audio/index.html') { if (setting.audio) { if (setting.review) _self.greenligth = Ext.emptyFn; hookAudio(_self.videojs, _self.videojs.xhr); } else { getIframe().remove(); } } else if (url == '/ananas/modules/innerbook/index.html') { setting.book ? setTimeout(bookRead, setting.time) : getIframe().remove(); } else if (url.match(/^\/ananas\/modules\/(ppt|pdf)\/index\.html$/)) { setting.docs ? setTimeout(docsRead, setting.time) : getIframe().remove(); } else if (url == '/knowledge/cards') { $ && checkToNext(); } else if (url.match(/^\/(course|zt)\/\d+\.html$/)) { setTimeout(function() { setting.read && _self.sendLogs && $('.course_section:eq(0) .chapterText').click(); }, setting.time); } else if (url == '/ztnodedetailcontroller/visitnodedetail') { setting.read && _self.sendLogs && autoRead(); } else if (url == '/mycourse/studentcourse') { var gv = location.search.match(/d=\d+&/g); setting.total && $('<a>', { href: '/moocAnalysis/chapterStatisticByUser?classI' + gv[1] + 'courseI' + gv[0] + 'userId=' + _self.getCookie('_uid') + '&ut=s', target: '_blank', title: '点击查看章节统计', style: 'margin: 0 25px;', html: '本课程共' + $('.icon').length + '节,剩余' + $('em:not(.openlock)').length + '节未完成' }).appendTo('.zt_logo').detach(setting.safe ? '*' : 'html').parent().width('auto'); setting.course && setTimeout(goCourse, setting.time); } else if (url.match(/^\/visit\/(courses|interaction)$/)) { setting.face && DisplayURL(); } else if (location.host.match(/^passport2/)) { setting.login && getSchoolId(); } else if (url == '/work/selectWorkQuestionYiPiYue') { submitAnswer(getIframe().parent(), $.extend(true, [], parent._data)); } function getIframe(tip, win, job) {

 

最新回复(0)