Skip to content

Commit 3ea33f9

Browse files
committed
Moved xhr to window to align w/ my other userscripts ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-widescreen]
1 parent b2a099d commit 3ea33f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
// @description:zu Thuthukisa iChatGPT ngemodi zesikrini ezibanzi/egcwele/ephezulu + imodi yokuvimbela i-spam. Futhi isebenza ku-poe.com!
236236
// @author Adam Lui
237237
// @namespace https://github.com/adamlui
238-
// @version 2025.9.5.11
238+
// @version 2025.9.5.12
239239
// @license MIT
240240
// @icon https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?v=844b16e
241241
// @icon64 https://assets.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?v=844b16e
@@ -304,7 +304,7 @@
304304
env.scriptManager.supportsTooltips = env.scriptManager.name == 'Tampermonkey'
305305
&& parseInt(env.scriptManager.version.split('.')[0]) >= 5
306306
ui.getScheme().then(scheme => env.ui.scheme = scheme)
307-
const xhr = typeof GM != 'undefined' && GM.xmlHttpRequest || GM_xmlhttpRequest
307+
window.xhr = typeof GM != 'undefined' && GM.xmlHttpRequest || GM_xmlhttpRequest
308308
window.app = {
309309
version: GM_info.script.version, configKeyPrefix: `${env.site} Widescreen`,
310310
chatgptjsVer: /chatgpt\.js@([\d.]+)/.exec(GM_info.scriptMetaStr)[1],

0 commit comments

Comments
 (0)