Fix conflict with 4chan imgur thumbnail script. #363

This commit is contained in:
ccd0 2015-03-22 16:39:55 -07:00
parent 74a5c9197a
commit a20c4ad95f

View File

@ -166,6 +166,7 @@ class Post
return unless (fileEl = $ '.file', @nodes.post) and not $('.fileDeletedRes', fileEl)
fileText = fileEl.firstElementChild
link = $ 'a', fileText
return unless link.host is 'i.4cdn.org' # Don't parse file info from userscripts like 4chan imgur thumbnail.
info = link.nextSibling.textContent
@file =
text: fileText