Skip to content

Commit 4983d2e

Browse files
authored
Merge pull request #124 from qunash/dev
main <- dev
2 parents 378977c + 3eea29f commit 4983d2e

28 files changed

+376
-216
lines changed

.hintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": [
3+
"development"
4+
],
5+
"hints": {
6+
"axe/forms": "off"
7+
}
8+
}

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,18 @@ https://user-images.githubusercontent.com/3750161/214155508-5c1ad4d8-b565-4fe0-9
3131
<details>
3232
<summary><h2>Manual installation</h2></summary>
3333

34+
ℹ️ Don't forget to disable the extension installed from the Web Store while you're testing manually installed version.
35+
3436
### Chrome, Microsoft Edge, etc.
35-
1. Download the prebuilt chrome zip file from [here](https://github.com/qunash/chatgpt-advanced/tree/main/build).
37+
1. Download the prebuilt chrome zip file from [here](build).
3638
2. Unzip the file.
3739
3. Open `chrome://extensions` in Chrome / `edge://extensions` in Microsoft Edge.
3840
4. Enable developer mode (top right corner).
3941
5. Click on `Load unpacked` and select the unzipped folder.
4042
6. Go to [ChatGPT](https://chat.openai.com/chat/) and enjoy!
4143

4244
### Firefox
43-
1. Download prebuilt firefox zip file from [here](https://github.com/qunash/chatgpt-advanced/tree/main/build).
45+
1. Download prebuilt firefox zip file from [here](build).
4446

4547
#### Temporary installation, in official Release or Beta
4648
1. Go to `about:debugging#/runtime/this-firefox`.

build/webchatgpt-3.1.5-chrome.zip

-395 KB
Binary file not shown.

build/webchatgpt-3.1.5-firefox.zip

-395 KB
Binary file not shown.

build/webchatgpt-3.2.4-chrome.zip

408 KB
Binary file not shown.

build/webchatgpt-3.2.4-firefox.zip

408 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "webchatgpt",
4-
"version": "3.1.5",
4+
"version": "3.2.4",
55
"license": "MIT",
66
"scripts": {
77
"build-dev": "node build.mjs",

src/_locales/zh_TW/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"message": "WebChatGPT:有網路存取功能的 ChatGPT"
44
},
55
"appDesc": {
6-
"message": "使用來自網絡的相關結果,增加 ChatGPT 的回答功能。"
6+
"message": "使用來自網路的相關結果,增加 ChatGPT 的回答功能。"
77
}
88
}

src/assets/leave_review.png

6.61 KB
Loading

src/background/bg.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ if (manifest_version == 2) {
2424
Browser.commands.onCommand.addListener(async (command) => {
2525
if (command === "toggle-web-access") {
2626
Browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
27-
if (tabs[0].url.startsWith("https://chat.openai.com/")) {
28-
Browser.tabs.sendMessage(tabs[0].id, "toggle-web-access")
27+
const tab = tabs[0]
28+
if (tab.url && tab.id && tab.url.startsWith("https://chat.openai.com/")) {
29+
Browser.tabs.sendMessage(tab.id, "toggle-web-access")
2930
}
3031
})
3132
}
@@ -77,6 +78,7 @@ Browser.declarativeNetRequest.updateDynamicRules({
7778
function update_origin_for_ddg_in_firefox() {
7879
Browser.webRequest.onBeforeSendHeaders.addListener(
7980
(details) => {
81+
if (!details.requestHeaders) return
8082
for (let i = 0; i < details.requestHeaders.length; ++i) {
8183
if (details.requestHeaders[i].name === 'Origin')
8284
details.requestHeaders[i].value = "https://lite.duckduckgo.com"

0 commit comments

Comments
 (0)