From 5db4f7e882485072e1af95ee39ff1977c5f9ba39 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 21 Feb 2012 23:49:30 +0100 Subject: [PATCH] Optimization in blockquote selector for comment filtering. Enlarge your options. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 77c7a773c..9b2566f4e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -632,7 +632,7 @@ }, comment: function(root) { return ($.el('a', { - innerHTML: $('blockquote', root).innerHTML.replace(/
/g, '\n') + innerHTML: root.lastChild.innerHTML.replace(/
/g, '\n') })).textContent; }, filename: function(root) { @@ -4023,7 +4023,7 @@ img[md5], img[md5] + img {\ padding: 5px;\ text-align: left;\ vertical-align: middle;\ - width: 500px;\ + width: 600px;\ }\ #credits {\ float: right;\ diff --git a/script.coffee b/script.coffee index 7ed966bb0..d75e92644 100644 --- a/script.coffee +++ b/script.coffee @@ -543,7 +543,7 @@ filter = sub = if isOP then $ '.filetitle', root else $ '.replytitle', root sub.textContent comment: (root) -> - ($.el 'a', innerHTML: $('blockquote', root).innerHTML.replace /
/g, '\n').textContent + ($.el 'a', innerHTML: root.lastChild.innerHTML.replace /
/g, '\n').textContent filename: (root) -> if file = $ '.filesize > span', root return file.title @@ -3353,7 +3353,7 @@ img[md5], img[md5] + img { padding: 5px; text-align: left; vertical-align: middle; - width: 500px; + width: 600px; } #credits { float: right;