tolerate new image links
This commit is contained in:
parent
c0ea6f8e95
commit
9acdd4bd85
@ -197,7 +197,7 @@ Gallery =
|
|||||||
if src[2] is 'i.4cdn.org'
|
if src[2] is 'i.4cdn.org'
|
||||||
URL = Redirect.to 'file',
|
URL = Redirect.to 'file',
|
||||||
boardID: src[3]
|
boardID: src[3]
|
||||||
filename: src[5]
|
filename: src[src.length - 1]
|
||||||
if URL
|
if URL
|
||||||
thumb.href = URL
|
thumb.href = URL
|
||||||
return unless Gallery.nodes.current is img
|
return unless Gallery.nodes.current is img
|
||||||
|
|||||||
@ -206,7 +206,7 @@ ImageExpand =
|
|||||||
if src[2] is 'i.4cdn.org'
|
if src[2] is 'i.4cdn.org'
|
||||||
URL = Redirect.to 'file',
|
URL = Redirect.to 'file',
|
||||||
boardID: src[3]
|
boardID: src[3]
|
||||||
filename: src[5]
|
filename: src[src.length - 1]
|
||||||
if URL
|
if URL
|
||||||
setTimeout ImageExpand.expand, 10000, post, URL
|
setTimeout ImageExpand.expand, 10000, post, URL
|
||||||
return
|
return
|
||||||
|
|||||||
@ -52,7 +52,7 @@ ImageHover =
|
|||||||
if src[2] is 'i.4cdn.org'
|
if src[2] is 'i.4cdn.org'
|
||||||
URL = Redirect.to 'file',
|
URL = Redirect.to 'file',
|
||||||
boardID: src[3]
|
boardID: src[3]
|
||||||
filename: src[5].replace /\?.+$/, ''
|
filename: src[src.length - 1].replace /\?.+$/, ''
|
||||||
if URL
|
if URL
|
||||||
@src = URL
|
@src = URL
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user