Second attempt: Fix conflict with 4chan imgur thumbnail script. #363

This commit is contained in:
ccd0 2015-03-22 21:58:18 -07:00
parent b5dca335fe
commit f47a1e959d

View File

@ -163,9 +163,9 @@ class Post
@quotes.push fullID unless fullID in @quotes
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
link = $ 'a', fileText
info = link.nextSibling.textContent
@file =
text: fileText