From 8cfacf8259e430686afeb15e5ade365a87d2e4fc Mon Sep 17 00:00:00 2001 From: AndreĢ Oliveira Date: Sun, 3 Sep 2023 00:56:32 +0100 Subject: Fix issue with login with google --- recipes/chatgpt/index.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'recipes/chatgpt/index.js') 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 @@ -module.exports = Ferdium => - class Messenger extends Ferdium { - overrideUserAgent() { - return window.navigator.userAgent - .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') - .trim(); - } - - modifyRequestHeaders() { - return [ - { - headers: { - 'user-agent': window.navigator.userAgent - .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') - .trim(), - }, - requestFilters: { - urls: ['*://*/*'], - }, - }, - ]; - } - }; +module.exports = Ferdium => Ferdium; -- cgit v1.2.3-70-g09d2