Greasy Fork is available in English.

Inline SVG Replacer

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

ผู้เขียน
mkpoli
จำนวนติดตั้งประจำวัน
0
จำนวนติดตั้งทั้งหมด
4
คะแนน
0 0 0
เวอร์ชัน
0.1.1
สร้างเมื่อ
12-01-2024
อัปเดตเมื่อ
12-01-2024
สัญญาอนุญาต
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.