Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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