Is there a way to Override the same javascript for different inputs locally?

So, suppose there is a html code that has two buttons, A and B. Both buttons call the same javascript, say Callscript(), but with different inputs, that is A calls with Callscript(A) and B calls with Callscript(B). I have overridden the response of Button A to a local file, and I want B to get the usual response, but the response of button B is also being Overridden.

I want to override only the response of button A, but not of B. Is this possible in Chrome’s Overrides option?