HFUT Program

合肥工业大学培养方案检查工具

  1. // ==UserScript==
  2. // @name HFUT Program
  3. // @namespace https://greasyfork.org/zh-CN/scripts/460368
  4. // @version 0.2
  5. // @description 合肥工业大学培养方案检查工具
  6. // @author xqm32
  7. // @include /^https?://jxglstu\.hfut\.edu\.cn/eams5-student/for-std/program-completion-preview/info/.*/
  8. // @icon none
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. // 等待培养方案获取完毕
  15. setTimeout(() => {
  16. for (i of document.querySelectorAll("#course-info-table > tbody > tr > td"))
  17. if (i.textContent === "通过")
  18. i.parentElement.style.backgroundColor = "#aaeeee";
  19. else if (i.textContent === "在读")
  20. i.parentElement.style.backgroundColor = "#eeeeaa";
  21. else if (i.textContent === "未修")
  22. i.parentElement.style.backgroundColor = "#eeaaee";
  23. }, 1000)
  24. })()