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) {
return ($.el('a', {
innerHTML: $('blockquote', root).innerHTML.replace(/<br>/g, '\n')
innerHTML: root.lastChild.innerHTML.replace(/<br>/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;\

View File

@ -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 /<br>/g, '\n').textContent
($.el 'a', innerHTML: root.lastChild.innerHTML.replace /<br>/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;