好大学在线一键/自动满分

try to take over the world!

  1. // ==UserScript==
  2. // @name 好大学在线一键/自动满分
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description try to take over the world!
  6. // @author Yuan
  7. // @match *://www.cnmooc.org/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. function autoSelect() {
  14. this.select()
  15. }
  16. function setScore() {
  17. var scoreLabels = Array.from(document.getElementsByClassName("mt-para"))
  18. if (scoreLabels.length > 0) {
  19. scoreLabels.forEach(item => {
  20. var text = item.textContent;
  21. var score = /满分(\d{1,2})分/g.exec(text)[1]
  22. if (item.nextElementSibling.lastElementChild.value == "") {
  23. console.log("Set score " + score)
  24. item.nextElementSibling.lastElementChild.value = score
  25. item.nextElementSibling.lastElementChild.onclick = autoSelect
  26. }
  27. })
  28. }
  29. }
  30. setInterval(setScore, 1000)
  31. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址