16 lines
430 B
CoffeeScript
16 lines
430 B
CoffeeScript
QuoteStrikeThrough =
|
|
init: ->
|
|
return if !Conf['Post Hiding'] and !Conf['Post Hiding Link'] and !Conf['Filter']
|
|
|
|
Post.callbacks.push
|
|
name: 'Strike-through Quotes'
|
|
cb: @node
|
|
|
|
node: ->
|
|
return if @isClone
|
|
for quotelink in @nodes.quotelinks
|
|
{boardID, postID} = Get.postDataFromLink quotelink
|
|
if g.posts["#{boardID}.#{postID}"]?.isHidden
|
|
$.addClass quotelink, 'filtered'
|
|
return
|