HFUT Program

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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)
})()