Some themes allow you to inject custom javascript onto pages, you could do this, alternatively you could edit your theme and put it in there.
Forum
Moodle 3.7 - Reply inline and "Advanced" editor mode
This discussion has been locked so you can no longer reply to it.