build: icons cleaned up and changing extension name in manifest to comply with OpenAI branding

This commit is contained in:
Mathew Guest 2024-06-10 01:28:46 -06:00
parent b50507be65
commit 918fcc38a8
9 changed files with 33 additions and 7 deletions

2
.gitignore vendored Normal file

@ -0,0 +1,2 @@
chatgpt-search-engine-extension.zip

12
CHANGELOG.md Normal file

@ -0,0 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version).
## [1.0.0]) (2024-06-08)
First release of software. Had to split Google Chrome and Mozilla Firefox extensions. Will see if can migrate to be compatible with both in future.
* favicon - Wanted to use the OpenAI ChatGPT icon but worried about copyright. Until granted permission, have to roll with this icon. (Powered by OpenAI!)
* Extension works with Chrome, adds ChatGPT as non-default search engine. Queryable by "gpt <search_query>" in user's URL bar. Can configure through browser settings.
* Tested with Google Chrome on Windows.

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
zip -r chatgpt-search-engine-extension.zip \ zip -r chatgpt-search-extension-chrome.zip \
LICENSE.txt \ LICENSE.txt \
manifest.json \ manifest.json \
icons/favicon.png icons/favicon.png

4
hello.html Normal file

@ -0,0 +1,4 @@
<html>
<head></head>
<body>ChatGPT4tw</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

@ -1,15 +1,15 @@
{ {
"name": "Search with ChatGPT", "name": "Search with ChatGPT powered by OpenAI",
"description": "Search using ChatGPT query.", "description": "Search using ChatGPT query.",
"version": "1.0", "version": "1.0",
"manifest_version": 3, "manifest_version": 3,
"permissions": [ "permissions": [
"activeTab" "activeTab"
], ],
"action": { "icons": {
"default_icon": { "128": "images/powered-by-openai-icon-128x128.png",
"48": "icons/favicon.png" "48": "images/powered-by-openai-icon-48x48.png",
} "16": "images/powered-by-openai-icon-16x16.png"
}, },
"chrome_settings_overrides": { "chrome_settings_overrides": {
"search_provider": { "search_provider": {
@ -17,8 +17,16 @@
"keyword": "gpt", "keyword": "gpt",
"search_url": "https://chatgpt.com?q={searchTerms}", "search_url": "https://chatgpt.com?q={searchTerms}",
"favicon_url": "https://chatgpt.com/favicon.png", "favicon_url": "https://chatgpt.com/favicon.png",
"is_default": true, "is_default": false,
"encoding": "UTF-8" "encoding": "UTF-8"
} }
},
"action": {
"default_popup": "hello.html",
"default_icon": {
"128": "images/powered-by-openai-icon-128x128.png",
"48": "images/powered-by-openai-icon-48x48.png",
"16": "images/powered-by-openai-icon-16x16.png"
}
} }
} }