From a20c4ad95ff55b8f71d9c1568fc96db1bd9db2ec Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 22 Mar 2015 16:39:55 -0700 Subject: [PATCH] Fix conflict with 4chan imgur thumbnail script. #363 --- src/General/lib/post.class | 1 + 1 file changed, 1 insertion(+) diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 604eab51a..20be39f21 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -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