[Userscript] Script that notices your 0 lessons and reviews

I expected an OwO joke when I saw the title, wasn’t disappointed.

1 Like

2 Likes

It’s not as pretty as before, and only works on big screen devices, but here’s a snippet for the new UI:

function main() {
    var q = document.querySelector.bind(document)
    var lesson = q('a[href="/lesson"]')
    var review = q('a[href="/review"]')
    if (lesson.children[0].textContent === '0' && review.children[0].textContent === '0') {
        lesson.lastChild.textContent = 'w'
        review.lastChild.textContent = ''
        review.parentElement.style.marginLeft = 0
    }
}
window.addEventListener('load', main, false);
1 Like

I apologize for a completely irrelevant comment but I appreciate your name and picture. Me and many of my friends all have Axolotls <3

1 Like