Let say you want to override some JS function. You can do that in the following workflow.
this.cancelcolorbox = function(){
$.colorbox.remove();
};
Our custom.js file content should look like.
lhinst.cancelcolorbox = function(data){
if (confirm('Are you sure')){
$.colorbox.remove();
}};
So this way we have overrided default behaviour without changing kernel.
Developing application takes a lot of time. You can support application by donating. There is no company behind this application and it takes away my free time. Every donation matters and does not matter how small it is!