FrostCo / AdvancedProfanityFilter

A browser extension to filter profanity from webpages
GNU General Public License v3.0
164 stars 27 forks source link

Support censorship for images and other languages #287

Open xseadgdc opened 3 years ago

xseadgdc commented 3 years ago

I would like support for censer swearwords in images and text for multiple languages without fear of reading an article in a foreign language like Spanish to contain swearwords.

richardfrost commented 3 years ago

Thanks for the suggestions. Unfortunately processing images is not in the realm of possibility for the extension right now. There just really aren't good options for processing text inside images that are responsive enough to be used here. Hopefully that will change in the future.

As for multiple languages, are you meaning that you'd like to have some common words pre-populated (or otherwise easy to add?)? If so, I'd be happy to try and work something out to get those added. Unfortunately I only speak English, so I'd probably need to have some volunteers to help out with providing some good defaults for various languages.

tonyram57 commented 3 years ago

Just right now I encounter profanity in images which is annoying as it blocked the text profanity. I know it's hard for images but really there is no need to blur out the word just completely block the image with the APF image.

As for other languages it won't filter words in other languages which does not bother me as I don't understand however when the page is automatically translated using Google translate the extension filters the translated English swear words.

richardfrost commented 3 years ago

@tonyram57 It really is a frustrating problem. Unfortunately OCR (which is the process for identifying text in images) still takes way too long to be feasible. It can take multiple seconds per image, and even then I would say its about 80% reliable with a very simple font and a clean background on the image. For instance, if you look at a page like Facebook or Instagram there are images everywhere. It would be so slow to load, and could even cause the tab to crash.

Its possible that we could get an extension that blurs all images on the page, but I don't know how helpful that would be. It could reveal images on mouse-over or click probably. I'm not really sure what else could be done here, since there isn't anything APF can do at this time.

tonyram57 commented 3 years ago

Thanks. I will check out that extension.

richardfrost commented 3 years ago

@tonyram57 Sorry, turns out that was just for whatsapp. But in my above note, if there isn't something like that that exists, we could probably look at building that.

tonyram57 commented 3 years ago

Thanks. Wondered why it did not work on Instagram.

ykhan21 commented 3 years ago

@tonyram57, I use this https://chrome.google.com/webstore/detail/images-onoff/nfmlhilnjccdggifdbhnhkffmjgalbgg as a general purpose image blocker. It's better than some of the other ones because it doesn't block videos (on YouTube). (You could also create a shortcut for this extension, by the way).

If you want to only block specific images on specific pages, use this one: https://chrome.google.com/webstore/detail/adblock-plus-free-ad-bloc/cfhdojbkjhnklbpkdaibdccddilifddb. I think you have to configure the settings to allow it to appear on the right-click menu. After that, simply right-click on an image and then select "Block element". I hope this helps.

richardfrost commented 3 years ago

Thanks @ykhan21 for those suggestions!

tonyram57 commented 3 years ago

Why not add an build in image blocker in the extension. There are certain sites that show profanity in images so you can manually blacklist those sites to not display images would be helpful.

richardfrost commented 3 years ago

I'm not opposed to adding it, but haven't had time to do much with it. I will try to start on it sometime soon.