Skip to content

Instantly share code, notes, and snippets.

@xendk
Created July 11, 2012 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xendk/3091877 to your computer and use it in GitHub Desktop.
Save xendk/3091877 to your computer and use it in GitHub Desktop.
Mutilate facebook_comments.
diff --git a/facebook_comments.module b/facebook_comments.module
index 68a1cc8..b65ea88 100644
--- a/facebook_comments.module
+++ b/facebook_comments.module
@@ -354,13 +354,6 @@ function facebook_comments_display($width, $amount, $fluid = 0) {
// Add user defined settings
$style = variable_get('facebook_comments_style', 'light');
$output = '<div id="fb-root"></div>
-<script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) {return;}
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
- fjs.parentNode.insertBefore(js, fjs);
-}(document, "script", "facebook-jssdk"));</script>
<div class="fb-comments ' . $class . '" data-href="' . $url . '" data-num-posts="' . $amount . '" data-width="' . $width . '" data-colorscheme="' . $style . '"></div>';
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment