Skip to content

Commit

Permalink
version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sailist committed Apr 12, 2023
1 parent 2d31106 commit 53011d6
Show file tree
Hide file tree
Showing 22 changed files with 936 additions and 821 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 2023.04.12

- 版本号:1.2.1
- 添加了 History
- 完善了文档
- bugs
- 屏幕大小变化时 Prompt-hint 位置不更新
- option page
- History 页面,History 页面支持批量导出所有记录
- 其他
- 记录每次选择的 reg-prompt group

# 2023.04.10

- 版本号:1.2.0
Expand Down
30 changes: 12 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

![](images/small_promo.jpg)

To provide additional features to enhance the ChatGPT experience, including converting replies to markdown strings, uploading files, and automatically asking questions based on regular expressions.

Features:

- [Prompt hint](#prompt-hint): type "/" in input area and see the hint
- [PDF support](#pdf-support): Load PDF file and read page by page with [Regex Prompt Group](#regex-prompt-group)
- [Markdown support](#markdown-support): Convert dialogues into markdown format
- Save, Copy and Export: Copy, Save and Export dialogues by [injected button group](#injected-button-group).
- [Admin Dashboard](#admin-dashboard): Easy to managem all in option page.
- [Prompt hint](#prompt-hint): type "/" in input area and see the hint.
- [PDF support](#pdf-support): Load PDF file and read page by page with [Regex Prompt Group](#regex-prompt-group).
- [Markdown convertion support](#markdown-support): Convert dialogues into markdown format.
- [Copy, Save and Export Page](#injected-button-group): Copy, Save and Export dialogues by [injected button group](#injected-button-group).
- [Admin Page](#admin-dashboard): Easy to manage all in option page.

## Prompt hint

Expand Down Expand Up @@ -53,16 +51,6 @@ Saved dialogue history:

![](images/dashboard-2.png)

## Load PDF and prompting questions based on regexp

- Step 1. Write your own regexp-supported pattern and prompt
- Step 2. Drop a PDF file in the textarea
- Step 3. Wait for response

Manage multiple regex-prompt group in option page:

![](images/options-preview-2.png)

# How to install

## Install from Chrome Web Store
Expand All @@ -84,7 +72,7 @@ In Chrome/Arc/Edge browser:
# Development

```
```bash
git clone --depth=1 https://github.com/sailist/chatgpt-enhancement-extension/
cd chatgpt-enhancement-extension
npm install
Expand All @@ -93,6 +81,12 @@ npm run dev
# load ./dist in Chrome browser
```

# Buy me a coffee

This plugin is driven by my personal interest. If you like this plugin, please consider buying me a cup of coffee. Your support will encourage me to continue my work, thanks!

![](images/coffee.png)

# Acknowledge

Thanks for the [chrome-extension-boilerplate-react-vite](https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite) scanfold and ChatGPT ❤.
94 changes: 94 additions & 0 deletions README.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# ChatGPT Enhancement Extension

![](./images/small_promo.jpg)

为了提供额外的功能来增强 ChatGPT 的体验,包括将回复转换为 markdown 字符串、上传文件以及基于正则表达式自动提问等。

功能:

- [Prompt 提示](#prompt-提示):在输入区域输入“/”并查看提示。
- [PDF 自动阅读](#pdf-自动阅读):使用[Regex Prompt Group](#正则-prompt-组)逐页加载 PDF 文件并阅读。
- [Markdown 转换支持](#markdown-转换支持):将对话转换为 markdown 格式。
- [复制、保存和导出页面](#额外功能按钮):通过[注入按钮组](#额外功能按钮)复制、保存和导出对话。
- [后台管理](#后台管理):在选项页面中轻松管理所有。

## Prompt 提示

![](./images/prompt-hint.gif)

`Enter` 直接发送提示信息,或按 `Tab` 进行编辑。

## PDF 自动阅读

将 PDF 文件拖入文本区,然后每页都会自动生成一个提示信息。

![](./images/overview-pdf.gif)

根据[Regex Prompt Group](#regex-prompt-group),每个页面字符串末尾都会添加附加提示信息。

### 正则 Prompt 组

![](./images/reg-prompt-0.png)![](./images/reg-prompt-1.png)

## Markdown 转换支持

![](./images/preview.png)

### 额外功能按钮

![](./images/injected-button-preview.png)

## 后台管理

编辑 Prompt:

![](./images/dashboard-0.png)

编辑正则 Prompt :

![](./images/dashboard-1.png)

编辑保存的对话历史记录:

![](./images/dashboard-2.png)

# 安装

## 从 Chrome 网上应用店安装

> 目前正在审核中
## 从 crx 安装

在 Chrome / Arc / Edge 浏览器中:

- [下载 dist.crx](./dist.crx)
- 进入扩展管理页面
- 打开“开发者模式”
- 在出现的按钮中单击“加载已解压的扩展程序”
-`./dist.crx` 拖到扩展管理页面。
- 刷新 ChatGPT 页面

> 如果您对加载扩展程序有任何疑问,请尝试向 ChatGPT 提问。
# 开发

```bash
git clone --depth=1 https://github.com/sailist/chatgpt-enhancement-extension/
cd chatgpt-enhancement-extension
npm install
npm run dev

# 在Chrome浏览器中加载./dist
```

# Buy me a coffee

开发这款插件处于我的个人兴趣。如果您喜欢这款插件,请考虑请我喝一杯咖啡,您的支持将提供给我充足的动力,谢谢!

![](images/coffee.png)

# ❤ 致谢

- [chrome-extension-boilerplate-react-vite](https://github.com/Jonghakseo/chrome-extension-boilerplate) :提供了非常完善的 Chrome 插件开发脚手架
- ChatGPT:解决了很多疑难杂症。
Binary file modified dist.crx
Binary file not shown.
Binary file added images/coffee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 79 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chatgpt-enhancement-extension",
"version": "1.2.0",
"description": "ChatGPT Markdown and PDF Extension",
"version": "1.2.1",
"description": "Enhancing ChatGPT through the integration of multiple workflows.",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -18,6 +18,7 @@
"type": "module",
"dependencies": {
"clsx": "^1.2.1",
"jszip": "^3.10.1",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down Expand Up @@ -56,4 +57,4 @@
"vite": "3.1.3",
"ws": "8.9.0"
}
}
}
Loading

0 comments on commit 53011d6

Please sign in to comment.