Last active
November 27, 2016 01:56
-
-
Save PaeP3nguin/22089e4abfa6f8bf84e4 to your computer and use it in GitHub Desktop.
Script to find the average class grade for a class on Canvas. To use: copy and run in the Chrome console while on the "Grades" page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
$("tr.student_assignment.assignment_graded.editable").each(function() { | |
var mean = $(this).next().find("tbody td").first().text().replace("Mean:",""); | |
$(this).find(".what_if_score").text(mean); | |
$(this).find(".assignment_score .tooltip").trigger("score_change"); | |
}); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what's the motivation behind wrapping this in an IIFE? just to suppress the jQuery objects it returns?