Can't parseFloat a spoilered image.
This commit is contained in:
parent
232e9d833a
commit
e80fc5a762
@ -2878,7 +2878,7 @@
|
|||||||
FileInfo.data = {
|
FileInfo.data = {
|
||||||
link: post.img.parentNode.href,
|
link: post.img.parentNode.href,
|
||||||
spoiler: /^Spoiler/.test(alt),
|
spoiler: /^Spoiler/.test(alt),
|
||||||
size: parseFloat(alt),
|
size: alt.match(/\d+\.?\d*/)[0],
|
||||||
unit: alt.match(/\w+$/)[0],
|
unit: alt.match(/\w+$/)[0],
|
||||||
resolution: span.previousSibling.textContent.match(/\d+x\d+|PDF/)[0],
|
resolution: span.previousSibling.textContent.match(/\d+x\d+|PDF/)[0],
|
||||||
fullname: span.title,
|
fullname: span.title,
|
||||||
|
|||||||
@ -2226,7 +2226,7 @@ FileInfo =
|
|||||||
FileInfo.data =
|
FileInfo.data =
|
||||||
link: post.img.parentNode.href
|
link: post.img.parentNode.href
|
||||||
spoiler: /^Spoiler/.test alt
|
spoiler: /^Spoiler/.test alt
|
||||||
size: parseFloat alt
|
size: alt.match(/\d+\.?\d*/)[0]
|
||||||
unit: alt.match(/\w+$/)[0]
|
unit: alt.match(/\w+$/)[0]
|
||||||
resolution: span.previousSibling.textContent.match(/\d+x\d+|PDF/)[0]
|
resolution: span.previousSibling.textContent.match(/\d+x\d+|PDF/)[0]
|
||||||
fullname: span.title
|
fullname: span.title
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user