Second attempt: Fix conflict with 4chan imgur thumbnail script. #363
This commit is contained in:
parent
b5dca335fe
commit
f47a1e959d
@ -163,9 +163,9 @@ class Post
|
|||||||
@quotes.push fullID unless fullID in @quotes
|
@quotes.push fullID unless fullID in @quotes
|
||||||
|
|
||||||
parseFile: ->
|
parseFile: ->
|
||||||
return unless (fileEl = $ '.file', @nodes.post) and not $('.fileDeletedRes', fileEl)
|
return unless fileEl = $ '.file', @nodes.post
|
||||||
|
return unless link = $ '.fileText > a:first-child', fileEl
|
||||||
fileText = fileEl.firstElementChild
|
fileText = fileEl.firstElementChild
|
||||||
link = $ 'a', fileText
|
|
||||||
info = link.nextSibling.textContent
|
info = link.nextSibling.textContent
|
||||||
@file =
|
@file =
|
||||||
text: fileText
|
text: fileText
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user