From 4538903ca7a54d3a042d92ca5f10bd6d220c0887 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 29 Apr 2011 21:35:51 +0200 Subject: [PATCH] Oh god what am I doing I'm not very good with computers. --- 4chan_x.js | 4 +++- script.coffee | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index b8a083b40..c2199f27e 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1178,7 +1178,9 @@ } node = node.nextElementSibling; if (node.nodeName === 'SPAN' || node.nodeName === 'IMG') { - return threading.thread(node); + if (!(node.align || node.nodeName === 'CENTER')) { + return threading.thread(node); + } } } }; diff --git a/script.coffee b/script.coffee index d7f5b96fe..77673b353 100644 --- a/script.coffee +++ b/script.coffee @@ -914,8 +914,11 @@ threading = node = div.nextSibling node = node.nextElementSibling #skip text node + #span.fileseze, img[alt="File deleted."] if node.nodeName is 'SPAN' or node.nodeName is 'IMG' - threading.thread node + #{N,}SFW + unless node.align or node.nodeName is 'CENTER' + threading.thread node threadHiding = init: ->