HFUT Program

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         HFUT Program
// @namespace    https://greasyfork.org/zh-CN/scripts/460368
// @version      0.2
// @description  合肥工业大学培养方案检查工具
// @author       xqm32
// @include      /^https?://jxglstu\.hfut\.edu\.cn/eams5-student/for-std/program-completion-preview/info/.*/
// @icon         none
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  // 等待培养方案获取完毕
  setTimeout(() => {
    for (i of document.querySelectorAll("#course-info-table > tbody > tr > td"))
      if (i.textContent === "通过")
        i.parentElement.style.backgroundColor = "#aaeeee";
      else if (i.textContent === "在读")
        i.parentElement.style.backgroundColor = "#eeeeaa";
      else if (i.textContent === "未修")
        i.parentElement.style.backgroundColor = "#eeaaee";
  }, 1000)
})()