fushatech / tahir

Browser extension to avoid haram images & videos on the Internet
The Unlicense
54 stars 9 forks source link

Feature Request: Blur images found in CSS #13

Open fushatech opened 6 years ago

fushatech commented 6 years ago

Tahir currently blurs: (1) any image, video, iframe object or (2) div/span/a/i that have image as part of inline style background or background-url. Tahir does not blur html objects that have an image as part of its CSS class. For example, the following will not be blurred:

<div class="greatimage">...</div>

## main.css
.greatimage {
    background-url: image-link.png
}

If we want to blur 100% images/videos (currently at ~95%), it will be necessary to determine if an html object contains an image in its CSS class. This is tricky though, since often these images are UI elements, logos, etc -- which are helpful to see. If we implement this, perhaps should make this a toggle-able feature.