Add option to enable/disable notification on quick filtering MD5s. #2408

This commit is contained in:
ccd0 2019-08-22 14:54:11 -07:00
parent 4981ab4672
commit e77fc9d8f9
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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.'