Custom module

How to override (replace, alter) JavaScript file used by Drupal module with your own version

This is the scenario: I have edited friendly_register.js file belonging to the Friendly register module in order to make a better CSS sprint (less http requests == site