Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Created September 15, 2024 16:39
Show Gist options
  • Save ErykDarnowski/27e0b49fdecca04b5ab7f1d8c90513eb to your computer and use it in GitHub Desktop.
Save ErykDarnowski/27e0b49fdecca04b5ab7f1d8c90513eb to your computer and use it in GitHub Desktop.
USOS print list of course final grades to console

USOS print list of course final grades to console

This little script works for both ordinary and part time timetables + has a bunch of cool QoL features ;)
(It displays the nicer timetable under the original one)

Instructions

  1. Go to your courses page (for me its: https://usosweb.ansb.pl/kontroler.php?_action=dla_stud/studia/oceny/index)
  2. Open the browser Dev Tools F12
  3. Paste in the code:
let term_num = 1; // looks like it goes from most recent to oldest like so: 1 -> n
console.log([...document.querySelectorAll(`#tab${term_num} > tr > td:nth-child(3) > div:nth-child(1) > span`)].map(x => x.innerText).join('\n'));
  1. Change the term_num to select the term you're interested in (by default it will print the current one)
  2. Press Enter to run the code
  3. Copy the output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment