Where to add client-side script to customize quick entry popup

In the full-screen form of a doctype, I have the following working script

frappe.ui.form.on('Job', {
    setup: function(jobCompForm) {
        jobCompForm.set_query('site_component',
            function(frm, doctypeName /* it is "Job" */, currentJobUid) {
                return {
                    filters: {
                        assignment: jobCompForm.doc.assignment,
                    }
                }
            });
    },
    ...
}

But on quick entry form, it seems that the above script has not effect.

Where can input the above script so that it works the same on quick entry form?

Thanks in advance

I’m working on the same problem. There are a number of leads in the forum I’m looking into, which you can find if you search for “quick entry custom script”.