Skip to content

Instantly share code, notes, and snippets.

// Quick and dirty script that calculates your average on the results page on Progress
// Simply copy this into your console and a popup should appear with your average
(function(){
function get_average(weighted = false){
const marks = [...document.querySelectorAll("#wrapper > div.prg_sidebarWithContent > div > div.prg_container > div > div.prg_box__content > table > tbody > tr")]
.filter((row) => row.children.length > 1 )
.map((row) => ({
"grade": parseFloat(row.children[4].innerText.replace(",", ".")),