I found this: Add a custom per-user setting in a plugin
In the comments, one user said he “patched a controller.” He has a .js.es6 file in assets/javascripts/discourse/initializers/ that references a method called api.modifyClass() …
Hmmmmmmm
Maybe I am onto something here.