Is there any possibility to disable the consent form from the code perspective like adding additional parameters to inserted script?
Yes. Of course, it depends on you exact needs, but many things can be manipulated using the API.
E.g. disabling the consent form equals more or less giving consent for all categories from via the API.