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)
- Go to your courses page (for me its: https://usosweb.ansb.pl/kontroler.php?_action=dla_stud/studia/oceny/index)
- Open the browser Dev Tools F12
- 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'));
- Change the
term_num
to select the term you're interested in (by default it will print the current one) - Press Enter to run the code
- Copy the output