summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2015-07-29 01:27:35 +0200
committerMarcin Łabanowski <marcin@6irc.net>2015-07-29 01:27:35 +0200
commit481f9b147517b341a875b8580eaf276db0a7f955 (patch)
tree5c877d0d85b30818f05b7a54c908035b6d94955d
parentd3d167affb7f2ac7708e8fe54658df594b6f672c (diff)
parentc97475d4875994c223ed79a7aabadd58a5a2ae30 (diff)
Merge pull request #151 from JasonPuglisi/hide-videos
Added ability to hide videos/webms
-rw-r--r--js/hide-images.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/hide-images.js b/js/hide-images.js
index 023c166c..323a1a1f 100644
--- a/js/hide-images.js
+++ b/js/hide-images.js
@@ -93,9 +93,9 @@ $(document).ready(function(){
$(this).parent().prev().find('.hide-image-link').click();
};
- $('div.post > a > img.post-image, div > a > img.post-image').each(handle_images);
+ $('div.post > a > img.post-image, div.post > a > video.post-image, div > a > img.post-image, div > a > video.post-image').each(handle_images);
$(document).on('new_post', function(e, post) {
- $(post).find('a > img.post-image').each(handle_images);
+ $(post).find('a > img.post-image, a > video.post-image').each(handle_images);
});
});