diff --git a/amazongpt/greasemonkey/amazongpt.user.js b/amazongpt/greasemonkey/amazongpt.user.js index 987f6e3d7..491cca9ff 100644 --- a/amazongpt/greasemonkey/amazongpt.user.js +++ b/amazongpt/greasemonkey/amazongpt.user.js @@ -3,7 +3,7 @@ // @description Adds the magic of AI to Amazon shopping // @author KudoAI // @namespace https://kudoai.com -// @version 2025.1.14.1 +// @version 2025.1.14.2 // @license MIT // @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7 // @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7 @@ -403,10 +403,7 @@ endpoint: 'https://am.aifree.site/api/generate', expectedOrigin: { url: 'https://am.aifree.site', - headers: { - 'Accept': '*/*', 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', - 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-origin' - } + headers: { 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', 'Priority': 'u=4' } }, method: 'POST', streamable: true }, @@ -415,7 +412,8 @@ expectedOrigin: { url: 'https://ai28.gptforlove.com', headers: { - 'Accept': 'application/json, text/plain, */*', 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site' + 'Accept': 'application/json, text/plain, */*', + 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site', 'TE': 'trailers' } }, method: 'POST', streamable: true, accumulatesText: true, @@ -424,9 +422,7 @@ 'MixerBox AI': { endpoint: 'https://chatai.mixerbox.com/api/chat/stream', expectedOrigin: { - url: 'https://chatai.mixerbox.com', - headers: { 'Accept': '*/*', 'Alt-Used': 'chatai.mixerbox.com', 'Sec-Fetch-Site': 'same-origin' } - }, + url: 'https://chatai.mixerbox.com', headers: { 'Alt-Used': 'chatai.mixerbox.com', 'TE': 'trailers' }}, method: 'POST', streamable: true, accumulatesText: false }, 'OpenAI': { @@ -435,10 +431,7 @@ completions: 'https://api.openai.com/v1/chat/completions', session: 'https://chatgpt.com/api/auth/session' }, - expectedOrigin: { - url: 'https://chatgpt.com', - headers: { 'Accept': '*/*', 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-site' } - }, + expectedOrigin: { url: 'https://chatgpt.com', headers: { 'Priority': 'u=4' }}, method: 'POST', streamable: true } } @@ -2513,12 +2506,11 @@ createHeaders(api) { const ip = ipv4.generate({ verbose: false }) const headers = { - 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'DNT': '1', 'Host': new URL(apis[api].endpoints?.completions || apis[api].endpoint).hostname, - 'Origin': apis[api].expectedOrigin.url, - 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', - 'TE': 'trailers', 'X-Forwarded-For': ip, 'X-Real-IP': ip + 'Origin': apis[api].expectedOrigin.url, 'Sec-Fetch-Site': 'same-origin', + 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', 'X-Forwarded-For': ip, 'X-Real-IP': ip } headers.Referer = headers.Origin + '/' if (api == 'OpenAI') headers.Authorization = 'Bearer ' + config.openAIkey diff --git a/bravegpt/greasemonkey/bravegpt.user.js b/bravegpt/greasemonkey/bravegpt.user.js index 63afc630d..59542254f 100644 --- a/bravegpt/greasemonkey/bravegpt.user.js +++ b/bravegpt/greasemonkey/bravegpt.user.js @@ -148,7 +148,7 @@ // @description:zu Yengeza izimpendulo ze-AI ku-Brave Search (inikwa amandla yi-GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2025.1.14 +// @version 2025.1.14.1 // @license MIT // @icon https://assets.bravegpt.com/images/icons/bravegpt/icon48.png?v=df624b0 // @icon64 https://assets.bravegpt.com/images/icons/bravegpt/icon64.png?v=df624b0 @@ -577,10 +577,7 @@ endpoint: 'https://am.aifree.site/api/generate', expectedOrigin: { url: 'https://am.aifree.site', - headers: { - 'Accept': '*/*', 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', - 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-origin' - } + headers: { 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', 'Priority': 'u=4' } }, method: 'POST', streamable: true }, @@ -589,7 +586,8 @@ expectedOrigin: { url: 'https://ai28.gptforlove.com', headers: { - 'Accept': 'application/json, text/plain, */*', 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site' + 'Accept': 'application/json, text/plain, */*', + 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site', 'TE': 'trailers' } }, method: 'POST', streamable: true, accumulatesText: true, @@ -598,9 +596,7 @@ 'MixerBox AI': { endpoint: 'https://chatai.mixerbox.com/api/chat/stream', expectedOrigin: { - url: 'https://chatai.mixerbox.com', - headers: { 'Accept': '*/*', 'Alt-Used': 'chatai.mixerbox.com', 'Sec-Fetch-Site': 'same-origin' } - }, + url: 'https://chatai.mixerbox.com', headers: { 'Alt-Used': 'chatai.mixerbox.com', 'TE': 'trailers' }}, method: 'POST', streamable: true, accumulatesText: false }, 'OpenAI': { @@ -609,10 +605,7 @@ completions: 'https://api.openai.com/v1/chat/completions', session: 'https://chatgpt.com/api/auth/session' }, - expectedOrigin: { - url: 'https://chatgpt.com', - headers: { 'Accept': '*/*', 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-site' } - }, + expectedOrigin: { url: 'https://chatgpt.com', headers: { 'Priority': 'u=4' }}, method: 'POST', streamable: true } } @@ -3151,6 +3144,7 @@ } catch (err) { return false } } } + // Define API functions const api = { @@ -3163,12 +3157,11 @@ createHeaders(api) { const ip = ipv4.generate({ verbose: false }) const headers = { - 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'DNT': '1', 'Host': new URL(apis[api].endpoints?.completions || apis[api].endpoint).hostname, - 'Origin': apis[api].expectedOrigin.url, - 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', - 'TE': 'trailers', 'X-Forwarded-For': ip, 'X-Real-IP': ip + 'Origin': apis[api].expectedOrigin.url, 'Sec-Fetch-Site': 'same-origin', + 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', 'X-Forwarded-For': ip, 'X-Real-IP': ip } headers.Referer = headers.Origin + '/' if (api == 'OpenAI') headers.Authorization = 'Bearer ' + config.openAIkey diff --git a/duckduckgpt/greasemonkey/duckduckgpt.user.js b/duckduckgpt/greasemonkey/duckduckgpt.user.js index e4061fe2e..a85996ed3 100644 --- a/duckduckgpt/greasemonkey/duckduckgpt.user.js +++ b/duckduckgpt/greasemonkey/duckduckgpt.user.js @@ -148,7 +148,7 @@ // @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2025.1.14 +// @version 2025.1.14.1 // @license MIT // @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076 // @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076 @@ -585,10 +585,7 @@ endpoint: 'https://am.aifree.site/api/generate', expectedOrigin: { url: 'https://am.aifree.site', - headers: { - 'Accept': '*/*', 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', - 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-origin' - } + headers: { 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', 'Priority': 'u=4' } }, method: 'POST', streamable: true }, @@ -597,7 +594,8 @@ expectedOrigin: { url: 'https://ai28.gptforlove.com', headers: { - 'Accept': 'application/json, text/plain, */*', 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site' + 'Accept': 'application/json, text/plain, */*', + 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site', 'TE': 'trailers' } }, method: 'POST', streamable: true, accumulatesText: true, @@ -606,9 +604,7 @@ 'MixerBox AI': { endpoint: 'https://chatai.mixerbox.com/api/chat/stream', expectedOrigin: { - url: 'https://chatai.mixerbox.com', - headers: { 'Accept': '*/*', 'Alt-Used': 'chatai.mixerbox.com', 'Sec-Fetch-Site': 'same-origin' } - }, + url: 'https://chatai.mixerbox.com', headers: { 'Alt-Used': 'chatai.mixerbox.com', 'TE': 'trailers' }}, method: 'POST', streamable: true, accumulatesText: false }, 'OpenAI': { @@ -617,10 +613,7 @@ completions: 'https://api.openai.com/v1/chat/completions', session: 'https://chatgpt.com/api/auth/session' }, - expectedOrigin: { - url: 'https://chatgpt.com', - headers: { 'Accept': '*/*', 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-site' } - }, + expectedOrigin: { url: 'https://chatgpt.com', headers: { 'Priority': 'u=4' }}, method: 'POST', streamable: true } } @@ -3049,12 +3042,11 @@ createHeaders(api) { const ip = ipv4.generate({ verbose: false }) const headers = { - 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'DNT': '1', 'Host': new URL(apis[api].endpoints?.completions || apis[api].endpoint).hostname, - 'Origin': apis[api].expectedOrigin.url, - 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', - 'TE': 'trailers', 'X-Forwarded-For': ip, 'X-Real-IP': ip + 'Origin': apis[api].expectedOrigin.url, 'Sec-Fetch-Site': 'same-origin', + 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', 'X-Forwarded-For': ip, 'X-Real-IP': ip } headers.Referer = headers.Origin + '/' if (api == 'OpenAI') headers.Authorization = 'Bearer ' + config.openAIkey diff --git a/googlegpt/greasemonkey/googlegpt.user.js b/googlegpt/greasemonkey/googlegpt.user.js index 2473bfd64..33481de4d 100644 --- a/googlegpt/greasemonkey/googlegpt.user.js +++ b/googlegpt/greasemonkey/googlegpt.user.js @@ -149,7 +149,7 @@ // @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!) // @author KudoAI // @namespace https://kudoai.com -// @version 2025.1.14 +// @version 2025.1.14.1 // @license MIT // @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2 // @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2 @@ -767,10 +767,7 @@ endpoint: 'https://am.aifree.site/api/generate', expectedOrigin: { url: 'https://am.aifree.site', - headers: { - 'Accept': '*/*', 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', - 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-origin' - } + headers: { 'Alt-Used': 'am.aifree.site', 'Content-Type': 'text/plain;charset=UTF-8', 'Priority': 'u=4' } }, method: 'POST', streamable: true }, @@ -779,7 +776,8 @@ expectedOrigin: { url: 'https://ai28.gptforlove.com', headers: { - 'Accept': 'application/json, text/plain, */*', 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site' + 'Accept': 'application/json, text/plain, */*', + 'Priority': 'u=0', 'Sec-Fetch-Site': 'same-site', 'TE': 'trailers' } }, method: 'POST', streamable: true, accumulatesText: true, @@ -788,9 +786,7 @@ 'MixerBox AI': { endpoint: 'https://chatai.mixerbox.com/api/chat/stream', expectedOrigin: { - url: 'https://chatai.mixerbox.com', - headers: { 'Accept': '*/*', 'Alt-Used': 'chatai.mixerbox.com', 'Sec-Fetch-Site': 'same-origin' } - }, + url: 'https://chatai.mixerbox.com', headers: { 'Alt-Used': 'chatai.mixerbox.com', 'TE': 'trailers' }}, method: 'POST', streamable: true, accumulatesText: false }, 'OpenAI': { @@ -799,10 +795,7 @@ completions: 'https://api.openai.com/v1/chat/completions', session: 'https://chatgpt.com/api/auth/session' }, - expectedOrigin: { - url: 'https://chatgpt.com', - headers: { 'Accept': '*/*', 'Priority': 'u=4', 'Sec-Fetch-Site': 'same-site' } - }, + expectedOrigin: { url: 'https://chatgpt.com', headers: { 'Priority': 'u=4' }}, method: 'POST', streamable: true } } @@ -3384,12 +3377,11 @@ createHeaders(api) { const ip = ipv4.generate({ verbose: false }) const headers = { - 'Accept-Encoding': 'gzip, deflate, br, zstd', + 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'DNT': '1', 'Host': new URL(apis[api].endpoints?.completions || apis[api].endpoint).hostname, - 'Origin': apis[api].expectedOrigin.url, - 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', - 'TE': 'trailers', 'X-Forwarded-For': ip, 'X-Real-IP': ip + 'Origin': apis[api].expectedOrigin.url, 'Sec-Fetch-Site': 'same-origin', + 'Sec-Fetch-Dest': 'empty', 'Sec-Fetch-Mode': 'cors', 'X-Forwarded-For': ip, 'X-Real-IP': ip } headers.Referer = headers.Origin + '/' if (api == 'OpenAI') headers.Authorization = 'Bearer ' + config.openAIkey