Kris: here's my attempt, which is more invasive but avoids callbacks.
Bug 1572508 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Kris: here's my attempt, which is more invasive but avoids callbacks. I ended up just making copies of the static pref values instead of using function pointers like I suggested in comment 1.