NetanelBasal
10/29/2016 - 9:38 PM

mp.js

let originalSetTimeout = window.setTimeout;

window.setTimeout = (cb, milliseconds) => {
  console.log('Intercepting setTimeout...');
  originalSetTimeout.call(null, cb, milliseconds);
}

setTimeout(() => {
  console.log('Monkey patching!!!');
}, 1000);