你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/484635-inline-svg-replacer,源站連結 點此以跳轉

Inline SVG Replacer

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



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/484635/Inline%20SVG%20Replacer.user.js

安装此脚本?
作者
mkpoli
日安装量
0
总安装量
6
评分
0 0 0
版本
0.1.1
创建于
2024-01-12
更新于
2024-01-12
大小
1.6 KB
许可证
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.