Inline SVG Replacer

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

Fra 12.01.2024. Se den seneste versjonen.

Forfatter
mkpoli
Vurderinger
0 0 0
Versjon
0.1.0
Lagd
12.01.2024
Oppdatert
12.01.2024
Size
1,6 kB
Lisens
CC0
Gjelder
Alle sider

This a script that replaces all tags that render svg images to inlined 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 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.