diff --git js/parent.js js/parent.js
index 4e895b3..59c9072 100644
--- js/parent.js
+++ js/parent.js
@@ -120,6 +120,16 @@ Drupal.modalFrame.open = function(options) {
     customDialogOptions: options.customDialogOptions
   };
 
+  // Apply modalFrame_override_js if it is defined for the same url
+  if (Drupal.settings.modalFrame) {
+    // if url is defined in the settings then set the new values
+    if (Drupal.settings.modalFrame[self.options.url]) {
+      $.each(Drupal.settings.modalFrame[self.options.url], function(key, value) {
+        self.options[key] = value;
+      });
+    }
+  }
+
   // Create the dialog and related DOM elements.
   self.create();
 
diff --git modalframe.module modalframe.module
index b854385..76c6937 100644
--- modalframe.module
+++ modalframe.module
@@ -218,6 +218,12 @@ function modalframe_parent_js() {
   }
   $processed = TRUE;
 
+  // Call hook_modalframe_override_js
+  $override_js = module_invoke_all('modalframe_override_js', $override_js);
+  if (!empty($override_js)) {
+    drupal_add_js(array('modalFrame' => $override_js), 'setting');
+  }
+
   jquery_ui_add(array('ui.dialog', 'ui.draggable'));
   $module_path = drupal_get_path('module', 'modalframe');
   drupal_add_css($module_path .'/css/modalframe.parent.css');
