HFUT Program

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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