Created
May 20, 2018 20:55
-
-
Save dwouca/9f755f11e1e5660ea2667bdb22a7fc1b to your computer and use it in GitHub Desktop.
Bookmarklet that calculates the average score for exams in cyber start essentials.
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
javascript:(function(){total=0;n=0;for(let i = 1; i<document.getElementsByClassName("progress").length-1;i++){try{x=(parseInt(document.getElementsByClassName("progress")[i].childNodes[1].childNodes[3].childNodes[1].textContent.replace("%", "")));total+=x;n+=1}catch{}};alert(total/n)})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment