fushatech / tahir

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

Bug: Alt-K does not work on subchild elements over hover #12

Open fushatech opened 6 years ago

fushatech commented 6 years ago

Alt-K works by [1] determining all html objects under a users mouse hover [2] applying blur/reblur on any img, video, iframe, or div/span/a/i with an inline image (via style background or background-image).

If however, an html object over hover contains an image/video as a subchild, Alt-K does not reach it. It will be necessary to check each element to see if it has a subchild with an image/video, or at minimum check the last html object over hover to see if has a subchild with an image/video.