Skip to content

RanMaoting/tampermonkey-iconfont-iconify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tampermonkey Script for iconfont -> iconify JSON and React component

This Tampermonkey script is designed to add two new download options to the iconfont.cn website.

Installation

  1. Install the Tampermonkey extension for your browser.
  2. Click on the following link and click the "install" button: link to script
  3. Go to iconfont.cn and open the project you want to download.

Usage

  1. Once the script is installed and you are on the project page, a new option "Iconify JSON" will appear in the "download" menu. Clicking this option will download the icons in the project as a JSON file that is compatible with the Iconify library.
  2. Another option "React component" will also appear in the "download" menu. Clicking this option will download the icons in the project as individual React components.

Features

  • Cleans up the SVG files by removing bad attributes, tags, and styles.
  • Modifies the SVG files to add React-specific attributes and styles.
  • Provides two download options: Iconify JSON and React component.

Note

This script is designed for use with the iconfont.cn website, and may not work on other websites.

Contribution

If you have any suggestions for improvements or find any bugs, please feel free to open an issue or pull request on Github repository.

About

The iconfont iconify tampermonkey script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 76.9%
  • JavaScript 23.1%