Inject Js script - Help

Hi All

please help me
I am new to Inject JsScript, I was able to do a few JS scripts but I am trying to figure out how to access and change this particular object

Have a check on following:
AlterIfDisabled - If enabled, the action is executed even if the specified UI element is disabled.

Maybe this flag from newer package version makes the need of using js obsolete

Thank you so much Peter, i will give it a try