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.setSelectionRange tl, tl
ta.focus() ta.focus()
quickFilterMD5: (e) -> quickFilterMD5: ->
post = Get.postFromNode @ post = Get.postFromNode @
files = post.files.filter((f) -> f.MD5) files = post.files.filter((f) -> f.MD5)
return unless files.length return unless files.length
@ -277,7 +277,7 @@ Filter =
else if g.VIEW is 'index' else if g.VIEW is 'index'
ThreadHiding.hide origin.thread ThreadHiding.hide origin.thread
unless e.type is 'keydown' unless Conf['MD5 Quick Filter Notifications']
# feedback for when nothing gets hidden # feedback for when nothing gets hidden
if post.nodes.post.getBoundingClientRect().height if post.nodes.post.getBoundingClientRect().height
new Notice 'info', 'MD5 filtered.', 2 new Notice 'info', 'MD5 filtered.', 2

View File

@ -196,6 +196,11 @@ Config =
'Apply 4chan X filters in native catalog.' 'Apply 4chan X filters in native catalog.'
1 1
] ]
'MD5 Quick Filter Notifications': [
true
'Show notification when quick filtering MD5s using the button or keybind.'
1
]
'Recursive Hiding': [ 'Recursive Hiding': [
true true
'Hide replies of hidden posts, recursively.' 'Hide replies of hidden posts, recursively.'