Optimization in blockquote selector for comment filtering. Enlarge your options.

This commit is contained in:
Nicolas Stepien 2012-02-21 23:49:30 +01:00
parent 61b02c456e
commit 5db4f7e882
2 changed files with 4 additions and 4 deletions

View File

@ -632,7 +632,7 @@
}, },
comment: function(root) { comment: function(root) {
return ($.el('a', { return ($.el('a', {
innerHTML: $('blockquote', root).innerHTML.replace(/<br>/g, '\n') innerHTML: root.lastChild.innerHTML.replace(/<br>/g, '\n')
})).textContent; })).textContent;
}, },
filename: function(root) { filename: function(root) {
@ -4023,7 +4023,7 @@ img[md5], img[md5] + img {\
padding: 5px;\ padding: 5px;\
text-align: left;\ text-align: left;\
vertical-align: middle;\ vertical-align: middle;\
width: 500px;\ width: 600px;\
}\ }\
#credits {\ #credits {\
float: right;\ float: right;\

View File

@ -543,7 +543,7 @@ filter =
sub = if isOP then $ '.filetitle', root else $ '.replytitle', root sub = if isOP then $ '.filetitle', root else $ '.replytitle', root
sub.textContent sub.textContent
comment: (root) -> comment: (root) ->
($.el 'a', innerHTML: $('blockquote', root).innerHTML.replace /<br>/g, '\n').textContent ($.el 'a', innerHTML: root.lastChild.innerHTML.replace /<br>/g, '\n').textContent
filename: (root) -> filename: (root) ->
if file = $ '.filesize > span', root if file = $ '.filesize > span', root
return file.title return file.title
@ -3353,7 +3353,7 @@ img[md5], img[md5] + img {
padding: 5px; padding: 5px;
text-align: left; text-align: left;
vertical-align: middle; vertical-align: middle;
width: 500px; width: 600px;
} }
#credits { #credits {
float: right; float: right;