diff options
Diffstat (limited to 'recipes/chatgpt')
-rw-r--r-- | recipes/chatgpt/index.js | 24 | ||||
-rw-r--r-- | recipes/chatgpt/package.json | 2 |
2 files changed, 2 insertions, 24 deletions
diff --git a/recipes/chatgpt/index.js b/recipes/chatgpt/index.js index 1392dcb..dd41f72 100644 --- a/recipes/chatgpt/index.js +++ b/recipes/chatgpt/index.js | |||
@@ -1,23 +1 @@ | |||
1 | module.exports = Ferdium => | module.exports = Ferdium => Ferdium; | |
2 | class Messenger extends Ferdium { | ||
3 | overrideUserAgent() { | ||
4 | return window.navigator.userAgent | ||
5 | .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') | ||
6 | .trim(); | ||
7 | } | ||
8 | |||
9 | modifyRequestHeaders() { | ||
10 | return [ | ||
11 | { | ||
12 | headers: { | ||
13 | 'user-agent': window.navigator.userAgent | ||
14 | .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') | ||
15 | .trim(), | ||
16 | }, | ||
17 | requestFilters: { | ||
18 | urls: ['*://*/*'], | ||
19 | }, | ||
20 | }, | ||
21 | ]; | ||
22 | } | ||
23 | }; | ||
diff --git a/recipes/chatgpt/package.json b/recipes/chatgpt/package.json index b6f87cc..46ceac8 100644 --- a/recipes/chatgpt/package.json +++ b/recipes/chatgpt/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "chatgpt", | 2 | "id": "chatgpt", |
3 | "name": "ChatGPT", | 3 | "name": "ChatGPT", |
4 | "version": "1.1.0", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://chat.openai.com/chat" | 7 | "serviceURL": "https://chat.openai.com/chat" |