Revert "Fix conflict with 4chan imgur thumbnail script. #363"
This reverts commit a20c4ad95ff55b8f71d9c1568fc96db1bd9db2ec.
This commit is contained in:
parent
abcc232f8f
commit
b5dca335fe
@ -166,7 +166,6 @@ 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