Skip to content

Commit

Permalink
改为navigator.languages
Browse files Browse the repository at this point in the history
  • Loading branch information
xcanwin committed Apr 27, 2023
1 parent f870dfa commit aadaf59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KeepChatGPT.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name KeepChatGPT
// @description ChatGPT畅聊插件。解决所有报错,让我们的AI体验无比顺畅、丝滑、高效。持续更新的增强功能,如取消审计等。解决的报错如下: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com. (3) Conversation not found. (4) This content may violate our content policy.
// @version 10.6
// @version 10.7
// @author xcanwin
// @namespace https://github.com/xcanwin/KeepChatGPT/
// @supportURL https://github.com/xcanwin/KeepChatGPT/
Expand Down Expand Up @@ -108,7 +108,7 @@
try {
lang = JSON.parse(lang);
const i = lang.index[s];
const nls = navigator.language;
const nls = navigator.languages;
for (let j = 0; j < nls.length; j++) {
nl = nls[j];
if (nl in lang.local) {
Expand Down

0 comments on commit aadaf59

Please sign in to comment.