Fix subject selector in Get.title. Fix filename filtering in case of spoiler image.
This commit is contained in:
parent
5f537f0405
commit
5a26f3883d
@ -749,7 +749,7 @@
|
|||||||
var img;
|
var img;
|
||||||
img = post.img;
|
img = post.img;
|
||||||
if (img) {
|
if (img) {
|
||||||
return img.alt;
|
return img.alt.replace('Spoiler Image, ', '');
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
@ -3679,7 +3679,7 @@
|
|||||||
title: function(thread) {
|
title: function(thread) {
|
||||||
var el, op, span;
|
var el, op, span;
|
||||||
op = $('.op', thread);
|
op = $('.op', thread);
|
||||||
el = $('.subject', op);
|
el = $('.postInfo .subject', op);
|
||||||
if (!el.textContent) {
|
if (!el.textContent) {
|
||||||
el = $('blockquote', op);
|
el = $('blockquote', op);
|
||||||
if (!el.textContent) {
|
if (!el.textContent) {
|
||||||
|
|||||||
@ -587,7 +587,7 @@ Filter =
|
|||||||
filesize: (post) ->
|
filesize: (post) ->
|
||||||
{img} = post
|
{img} = post
|
||||||
if img
|
if img
|
||||||
return img.alt
|
return img.alt.replace 'Spoiler Image, ', ''
|
||||||
false
|
false
|
||||||
md5: (post) ->
|
md5: (post) ->
|
||||||
{img} = post
|
{img} = post
|
||||||
@ -2890,7 +2890,7 @@ Get =
|
|||||||
root
|
root
|
||||||
title: (thread) ->
|
title: (thread) ->
|
||||||
op = $ '.op', thread
|
op = $ '.op', thread
|
||||||
el = $ '.subject', op
|
el = $ '.postInfo .subject', op
|
||||||
unless el.textContent
|
unless el.textContent
|
||||||
el = $ 'blockquote', op
|
el = $ 'blockquote', op
|
||||||
unless el.textContent
|
unless el.textContent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user