top of page

How to calculate your GPA on the HCMUS portal?

  • Writer: Nguyen Van Cuong
    Nguyen Van Cuong
  • Sep 6, 2021
  • 1 min read

Updated: Oct 7, 2021

This is how I calculate my GPA on the HCMUS portal.


Step 1: Open your study score at: https://portal2.hcmus.edu.vn/SinhVien.aspx?pid=211

Step 2: Once in the F12 Developer Tools, navigate to the Console tab

Step 3: Paste this code and enter to see the result


var tinchi = document.querySelectorAll("td:nth-child(3)");

var monhoc = document.querySelectorAll("td:nth-child(2)");

var diem = document.querySelectorAll("td:nth-child(6)");

var diemtren = 0,

diemduoi = 0;

for (var i = 1; i < tinchi.length; i++) {

if (

monhoc[i].innerText.includes("Thể dục") ||

monhoc[i].innerText.includes("Anh văn") ||

monhoc[i].innerText.includes("Giáo dục") || Number(diem[i].innerText) < 5

) {

continue;

}

diemtren += Number(tinchi[i].innerText) * Number(diem[i].innerText);

diemduoi += Number(tinchi[i].innerText);

}

console.log("Tong tin chi : " + diemduoi);

console.log("Diem trung binh : " + diemtren / diemduoi);


Except: Scores in national defense education, English and failed subjects


Update: Better tools I found: dtrung98/GPABookmarklet

コメント


bottom of page