This commit is contained in:
Nicolas Stepien 2012-03-03 04:23:01 +01:00
parent 0ebdb86ea8
commit 82a92c3799
2 changed files with 8 additions and 4 deletions

View File

@ -759,7 +759,8 @@
$.replace(a.parentNode.parentNode, bq);
if (conf['Quote Preview']) quotePreview.node(bq);
if (conf['Quote Inline']) quoteInline.node(bq);
return quoteIndicators.node(bq);
if (conf['Indicate OP quote']) quoteOP.node(bq);
if (conf['Indicate Cross-thread Quotes']) return quoteDR.node(bq);
}
};
@ -3587,7 +3588,7 @@
},
node: function(post) {
var img, src;
if (post.root.hidden || post.img) return;
if (post.root.hidden || !post.img) return;
src = post.img.parentNode.href;
if (/gif$/.test(src) && !/spoiler/.test(src)) {
img = $.el('img');

View File

@ -641,7 +641,10 @@ expandComment =
quotePreview.node bq
if conf['Quote Inline']
quoteInline.node bq
quoteIndicators.node bq
if conf['Indicate OP quote']
quoteOP.node bq
if conf['Indicate Cross-thread Quotes']
quoteDR.node bq
expandThread =
init: ->
@ -2892,7 +2895,7 @@ imgGif =
init: ->
g.callbacks.push @node
node: (post) ->
return if post.root.hidden or post.img
return if post.root.hidden or not post.img
src = post.img.parentNode.href
if /gif$/.test(src) and !/spoiler/.test src
img = $.el 'img'