hirschan / Dark-Mode-Wikipedia

A Firefox extension, primarily suited for the English Wikipedia site.
https://addons.mozilla.org/firefox/addon/dark-mode-for-wikipedia/
MIT License
39 stars 8 forks source link

Exclude images from getting their background set to black #49

Closed Gii1 closed 4 months ago

Gii1 commented 5 months ago

Many images with a transparent background are created with a white background in mind, which are not readable with this extension. For example from https://en.wikipedia.org/wiki/Low-pass_filter: Screenshot 2024-05-07 205442 I added the img tag to the list of elements which automatically get their background-color set to black, which fixes this problem for many images. image

Gii1 commented 4 months ago

@mercutiodesign I added the quotation marks, thank you.

hirschan commented 4 months ago

Nice, will check and test the PR the coming days and approve 🚀

hirschan commented 4 months ago

Due to merge conflicts, I just copied over your solution and will include in next version: 4.5.5, thanks for reporting!