diff --git a/jquery_update.install b/jquery_update.install
old mode 100644
new mode 100755
index 3633ddd..5243eab
--- a/jquery_update.install
+++ b/jquery_update.install
@@ -33,6 +33,7 @@ function jquery_update_uninstall() {
   variable_del('jquery_update_jquery_version');
   variable_del('jquery_update_jquery_admin_version');
   variable_del('jquery_update_jquery_cdn');
+  variable_del('jquery_update_jquery_custom_cdn');
 }
 
 /**
diff --git a/jquery_update.module b/jquery_update.module
old mode 100644
new mode 100755
index 956c9e5..d088d48
--- a/jquery_update.module
+++ b/jquery_update.module
@@ -225,6 +225,7 @@ function jquery_update_settings_form() {
       'google' => t('Google'),
       'microsoft' => t('Microsoft'),
       'jquery' => t('jQuery'),
+      'custom' => t('Custom'),
     ),
     // Do not show this field if jQuery version is default
     '#states' => array(
@@ -235,6 +236,17 @@ function jquery_update_settings_form() {
     '#default_value' => variable_get('jquery_update_jquery_cdn', 'none'),
     '#description' => t('Use jQuery and jQuery UI from a CDN. If the CDN is not available the local version of jQuery and jQuery UI will be used.'),
   );
+  $form['jquery_update_jquery_custom_cdn'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Custom jQuery and jQuery UI CDN'),
+    '#default_value' => variable_get('jquery_update_jquery_custom_cdn', NULL),
+    '#description' => t('Use jQuery and jQuery UI from a custom CDN. Format should be http://cdn.ext'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="jquery_update_jquery_cdn"]' => array('value' => 'custom'),
+      ),
+    ),
+  );
 
   return system_settings_form($form);
 }
@@ -304,6 +316,12 @@ function jquery_update_jquery_replace(&$javascript, $cdn, $path, $min, $version)
       jquery_update_jquery_backup($javascript, $path, $min, $version);
       break;
 
+    case 'custom':
+      $javascript['jquery']['js']['misc/jquery.js']['data'] = variable_get('jquery_update_jquery_custom_cdn') . '/jquery-' . $trueversion . $min . '.js';
+      $javascript['jquery']['js']['misc/jquery.js']['type'] = 'external';
+      jquery_update_jquery_backup($javascript, $path, $min, $version);
+      break;
+
     case 'none':
     default:
       $javascript['jquery']['js']['misc/jquery.js']['data'] = $path . '/replace/jquery/' . $version . '/jquery' . $min . '.js';
