PupilPath Plus

Appends total average to PupilPath, and includes a grade changer feature (visual only)

目前為 2018-05-24 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
DeathHackz
評價
0 0 0
版本
2.3
建立日期
2018-05-24
更新日期
2018-05-24
尺寸
9.7 KB
授權條款
未知
腳本執行於

PupilPath Plus

A userscript which calculates and shows your total average and more...

Features

  • Average Calculator
  • Grade Changer (visual only)

Credits

Average Calculation is done using this code, written by cqfllp.

  var links=document.querySelectorAll('tr[style="cursor: pointer"]');
  var text="";
  var num=0;
  var count=0;
  for(var i=0;i<links.length;i++){
    var str = links[i].innerText;
    text=str.split('MP1:  ')[1];
    text=parseFloat(text);
    text = text || 0;
    if (text==0){
    }else{
    num+=parseFloat(text);
    count++;
    }
  }
  var avg=num/count;
  alert("Total Average: "+Math.ceil(avg*100)/100);

Changelog

  • Version 2.3 (May 14, 2018):
    • Fixed minor bugs & added styles to grade changer.
  • Version 2.2 (May 14, 2018):
    • Fixed major jQuery compatibility bug.
  • Version 2.1 (May 13, 2018):
    • Fixed minor bug & removed useless code.
  • Version 2.0 (May 12, 2018):
    • Fixed minor bugs & added in visual grade changer.
  • Version 1.3 (May 11, 2018):
    • Added support for more Marking Periods.
  • Version 1.2 (May 9, 2018):
    • Added in jQuery.
  • Version 1.0 (May 4, 2018):
    • Created userscript.