新增通用的浏览器自动化扩展插件

This commit is contained in:
zyj
2025-11-21 14:09:59 +08:00
parent 87a077d40c
commit b448227d3e
17 changed files with 2156 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SVG to PNG Converter</title>
</head>
<body>
<h2>SVG 转 PNG 工具</h2>
<p>请按照以下步骤操作:</p>
<ol>
<li>在浏览器中打开 icon16.svg, icon48.svg, icon128.svg</li>
<li>右键点击 → 另存为</li>
<li>保存为 icon16.png, icon48.png, icon128.png</li>
</ol>
<h3>或者使用在线工具:</h3>
<ul>
<li><a href="https://cloudconvert.com/svg-to-png" target="_blank">CloudConvert</a></li>
<li><a href="https://www.aconvert.com/image/svg-to-png/" target="_blank">Aconvert</a></li>
<li><a href="https://svgtopng.com/" target="_blank">SVG to PNG</a></li>
</ul>
<h3>临时解决方案:</h3>
<p>Chrome 扩展也可以直接使用 SVG 文件,修改 manifest.json</p>
<pre>
"icons": {
"16": "icons/icon16.svg",
"48": "icons/icon48.svg",
"128": "icons/icon128.svg"
}
</pre>
</body>
</html>

View File

@@ -0,0 +1,13 @@
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#667eea;stop-opacity:1" />
<stop offset="100%" style="stop-color:#764ba2;stop-opacity:1" />
</linearGradient>
</defs>
<rect width="128" height="128" rx="20" fill="url(#grad1)"/>
<text x="64" y="90" font-family="Arial, sans-serif" font-size="56" font-weight="bold" fill="white" text-anchor="middle">GA</text>
<circle cx="64" cy="40" r="3" fill="white" opacity="0.8"/>
<circle cx="90" cy="30" r="2" fill="white" opacity="0.6"/>
<circle cx="40" cy="35" r="2" fill="white" opacity="0.6"/>
</svg>

After

Width:  |  Height:  |  Size: 699 B

View File

@@ -0,0 +1,10 @@
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#667eea;stop-opacity:1" />
<stop offset="100%" style="stop-color:#764ba2;stop-opacity:1" />
</linearGradient>
</defs>
<rect width="16" height="16" rx="3" fill="url(#grad1)"/>
<text x="8" y="12" font-family="Arial" font-size="10" font-weight="bold" fill="white" text-anchor="middle">GA</text>
</svg>

After

Width:  |  Height:  |  Size: 498 B

View File

@@ -0,0 +1,10 @@
<svg width="48" height="48" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#667eea;stop-opacity:1" />
<stop offset="100%" style="stop-color:#764ba2;stop-opacity:1" />
</linearGradient>
</defs>
<rect width="48" height="48" rx="8" fill="url(#grad1)"/>
<text x="24" y="34" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="white" text-anchor="middle">GA</text>
</svg>

After

Width:  |  Height:  |  Size: 511 B