flytaly / reddit-post-notifier

Firefox/Chrome extension that watches for posts in given subreddits or reddit searches
Mozilla Public License 2.0
20 stars 5 forks source link

Exclude/Include Reddit include_over_18 posts #13

Open koderian opened 3 years ago

koderian commented 3 years ago

^ The extension would work better if it was able to include/exclude include_over_18 (NSFW) posts in custom search queries.

flytaly commented 3 years ago

If I understand correctly Reddit search already has this functionality. It is said in the wiki that you need to add nsfw:no to disable NSFW or nsfw:yes to enable.

But anyway it is a good idea to add an explicit checkbox to the extension.

flytaly commented 3 years ago

I have tried different queries and it seems that just adding nsfw:yes or nsfw:no at the end breaks boolean operators. So the correct way is to use parentheses, for example: (kyword1 OR keyword2) nsfw:yes.