13 lines
304 B
CoffeeScript
13 lines
304 B
CoffeeScript
RevealSpoilers =
|
|
init: ->
|
|
return if g.VIEW is 'catalog' or !Conf['Reveal Spoilers']
|
|
|
|
Post::callbacks.push
|
|
name: 'Reveal Spoilers'
|
|
cb: @node
|
|
node: ->
|
|
return if @isClone or !@file?.isSpoiler
|
|
{thumb} = @file
|
|
thumb.removeAttribute 'style'
|
|
thumb.src = @file.thumbURL
|