From 47a5ca87627ddcae8862d2787d2585d056a7f722 Mon Sep 17 00:00:00 2001 From: adamlui Date: Fri, 31 May 2024 06:28:36 +0000 Subject: [PATCH] =?UTF-8?q?Added=20more=20headers=20to=20`createHeaders(ap?= =?UTF-8?q?i)`=20for=20increased=20stealth=20=E2=86=9E=20[auto-sync=20from?= =?UTF-8?q?=20`adamlui/chatgpt-apps`]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- greasemonkey/duckduckgpt.user.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/greasemonkey/duckduckgpt.user.js b/greasemonkey/duckduckgpt.user.js index 92f8e1393be..6b022b2f1ef 100644 --- a/greasemonkey/duckduckgpt.user.js +++ b/greasemonkey/duckduckgpt.user.js @@ -152,7 +152,7 @@ // @description:zu Faka amaphawu ase-ChatGPT kuvaliwe i-DuckDuckGo Search (okwesikhashana ngu-GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2024.5.30.3 +// @version 2024.5.30.4 // @license MIT // @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302 // @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302 @@ -725,8 +725,9 @@ function createHeaders(api) { let headers = { 'Content-Type': 'application/json', 'X-Forwarded-For': ipv4.generate({ verbose: false })} - if (api.includes('openai.com')) headers.Authorization = 'Bearer ' + accessKey - else if (api.includes('binjie.fun')) headers.Origin = 'https://chat18.aichatos.xyz' + if (api.includes('openai.com')) headers.Authorization = 'Bearer ' + accessKey + else if (api.includes('binjie.fun')) headers.Referer = headers.Origin = 'https://chat18.aichatos.xyz' + else if (api.includes('gptforlove.com')) headers.Referer = headers.Origin = 'https://ai27.gptforlove.com' return headers }