HFUT Program

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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