Fix Reveal Spoiler. Derp.
This commit is contained in:
parent
bf18a4b06b
commit
0d7530f8d0
@ -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');
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user