I used to mess with this file a lot for this type of stuff, but found it to be bad practice. One way to change stuff is to just create completely new elements once you detect you are in standalone mode, and use this file as a guide . Line 832 is what I think you are looking for .