Skip to content

netor0x86/chrome_extension_assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chrome_extension_assistant

This Python file assists in creating the basic directory and files for a Chrome browser extension.

1. project structure

extension-creator/
├── main.py
├── core/
│   ├── __init__.py
│   ├── file_creator.py
│   └── structure.py
├── templates/
│   ├── __init__.py
│   ├── manifest_template.py
│   ├── content_template.py
│   ├── background_template.py
│   ├── popup_templates.py
│   └── options_templates.py
├── utils/
│   ├── __init__.py
│   └── user_input.py
└── config/
    └── __init__.py

2. My Python version

> python --version
Python 3.13.2

3. Run the program

Currently only tested under Windows 10

> python main.py .\test\
开始创建扩展目录结构: .\test\
--------------------------------------------------
请输入扩展的基本信息(直接回车使用默认值)
扩展名称 (默认: 使用目录名称): 测试
版本号 (默认: 1.0.0):
扩展描述 (默认: A sample browser extension):
--------------------------------------------------
✓ 创建目录: .\test\
✓ 创建目录: .\test\options
✓ 创建目录: .\test\options/popup
✓ 创建目录: .\test\content
✓ 创建目录: .\test\background
✓ 创建目录: .\test\icon
✓ 创建文件: .\test\manifest.json
  - 名称: 测试
  - 版本: 1.0.0
  - 描述: A sample browser extension
✓ 创建文件: .\test\content\content.js
✓ 创建文件: .\test\background\background.js
✓ 创建文件: .\test\options\popup\popup.html
✓ 创建文件: .\test\options\popup\popup.js
✓ 创建文件: .\test\options\popup\popup.css
✓ 创建文件: .\test\options\options.html
✓ 创建文件: .\test\options\options.css
✓ 创建文件: .\test\options\options.js
--------------------------------------------------

📁 目录结构:
.\test\/
├── icon/
├── options/
│   ├── popup/
│   │   ├── popup.html
│   │   ├── popup.js
│   │   └── popup.css
│   ├── options.html
│   ├── options.js
│   └── options.css
├── content/
│   └── content.js
├── background/
│   └── background.js
└── manifest.json

4. Running style

生成扩展的样式一

生成扩展的样式二

公众号

About

This Python file assists in creating the basic directory and files for a Chrome browser extension.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages