易班考试自动答题(油猴)

收录 118

学校最近要求用易班答题,题目很多翻书还很难找到,感觉有亿点房费时间,第一想到的就是油猴,因为之前刷超星、智慧树等但是进去一看,哎,来晚了。唯一的脚本也失效了

然后根据老脚本(简单的JS,原理是找到题库,自动点击对应答案,和之前那些智慧树啥的网课平台一样)分享给需要的童鞋
易班:http://www.yiban.cn 应该都是这个地址,我之前去搜了脚本,找到都是另一个网址叫易班优课,全都失效了的

使用说明:我用的油猴,因为都是JS代码, 你也可以直接F12执行。
油猴自己下载吧,百度一大堆
用油猴的好处就是自动执行,你只要点开始考试他就自己全部做完了。
步骤①找到猴那个图片,应该都是这个位置吧。 点添加
易班考试自动答题(油猴)

// ==UserScript==
// @name         易班考试版本1.0
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  自动答题,题库只更新了338道,基本都能过。(90分就过了)
// @author       慈禧太后
// @match        http://*/*
// @grant        none
// ==/UserScript==

// 自动做题 ,2020/11/15: 导入338道题
// 只有长某学院入学教育题库,需要题库导入新题库。
(function () {
  answer(JSON.parse('[{"id":1601198,"marks":["A"]},{"id":1601197,"marks":["A"]},{"id":1601196,"marks":["A"]},{"id":1601195,"marks":["B"]},{"id":1601194,"marks":["A"]},{"id":1601193,"marks":["A"]},{"id":1601192,"marks":["A"]},{"id":1601191,"marks":["A"]},{"id":1601190,"marks":["B"]},{"id":1601189,"marks":["A"]},{"id":1601188,"marks":["B"]},{"id":1601186,"marks":["A"]},{"id":1601185,"marks":["A"]},{"id":1601184,"marks":["B"]},{"id":1601183,"marks":["A"]},{"id":1601182,"marks":["A"]},{"id":1601181,"marks":["A"]},{"id":1601180,"marks":["B"]},{"id":1601179,"marks":["A"]},{"id":1601178,"marks":["B"]},{"id":1601176,"marks":["A"]},{"id":1601175,"marks":["A"]},{"id":1601174,"marks":["A"]},{"id":1601173,"marks":["A"]},{"id":1601172,"marks":["A"]},{"id":1601171,"marks":["A"]},{"id":1601170,"marks":["A"]},{"id":1601169,"marks":["A"]},{"id":1601168,"marks":["B"]},{"id":1601167,"marks":["A"]},{"id":1601166,"marks":["A"]},{"id":1601165,"marks":["A"]},{"id":1601163,"marks":["A"]},{"id":1601162,"marks":["A"]},{"id":1601161,"marks":["A"]},{"id":1601160,"marks":["A"]},{"id":1601159,"marks":["A"]},{"id":1601158,"marks":["B"]},{"id":1601157,"marks":["A"]},{"id":1601156,"marks":["A"]},{"id":1601155,"marks":["A"]},{"id":1601154,"marks":["A"]},{"id":1601152,"marks":["A"]},{"id":1601151,"marks":["A"]},{"id":1601150,"marks":["B"]},{"id":1601149,"marks":["A"]},{"id":1601147,"marks":["B"]},{"id":1601146,"marks":["B"]},{"id":1601145,"marks":["A"]},{"id":1601144,"marks":["A"]},{"id":1601143,"marks":["A"]},{"id":1601142,"marks":["B"]},{"id":1601141,"marks":["A"]},{"id":1601139,"marks":["B"]},{"id":1601138,"marks":["A"]},{"id":1601137,"marks":["A"]},{"id":1601136,"marks":["A"]},{"id":1601135,"marks":["B"]},{"id":1601134,"marks":["B"]},{"id":1601132,"marks":["A"]},{"id":1601131,"marks":["A"]},{"id":1601130,"marks":["B"]},{"id":1601128,"marks":["A"]},{"id":1601127,"marks":["B"]},{"id":1601126,"marks":["A"]},{"id":1601125,"marks":["A"]},{"id":1601124,"marks":["B"]},{"id":1601122,"marks":["B"]},{"id":1601121,"marks":["B"]},{"id":1601120,"marks":["A"]},{"id":1601119,"marks":["A"]},{"id":1601118,"marks":["A"]},{"id":1601116,"marks":["A"]},{"id":1601115,"marks":["A"]},{"id":1601114,"marks":["A"]},{"id":1601113,"marks":["A"]},{"id":1601109,"marks":["A"]},{"id":1601108,"marks":["B"]},{"id":1601107,"marks":["A"]},{"id":1601106,"marks":["A"]},{"id":1601105,"marks":["A"]},{"id":1601103,"marks":["B"]},{"id":1601101,"marks":["B"]},{"id":1601100,"marks":["B"]},{"id":1601099,"marks":["A"]},{"id":1601098,"marks":["B"]},{"id":1601097,"marks":["B"]},{"id":1601096,"marks":["B"]},{"id":1601095,"marks":["B"]},{"id":1601094,"marks":["A"]},{"id":1601092,"marks":["B"]},{"id":1601090,"marks":["A"]},{"id":1601088,"marks":["A"]},{"id":1601087,"marks":["B"]},{"id":1601086,"marks":["B"]},{"id":1601085,"marks":["A"]},{"id":1601083,"marks":["B"]},{"id":1601082,"marks":["A"]},{"id":1601081,"marks":["A"]},{"id":1601080,"marks":["A"]},{"id":1601079,"marks":["B"]},{"id":1601078,"marks":["A"]},{"id":1601076,"marks":["A"]},{"id":1601074,"marks":["A"]},{"id":1601073,"marks":["A"]},{"id":1601072,"marks":["B"]},{"id":1601070,"marks":["B"]},{"id":1601069,"marks":["A"]},{"id":1601068,"marks":["A"]},{"id":1601067,"marks":["A"]},{"id":1601066,"marks":["A"]},{"id":1601065,"marks":["B"]},{"id":1601063,"marks":["A"]},{"id":1601062,"marks":["B"]},{"id":1601061,"marks":["A"]},{"id":1601058,"marks":["A"]},{"id":1601057,"marks":["A"]},{"id":1601056,"marks":["A"]},{"id":1601055,"marks":["B"]},{"id":1601054,"marks":["A"]},{"id":1601053,"marks":["B"]},{"id":1601052,"marks":["B"]},{"id":1601051,"marks":["A"]},{"id":1601050,"marks":["A"]},{"id":1601049,"marks":["A"]},{"id":1601048,"marks":["B"]},{"id":1601047,"marks":["B"]},{"id":1601046,"marks":["B"]},{"id":1601045,"marks":["A"]},{"id":1601044,"marks":["B"]},{"id":1601043,"marks":["B"]},{"id":1601040,"marks":["B"]},{"id":1601039,"marks":["A"]},{"id":1601038,"marks":["A","B","C","D"]},{"id":1601037,"marks":["A","B","C","D","E"]},{"id":1601036,"marks":["A","B","C"]},{"id":1601035,"marks":["A","B","C","D"]},{"id":1601034,"marks":["A","B","C","D"]},{"id":1601033,"marks":["B","C","D"]},{"id":1601032,"marks":["A","B","D"]},{"id":1601031,"marks":["A","C","D"]},{"id":1601030,"marks":["A","B","D"]},{"id":1601029,"marks":["A","B","C","D"]},{"id":1601028,"marks":["B","D"]},{"id":1601027,"marks":["A","B","C","D"]},{"id":1601026,"marks":["A","B","C"]},{"id":1601025,"marks":["A","C","D"]},{"id":1601024,"marks":["A","B","C","D"]},{"id":1601023,"marks":["C","D"]},{"id":1601022,"marks":["A","B","C"]},{"id":1601021,"marks":["A","C","D"]},{"id":1601020,"marks":["B","C","D"]},{"id":1601019,"marks":["A","B","C","D"]},{"id":1601018,"marks":["A","C"]},{"id":1601017,"marks":["A","B","C","D"]},{"id":1601016,"marks":["A","B","C"]},{"id":1601015,"marks":["A","B","C","D"]},{"id":1601014,"marks":["A","B","C","D"]},{"id":1601013,"marks":["A","C"]},{"id":1601012,"marks":["A","B","C","D"]},{"id":1601011,"marks":["A","B","D"]},{"id":1601010,"marks":["A","B","C"]},{"id":1601009,"marks":["A","B","C","D"]},{"id":1601008,"marks":["A","B","C","D"]},{"id":1601007,"marks":["A","B","C"]},{"id":1601006,"marks":["A","B","C","D"]},{"id":1601005,"marks":["A","C"]},{"id":1601004,"marks":["A","B","C","D"]},{"id":1601003,"marks":["A","B","C","D"]},{"id":1601002,"marks":["A","B"]},{"id":1601001,"marks":["A","B","C"]},{"id":1601000,"marks":["A","C","D"]},{"id":1600999,"marks":["A","B","D"]},{"id":1600998,"marks":["A","B","C"]},{"id":1600997,"marks":["A","C"]},{"id":1600996,"marks":["A","C","D"]},{"id":1600995,"marks":["A","B","C","D"]},{"id":1600994,"marks":["A","B","C","D"]},{"id":1600993,"marks":["A","B","C","D"]},{"id":1600992,"marks":["A","B","C","D"]},{"id":1600991,"marks":["A","B","C","D","E"]},{"id":1600990,"marks":["A","B","C","D"]},{"id":1600989,"marks":["B","C","D"]},{"id":1600988,"marks":["A","B","C","D"]},{"id":1600987,"marks":["A","B","C","D"]},{"id":1600986,"marks":["A","B","C","D"]},{"id":1600985,"marks":["B","C","D"]},{"id":1600984,"marks":["A","B","C","D"]},{"id":1600983,"marks":["A","B","C","D"]},{"id":1600982,"marks":["A","B","C","D"]},{"id":1600981,"marks":["A","B","C"]},{"id":1600980,"marks":["A","B","C"]},{"id":1600979,"marks":["A","B","C","D"]},{"id":1600978,"marks":["A","D"]},{"id":1600977,"marks":["A","B","C","D"]},{"id":1600976,"marks":["A","B","D"]},{"id":1600975,"marks":["A","B","C","D"]},{"id":1600974,"marks":["A","B","C","D","E"]},{"id":1600973,"marks":["A","B","C","D"]},{"id":1600972,"marks":["A","B","C","D"]},{"id":1600971,"marks":["A","B","C"]},{"id":1600970,"marks":["A","B","C"]},{"id":1600969,"marks":["A","B","C","D"]},{"id":1600968,"marks":["A","C","D"]},{"id":1600967,"marks":["A","C","D"]},{"id":1600966,"marks":["A","C"]},{"id":1600965,"marks":["A","B","C","D"]},{"id":1600964,"marks":["A","B","C"]},{"id":1600963,"marks":["A","B","C","D","E"]},{"id":1600962,"marks":["A","B","C","D"]},{"id":1600961,"marks":["A","B","C","D"]},{"id":1600960,"marks":["A","B","D"]},{"id":1600959,"marks":["A","C","D"]},{"id":1600958,"marks":["A","C","D"]},{"id":1600957,"marks":["A","B","C","D","E"]},{"id":1600956,"marks":["A","B","C","D","E"]},{"id":1600955,"marks":["A","B"]},{"id":1600954,"marks":["A","B","C"]},{"id":1600953,"marks":["A","D"]},{"id":1600952,"marks":["B","C"]},{"id":1600951,"marks":["A","B","C"]},{"id":1600950,"marks":["B","D"]},{"id":1600949,"marks":["A","B","C","D"]},{"id":1600948,"marks":["A","C","D"]},{"id":1600947,"marks":["B","C","D"]},{"id":1600946,"marks":["A","D"]},{"id":1600945,"marks":["A","C","D"]},{"id":1600944,"marks":["B"]},{"id":1600943,"marks":["A"]},{"id":1600942,"marks":["D"]},{"id":1600941,"marks":["C"]},{"id":1600940,"marks":["D"]},{"id":1600939,"marks":["D"]},{"id":1600938,"marks":["B"]},{"id":1600937,"marks":["C"]},{"id":1600936,"marks":["D"]},{"id":1600935,"marks":["B"]},{"id":1600934,"marks":["D"]},{"id":1600933,"marks":["B"]},{"id":1600932,"marks":["C"]},{"id":1600931,"marks":["A"]},{"id":1600930,"marks":["C"]},{"id":1600929,"marks":["B"]},{"id":1600928,"marks":["C"]},{"id":1600927,"marks":["D"]},{"id":1600926,"marks":["B"]},{"id":1600925,"marks":["C"]},{"id":1600924,"marks":["A"]},{"id":1600923,"marks":["B"]},{"id":1600922,"marks":["B"]},{"id":1600921,"marks":["B"]},{"id":1600920,"marks":["C"]},{"id":1600919,"marks":["D"]},{"id":1600918,"marks":["A"]},{"id":1600917,"marks":["B"]},{"id":1600916,"marks":["B"]},{"id":1600915,"marks":["D"]},{"id":1600914,"marks":["A"]},{"id":1600913,"marks":["B"]},{"id":1600912,"marks":["D"]},{"id":1600911,"marks":["A"]},{"id":1600910,"marks":["C"]},{"id":1600909,"marks":["C"]},{"id":1600908,"marks":["A"]},{"id":1600907,"marks":["D"]},{"id":1600906,"marks":["D"]},{"id":1600905,"marks":["A"]},{"id":1600904,"marks":["A"]},{"id":1600903,"marks":["D"]},{"id":1600902,"marks":["D"]},{"id":1600901,"marks":["A"]},{"id":1600900,"marks":["B"]},{"id":1600899,"marks":["D"]},{"id":1600898,"marks":["C"]},{"id":1600897,"marks":["C"]},{"id":1600896,"marks":["C"]},{"id":1600895,"marks":["A"]},{"id":1600894,"marks":["B"]},{"id":1600893,"marks":["A"]},{"id":1600892,"marks":["B"]},{"id":1600891,"marks":["B"]},{"id":1600890,"marks":["A"]},{"id":1600889,"marks":["A"]},{"id":1600888,"marks":["D"]},{"id":1600887,"marks":["D"]},{"id":1600886,"marks":["A"]},{"id":1600885,"marks":["D"]},{"id":1600884,"marks":["B"]},{"id":1600883,"marks":["B"]},{"id":1600882,"marks":["B"]},{"id":1600881,"marks":["C"]},{"id":1600880,"marks":["C"]},{"id":1600879,"marks":["B"]},{"id":1600878,"marks":["B"]},{"id":1600877,"marks":["B"]},{"id":1600876,"marks":["A"]},{"id":1600875,"marks":["C"]},{"id":1600874,"marks":["B"]},{"id":1600873,"marks":["B"]},{"id":1600872,"marks":["A"]},{"id":1600871,"marks":["D"]},{"id":1600870,"marks":["B"]},{"id":1600869,"marks":["B"]},{"id":1600868,"marks":["C"]},{"id":1600867,"marks":["B"]},{"id":1600866,"marks":["B"]},{"id":1600865,"marks":["D"]},{"id":1600864,"marks":["A"]},{"id":1600863,"marks":["C"]},{"id":1600862,"marks":["A"]},{"id":1600861,"marks":["B"]},{"id":1600860,"marks":["B"]},{"id":1600859,"marks":["C"]},{"id":1600858,"marks":["B"]},{"id":1600857,"marks":["B"]},{"id":1600856,"marks":["A"]},{"id":1600855,"marks":["B"]},{"id":1600854,"marks":["B"]},{"id":1600853,"marks":["B"]},{"id":1600852,"marks":["D"]},{"id":1600851,"marks":["D"]},{"id":1600850,"marks":["B"]},{"id":1600849,"marks":["B"]},{"id":1600848,"marks":["A"]},{"id":1600847,"marks":["B"]},{"id":1600846,"marks":["C"]},{"id":1600845,"marks":["B"]},{"id":1600844,"marks":["C"]},{"id":1600843,"marks":["B"]},{"id":1600842,"marks":["C"]},{"id":1600841,"marks":["B"]},{"id":1600840,"marks":["A"]},{"id":1600839,"marks":["C"]},{"id":1600838,"marks":["D"]},{"id":1600837,"marks":["D"]},{"id":1600836,"marks":["C"]},{"id":1600835,"marks":["A"]},{"id":1600834,"marks":["C"]}]'))

  function answer (questions) {
    let count = 0
    $('.ep_topic').each((_, el) => {
      const radios = $(el).find('.ep_radio')
      const id = parseInt(radios.attr('name'))

      const question = questions.find((x) => x.id === id)
      if (!question) return console.log(`缺少的题目编号:${id}`)
      const marks = question.marks

      marks.forEach((mark) => {
        const i = mark.charCodeAt(0) - 'A'.charCodeAt(0)
        radios[i].click()
      })

      count++
    })
    console.log(`自动答题完成 ${count} 题!没有问题请提交。`)
  }
})()
none
打赏采用二维码方式。

添加新评论