Inline SVG Replacer

Replace all img tags with src as an SVG file into inline SVG tags

लेखक
mkpoli
दैनिक इंस्टॉल
0
एकूण इंस्टॉल
5
रेटिंग
0 0 0
आवृत्ती
0.1.1
बनवली
2024-01-12
अपडेट केली
2024-01-12
आकार
1.63 KB
License
CC0
यांवर लागू होते:
सर्व संकेतस्थळे

This a script that replaces all <img> tags that render svg images to inlined <svg> tags. The point of this is to allow advanced svg features like currentColor, so that we can modify the style of a website to change the color in svg, or do furthor modifications to the <svg> element. A common usage is for Dark Readers, where they cannot change color of a svg for something such as math equations, but by this script, the dark reader then can correctly apply the inverted color.