Implement 'Inline Cross-thread Quotes Only'. #513
This commit is contained in:
parent
cb4fd837c6
commit
71f03b8abe
@ -516,6 +516,11 @@ Config =
|
|||||||
true
|
true
|
||||||
'Inline quoted post on click.'
|
'Inline quoted post on click.'
|
||||||
]
|
]
|
||||||
|
'Inline Cross-thread Quotes Only': [
|
||||||
|
false
|
||||||
|
'Only inline quote links when the posts are on another thread or board, or fetched from the archive.'
|
||||||
|
1
|
||||||
|
]
|
||||||
'Quote Hash Navigation': [
|
'Quote Hash Navigation': [
|
||||||
false
|
false
|
||||||
'Include an extra link after quotes for autoscrolling to quoted posts.'
|
'Include an extra link after quotes for autoscrolling to quoted posts.'
|
||||||
|
|||||||
@ -39,7 +39,7 @@ QuoteBacklink =
|
|||||||
nodes = if container.firstChild then [$.tn(' '), link] else [link]
|
nodes = if container.firstChild then [$.tn(' '), link] else [link]
|
||||||
if Conf['Quote Previewing']
|
if Conf['Quote Previewing']
|
||||||
$.on link, 'mouseover', QuotePreview.mouseover
|
$.on link, 'mouseover', QuotePreview.mouseover
|
||||||
if Conf['Quote Inlining']
|
if Conf['Quote Inlining'] and not (Conf['Inline Cross-thread Quotes Only'] and link.getAttribute('href')[0] is '#')
|
||||||
$.on link, 'click', QuoteInline.toggle
|
$.on link, 'click', QuoteInline.toggle
|
||||||
if Conf['Quote Hash Navigation']
|
if Conf['Quote Hash Navigation']
|
||||||
hash = QuoteInline.qiQuote link, $.hasClass link, 'filtered'
|
hash = QuoteInline.qiQuote link, $.hasClass link, 'filtered'
|
||||||
|
|||||||
@ -17,6 +17,7 @@ QuoteInline =
|
|||||||
return
|
return
|
||||||
|
|
||||||
process: (link, clone) ->
|
process: (link, clone) ->
|
||||||
|
return if Conf['Inline Cross-thread Quotes Only'] and link.getAttribute('href')[0] is '#'
|
||||||
if Conf['Quote Hash Navigation']
|
if Conf['Quote Hash Navigation']
|
||||||
$.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered' unless clone
|
$.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered' unless clone
|
||||||
$.on link, 'click', QuoteInline.toggle
|
$.on link, 'click', QuoteInline.toggle
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user