Browse Source

Don't expand webm or YouTube videos on js/expand-all-images.js

pull/40/head
8chan 10 years ago
committed by czaks
parent
commit
99ee2e36ba
  1. 8
      js/expand-all-images.js

8
js/expand-all-images.js

@ -23,6 +23,14 @@ onready(function(){
.text(_('Expand all images'))
.click(function() {
$('a img.post-image').each(function() {
// Don't expand YouTube embeds
if ($(this).parent().parent().hasClass('video-container'))
return;
// or WEBM
if (/^\/player\.php\?/.test($(this).parent().attr('href')))
return;
if (!$(this).parent()[0].dataset.expanded)
$(this).parent().click();
});

Loading…
Cancel
Save