Revert "Reveal Spoiler Thumbnails will replace the imgspoiler class on the thumbnail parent link with imgspoiler-revealed."
This reverts commit 5fbe0c27d2ab36f433c990f5130f3dd7b9af3307.
This commit is contained in:
parent
e54a42edeb
commit
4fcb304b96
@ -9,8 +9,6 @@ RevealSpoilers =
|
|||||||
node: ->
|
node: ->
|
||||||
return unless not @isClone and @file and @file.thumb and @file.isSpoiler
|
return unless not @isClone and @file and @file.thumb and @file.isSpoiler
|
||||||
{thumb} = @file
|
{thumb} = @file
|
||||||
$.rmClass thumb.parentNode, 'imgspoiler'
|
|
||||||
$.addClass thumb.parentNode, 'imgspoiler-revealed'
|
|
||||||
# Remove old width and height.
|
# Remove old width and height.
|
||||||
thumb.removeAttribute 'style'
|
thumb.removeAttribute 'style'
|
||||||
# Enforce thumbnail size if thumbnail is replaced.
|
# Enforce thumbnail size if thumbnail is replaced.
|
||||||
|
|||||||
@ -176,7 +176,6 @@ class Post
|
|||||||
size: info[1]
|
size: info[1]
|
||||||
isImage: /(jpg|png|gif)$/i.test link.href
|
isImage: /(jpg|png|gif)$/i.test link.href
|
||||||
isVideo: /webm$/i.test link.href
|
isVideo: /webm$/i.test link.href
|
||||||
isSpoiler: '.' not in link.textContent
|
|
||||||
dimensions: info[0].match(/\d+x\d+/)?[0]
|
dimensions: info[0].match(/\d+x\d+/)?[0]
|
||||||
tag: info[0].match(/,[^,]*, ([a-z]+)\)/i)?[1]
|
tag: info[0].match(/,[^,]*, ([a-z]+)\)/i)?[1]
|
||||||
size = +@file.size.match(/[\d.]+/)[0]
|
size = +@file.size.match(/[\d.]+/)[0]
|
||||||
@ -188,6 +187,7 @@ class Post
|
|||||||
thumb: thumb
|
thumb: thumb
|
||||||
thumbURL: if m = link.href.match(/\d+(?=\.\w+$)/) then "#{location.protocol}//i.4cdn.org/#{@board}/#{m[0]}s.jpg"
|
thumbURL: if m = link.href.match(/\d+(?=\.\w+$)/) then "#{location.protocol}//i.4cdn.org/#{@board}/#{m[0]}s.jpg"
|
||||||
MD5: thumb.dataset.md5
|
MD5: thumb.dataset.md5
|
||||||
|
isSpoiler: $.hasClass thumb.parentNode, 'imgspoiler'
|
||||||
|
|
||||||
@deadMark =
|
@deadMark =
|
||||||
# \u00A0 is nbsp
|
# \u00A0 is nbsp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user