restorefunction restorefunction(target: function): boolean Undoes a hookfunction, putting the original back. Aliased as restorefunc.