blocktube icon indicating copy to clipboard operation
blocktube copied to clipboard

how strict is advanced search? e.g would keyword "ball" also filter football, volleyball, basketball etc.

Open bigfixenergy opened this issue 2 years ago • 2 comments

For advanced filtering how strict is the filter at removing recommended videos? Does it only filter a title with the word "ball" separated by spaces and not touch sneakier words like "football", or does it aggressively target anything that matches these specific characters no matter spaces between or any other punctuation? Like if you were to filter "blue berry" would it only filter this case sensitively or would it also attack anything that matches this like "Blue Berry" or "Blue_Berry"?

bigfixenergy avatar Oct 26 '23 02:10 bigfixenergy

"ball" wuld match "football" but " ball" wold not advansed sertch ios case sensative. use this "[Bb]lue[_ ][Bb]erry" to match all combinations to filter for some special charackrers (ex. ^$|[]) tou nead to "dubbel escape them" ie "\[" to filter for "["

ewonais avatar Oct 31 '23 08:10 ewonais

title = video.title.toLowerCase(); if(title.search("ball")return true;

or just make it lowercase? lol the filters are just javascript, but .search gives you a number where in the string that parts start, like "come play football".search("ball") returns 14

and you could also wipe all spaces "come play football".replaceAll(" ","") returns "comeplayfootball"

Vitamin-X avatar Nov 10 '23 01:11 Vitamin-X