Explicitly Store Your Function in a Different Variable
const myStop = (s, t, o, p = window) => { console.log("Custom stop called"); }; window.stop = myStop;
Then, always call myStop() instead of relying on stop.