script: hijack buttons in the remote script