最快最简单的方法是什么,可以添加一个持久化的javascript文件或代码片段

通过 UI 编辑主题或创建组件:Beginner's guide to using Discourse Themes
另见:Developing Discourse Themes & Theme Components