Skip to content

Commit 55d5cac

Browse files
committed
Added author info to About modal, moved chatgpt.js info to bottom ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
1 parent 65e242a commit 55d5cac

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

starters/chrome/extension/components/modals.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,15 @@ window.modals = {
9595
// Show modal
9696
const aboutModal = this.alert(
9797
`${this.imports.app.symbol} ${chrome.runtime.getManifest().name}`, // title
98-
`🏷️ Version: <span class="about-em">${this.imports.app.version}</span>\n` // msg
99-
+ '⚡ Powered by: '
100-
+ `<a href="${this.imports.app.urls.chatgptJS}" target="_blank" rel="noopener">chatgpt.js</a>\n`
101-
+ '📜 Open source code: '
102-
+ `<a href="${this.imports.app.urls.gitHub}" target="_blank" rel="nopener">`
103-
+ this.imports.app.urls.gitHub + '</a>',
98+
'🧠 Author: ' // msg
99+
+ `<a href="${this.imports.app.author.url}">${this.imports.app.author.name}</a> `
100+
+ `& <a href="${this.imports.app.urls.contributors}">contributors</a>\n`
101+
+ `🏷️ Version: <span class="about-em">${this.imports.app.version}</span>\n`
102+
+ '📜 Open source code: '
103+
+ `<a href="${this.imports.app.urls.gitHub}" target="_blank" rel="nopener">`
104+
+ this.imports.app.urls.gitHub + '</a>\n'
105+
+ '⚡ Powered by: '
106+
+ `<a href="${this.imports.app.urls.chatgptJS}" target="_blank" rel="noopener">chatgpt.js</a>`,
104107
[ function getSupport(){}, function rateUs(){}, function moreAiExtensions(){} ], // button labels
105108
'', 656 // modal width
106109
)

starters/chrome/extension/service-worker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// Init APP data
22
const app = {
33
version: chrome.runtime.getManifest().version, symbol: '🤖', cssPrefix: 'chatgpt-extension',
4+
author: { name: 'KudoAI', url: 'https://kudoai.com' },
45
urls: {
56
assetHost: 'https://cdn.jsdelivr.net/gh/KudoAI/chatgpt.js-chrome-starter',
7+
contributors: 'https://docs.chatgptjs.org/#-contributors',
68
cjsMediaHost: 'https://media.chatgptjs.org',
79
gitHub: 'https://github.com/KudoAI/chatgpt.js-chrome-starter',
810
relatedExtensions: 'https://aiwebextensions.com',

0 commit comments

Comments
 (0)