window.onerror = stopError; function stopError() { return true; }