Index: disqus/disqus.js
===================================================================
--- disqus/disqus.js	(revision 3493)
+++ disqus/disqus.js	(working copy)
@@ -31,6 +31,7 @@
         disqus_developer = settings.disqus.developer || 0;
         disqus_def_name = settings.disqus.name || '';
         disqus_def_email = settings.disqus.email || '';
+        disqus_protocol = $("<a href="+window.location+">").get(0).protocol;
 
         // Language and SSO settings are passed in through disqus_config().
         disqus_config = function() {
@@ -51,7 +52,7 @@
         // Make the AJAX call to get the Disqus comments.
         jQuery.ajax({
           type: 'GET',
-          url: 'http://' + disqus_shortname + '.disqus.com/embed.js',
+          url: disqus_protocol + '//' + disqus_shortname + '.disqus.com/embed.js',
           dataType: 'script',
           cache: false
         });
@@ -63,7 +64,7 @@
         // Make the AJAX call to get the number of comments.
         jQuery.ajax({
           type: 'GET',
-          url: 'http://' + disqus_shortname + '.disqus.com/count.js',
+          url: disqus_protocol + '//' + disqus_shortname + '.disqus.com/count.js',
           dataType: 'script',
           cache: false
         });
Index: disqus/disqus.module
===================================================================
--- disqus/disqus.module	(revision 3493)
+++ disqus/disqus.module	(working copy)
@@ -495,6 +495,7 @@
  * Implements hook_block_view().
  */
 function disqus_block_view($delta = '') {
+  global $is_https;
   $num_items = variable_get($delta . '_items', 5);
   $avatars = variable_get($delta . '_showavatars', TRUE) ? '&avatar_size=' . variable_get($delta . '_avatarsize', 32) : '&amp;hide_avatars=1';
   $color = variable_get($delta . '_colortheme', 'blue');
@@ -502,6 +503,7 @@
   $excerpt_length = variable_get($delta . '_excerpt_length', '200');
   $hide_mods = variable_get($delta . '_hide_mods', FALSE) ? '1' : '0';
   $domain = variable_get('disqus_domain', '');
+  $protocol = $is_https ? 'https:' : 'http:';
   if (!empty($domain)) {
     $subject = '';
     $content = '';
@@ -509,25 +511,25 @@
     case 'disqus_recent_comments':
       $subject = t('Recent Comments');
       $content = <<<EOT
-<div id="dsq-recentcomments" class="dsq-widget"><script type="text/javascript" src="http://disqus.com/forums/$domain/recent_comments_widget.js?num_items=$num_items&amp;excerpt_length=$excerpt_length$avatars"></script></div>
+<div id="dsq-recentcomments" class="dsq-widget"><script type="text/javascript" src="$protocol//disqus.com/forums/$domain/recent_comments_widget.js?num_items=$num_items&amp;excerpt_length=$excerpt_length$avatars"></script></div>
 EOT;
     break;
     case 'disqus_popular_threads':
       $subject = t('Popular Threads');
       $content = <<<EOT
-<div id="dsq-popthreads" class="dsq-widget"><script type="text/javascript" src="http://disqus.com/forums/$domain/popular_threads_widget.js?num_items=$num_items"></script></div>
+<div id="dsq-popthreads" class="dsq-widget"><script type="text/javascript" src="$protocol//disqus.com/forums/$domain/popular_threads_widget.js?num_items=$num_items"></script></div>
 EOT;
     break;
     case 'disqus_top_commenters':
       $subject = t('Top Commenters');
       $content = <<<EOT
-<div id="dsq-topcommenters" class="dsq-widget"><script type="text/javascript" src="http://disqus.com/forums/$domain/top_commenters_widget.js?hide_mods=$hide_mods&amp;num_items=$num_items$avatars"></script></div>
+<div id="dsq-topcommenters" class="dsq-widget"><script type="text/javascript" src="$protocol//disqus.com/forums/$domain/top_commenters_widget.js?hide_mods=$hide_mods&amp;num_items=$num_items$avatars"></script></div>
 EOT;
     break;
     case 'disqus_combination_widget':
       $subject = t('Comments');
       $content = <<<EOT
-<script type="text/javascript" src="http://disqus.com/forums/$domain/combination_widget.js?num_items=$num_items&amp;hide_mods=$hide_mods&amp;excerpt_length=$excerpt_length&amp;color=$color&amp;default_tab=$default_tab"></script>
+<script type="text/javascript" src="$protocol//disqus.com/forums/$domain/combination_widget.js?num_items=$num_items&amp;hide_mods=$hide_mods&amp;excerpt_length=$excerpt_length&amp;color=$color&amp;default_tab=$default_tab"></script>
 EOT;
     break;
     case 'disqus_comments':
