diff --git modules/overlay/overlay.module modules/overlay/overlay.module
index eb1bb49..9276ad6 100644
--- modules/overlay/overlay.module
+++ modules/overlay/overlay.module
@@ -304,6 +304,10 @@ function overlay_preprocess_html(&$variables) {
     // Add overlay class, so themes can react to being displayed in the overlay.
     $variables['classes_array'][] = 'overlay';
   }
+  if (overlay_get_mode() != 'none') {
+    global $user;
+    $variables['overlay_disable'] = l(t('Disable modal overlay'), 'user/' . $user->uid . '/edit', array('attributes' => array('class' => array('overlay-exclude'))));
+  }
 }
 
 /**
diff --git modules/system/html.tpl.php modules/system/html.tpl.php
index 7ef8fc2..b57df80 100644
--- modules/system/html.tpl.php
+++ modules/system/html.tpl.php
@@ -47,6 +47,11 @@
   <div id="skip-link">
     <a href="#main-content"><?php print t('Skip to main content'); ?></a>
   </div>
+  <?php
+  if ($overlay_disable) {
+    print '<div class="element-invisible" id="overlay-disable">' . $overlay_disable . '</div>';
+  }
+  ?>
   <?php print $page_top; ?>
   <?php print $page; ?>
   <?php print $page_bottom; ?>
