Hi there. I need to override some function from a contributed module. I used drupal_add_js() to load my javascript but it loads after the contrib module, so I cannot override. My module is empty with only hook_init() to do the job. Also tried it in hook_footer() no success.
Any ideas are hugely appreciated.