Fix conflict with 4chan imgur thumbnail script. #363
This commit is contained in:
parent
74a5c9197a
commit
a20c4ad95f
@ -166,6 +166,7 @@ class Post
|
|||||||
return unless (fileEl = $ '.file', @nodes.post) and not $('.fileDeletedRes', fileEl)
|
return unless (fileEl = $ '.file', @nodes.post) and not $('.fileDeletedRes', fileEl)
|
||||||
fileText = fileEl.firstElementChild
|
fileText = fileEl.firstElementChild
|
||||||
link = $ 'a', fileText
|
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
|
info = link.nextSibling.textContent
|
||||||
@file =
|
@file =
|
||||||
text: fileText
|
text: fileText
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user