How do I edit a control when the view does not correspond to a doctype, for example print.js?

I need to edit the behavior of the print-format selection in print.js. I made an extension file and added in the hook to my app and with jquery I got the control value but I can’t change the value. What do I do to be able to achieve this?