Skip to content

Instantly share code, notes, and snippets.

@dwouca
Last active July 20, 2019 03:10
Show Gist options
  • Save dwouca/4d337391615d729b59f86ee3a4130c5c to your computer and use it in GitHub Desktop.
Save dwouca/4d337391615d729b59f86ee3a4130c5c to your computer and use it in GitHub Desktop.
Bookmarklet that calculates cyber start essentials (cyber discovery) average exam score without the first 3 (for these scores don't count)
javascript:(function(){total=0;n=0;for(let i = 1; i<document.getElementsByClassName("progress").length-4;i++){try{x=(parseInt(document.getElementsByClassName("progress")[i+3].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