aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar AndreĢ Oliveira <oliveira.andrerodrigues95@gmail.com>2023-09-03 00:56:32 +0100
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-09-03 01:26:49 +0000
commit8cfacf8259e430686afeb15e5ade365a87d2e4fc (patch)
tree0a3b347355d43546af6e5844b9cb083458d9f633 /recipes
parentadd dictcp as a contributor for code (#415) (diff)
downloadferdium-recipes-8cfacf8259e430686afeb15e5ade365a87d2e4fc.tar.gz
ferdium-recipes-8cfacf8259e430686afeb15e5ade365a87d2e4fc.tar.zst
ferdium-recipes-8cfacf8259e430686afeb15e5ade365a87d2e4fc.zip
Fix issue with login with google
Diffstat (limited to 'recipes')
-rw-r--r--recipes/chatgpt/index.js24
-rw-r--r--recipes/chatgpt/package.json2
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 @@
1module.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"