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(`#oceny > usos-frame-section:nth-child(${term_num + 1}) > table > tbody > tr > td > a`)].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