welearn视听说 读写 答题助手 综合插件

工具介绍:

welearn随行课堂助手是一款电脑上的刷时长的课程学习的平台工具,内容完成度100%。“WE Learn”是一款集在线课程、学习资源、学习服务于一体的互动式自主学习软件。该应用充分利用移动平台特点,结合上海外语教育出版社权威教材资源,为学习者提供涵盖听、说、读、写、译等多维度技能训练平台。


软件功能:

输入账号密码一键完成课程
可以自行选择课程
正确率达到100%
已完成的章节会自动跳转


工具下载链接:

https://wws.lanzous.com/b01tr51qf 无需安装任何浏览器插件,打开即可使用


1、先上效果图

welearn视听说 读写 答题助手 综合插件_第1张图片

2、核心源代码

 
  Date.prototype.format = function () {
      var format = 'yyyy-MM-dd HH:mm:ss'
      var o = {
        'M+': this.getMonth() + 1, // month
        'd+': this.getDate(), // day
        'H+': this.getHours(), // hour
        'm+': this.getMinutes(), // minute
        's+': this.getSeconds(), // second
        'q+': Math.floor((this.getMonth() + 3) / 3), // quarter
        S: this.getMilliseconds() // millisecond
      }
 
      if (/(y+)/.test(format)) {
        format = format.replace(RegExp.$1, (this.getFullYear() + '').substr(4 - RegExp.$1.length))
      };
 
      for (var k in o) {
        if (new RegExp('(' + k + ')').test(format)) {
          format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length))
        };
      };
      return format
    }
    $('').text(getText(zjsqCss)).appendTo($('head'))
    $('body').append(getText(zjsqHtml))
    makeDivDraggable('zjsqInfoBoxId')
    zjsqInfoDom = $('#zjysqInfo')
    return true
  } catch (e) {
    log('初始化控制台框架异常:' + e)
    return false
  };
};
 
function hrefParamsToArray (url) {
  return url
    .substring(url.indexOf('?') + 1)
    .split('&')
    .map((query) => query.split('='))
    .reduce((params, pairs) => (params[pairs[0]] = pairs[1] || '', params), {})
};
 
function studyProcessRequester (data) {
  function getProcessText () {
    return `[${new Date().format()}] 完成进度:(${totalCount}/${randomRequestTimes}) / 成功数:${successCount} / 失败数:${failedCount}`
  };
 
  if (stopFlag === true) return 0
  var lessonId = `lesson${currentLessonIndex}`
  var successCount = 0
  var failedCount = 0
  var totalCount = 0
  var randomRequestTimes = Math.floor((Math.random() * 87) + 56)
  const requestData = {
    courseOpenId: data.courseOpenId,
    openClassId: data.openClassId,
    cellId: data.cellId,
    cellLogId: data.cellLogId,
    picNum: Math.round(324 / randomRequestTimes),
    studyNewlyTime: Math.round(14640 / randomRequestTimes),
    studyNewlyPicNum: Math.round(324 / randomRequestTimes),
    token: data.guIdToken
  }
  log(`第(${currentLessonIndex}/${hrefs.length})课,课件:${data.cellName},类型:[${data.categoryName}]`)
  log(`本次随机学习时间:${(randomRequestTimes * 10 / 60).toFixed(2)}分钟 总请求次数:${randomRequestTimes}`)
  log('现在开始上课!')
  zjsqInfoDom.append(`
${getProcessText()}
`) var ele = zjsqInfoDom[0] ele.scrollTop = ele.scrollHeight + 999 var lessonProcessDom = $(`#${lessonId}`) for (let i = 0; i < randomRequestTimes; i++) { var defer = $.Deferred() $.ajax({ async: true, timeout: 5000, type: 'post', url: urls2.Directory_stuProcessCellLog, data: requestData, dataType: 'json', success: function (responseData) { successCount += 1 }, error: function (response) { failedCount += 1 }, complete: function (response) { totalCount += 1 lessonProcessDom.text(getProcessText()) if (totalCount === randomRequestTimes) { totalStudyTime += randomRequestTimes * 10 log(`当前课程(${lessonId}),已完成学习!三秒后开始下一课程...`) st(function () { return directoryDataRequester(currentLessonIndex) }, 4000) }; } }) requestData.picNum += Math.round(300 / randomRequestTimes) requestData.studyNewlyTime += Math.round(12640 / randomRequestTimes) requestData.studyNewlyPicNum += Math.round(300 / randomRequestTimes) }; return defer }; function directoryDataRequester (hrefIndex, changeDirectory = false, addData = false) { if (stopFlag === true) return 0 var changedFlag = false if (hrefIndex < hrefs.length) { currentLessonIndex = hrefIndex + 1 if (!addData && changeDirectory !== true) log(`正在获取课件(${currentLessonIndex}/${hrefs.length})的请求令牌...`) var requestData = hrefParamsToArray(hrefs[hrefIndex]) if (addData) { Object.assign(requestData, addData) console.log(requestData) delete (requestData.flag) };
 

 

你可能感兴趣的:(welearn口语听力,随行课堂交互,实用英语)