From f47a1e959d3c02126926d365071b9a403d13f4af Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 22 Mar 2015 21:58:18 -0700 Subject: [PATCH] Second attempt: Fix conflict with 4chan imgur thumbnail script. #363 --- src/General/lib/post.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 604eab51a..45e2a2c93 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -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