Fix Reveal Spoiler. Derp.

This commit is contained in:
Nicolas Stepien 2012-03-03 19:45:37 +01:00
parent bf18a4b06b
commit 0d7530f8d0
2 changed files with 3 additions and 5 deletions

View File

@ -2836,9 +2836,7 @@
},
node: function(post) {
var img;
img = {
post: post
};
img = post.img;
if (!(img && /^Spoil/.test(img.alt)) || post["class"] === 'inline') return;
img.removeAttribute('height');
img.removeAttribute('width');

View File

@ -61,7 +61,7 @@ config =
uniqueid: [
'# Filter a specific ID:'
'#/Txhvk1Tl/'
].join '\n'
].join '\n'
tripcode: [
'# Filter any tripfags'
'#/^!/'
@ -2338,7 +2338,7 @@ revealSpoilers =
init: ->
g.callbacks.push @node
node: (post) ->
img = {post}
{img} = post
if not (img and /^Spoil/.test img.alt) or post.class is 'inline'
return
img.removeAttribute 'height'