Hi!
Is there a way to conveniently embed local JavaScript AMD plugins into several pages like course/view.php without actually editing the PHP core code? (e.g by adding $PAGE->requires->js_call_amd)
Whenever a new update of Moodle is deployed to the server, all core files have to be edited as well. So is there an alternative way to embed JS Code and maintain serviceability?