Skip to content

Instantly share code, notes, and snippets.

@gamefreak
Created May 2, 2012 22:08
Show Gist options
  • Save gamefreak/2580933 to your computer and use it in GitHub Desktop.
Save gamefreak/2580933 to your computer and use it in GitHub Desktop.
diff --git a/lib/reddit_enhancement_suite.user.js b/lib/reddit_enhancement_suite.user.js
index 63409e5..dfd4e30 100644
--- a/lib/reddit_enhancement_suite.user.js
+++ b/lib/reddit_enhancement_suite.user.js
@@ -8741,6 +8741,9 @@ modules['showImages'] = {
});
}
+ //So the link gets colored when clicking the thumbnail
+ $(elem).closest('.thing').find('.thumbnail').attr('href', elem.href);
+
//This should not be reached in the case of duplicates
elem.name = 'img'+this.imagesRevealed[href];
this.imageList.push(elem);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment