Add option to enable/disable notification on quick filtering MD5s. #2408
This commit is contained in:
parent
4981ab4672
commit
e77fc9d8f9
@ -265,7 +265,7 @@ Filter =
|
||||
ta.setSelectionRange tl, tl
|
||||
ta.focus()
|
||||
|
||||
quickFilterMD5: (e) ->
|
||||
quickFilterMD5: ->
|
||||
post = Get.postFromNode @
|
||||
files = post.files.filter((f) -> f.MD5)
|
||||
return unless files.length
|
||||
@ -277,7 +277,7 @@ Filter =
|
||||
else if g.VIEW is 'index'
|
||||
ThreadHiding.hide origin.thread
|
||||
|
||||
unless e.type is 'keydown'
|
||||
unless Conf['MD5 Quick Filter Notifications']
|
||||
# feedback for when nothing gets hidden
|
||||
if post.nodes.post.getBoundingClientRect().height
|
||||
new Notice 'info', 'MD5 filtered.', 2
|
||||
|
||||
@ -196,6 +196,11 @@ Config =
|
||||
'Apply 4chan X filters in native catalog.'
|
||||
1
|
||||
]
|
||||
'MD5 Quick Filter Notifications': [
|
||||
true
|
||||
'Show notification when quick filtering MD5s using the button or keybind.'
|
||||
1
|
||||
]
|
||||
'Recursive Hiding': [
|
||||
true
|
||||
'Hide replies of hidden posts, recursively.'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user