Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 4986b74

Browse files
authored
Merge pull request #64 from anaclumos/1.0.5
2 parents 06a36c6 + 4250b76 commit 4986b74

File tree

11 files changed

+76
-58
lines changed

11 files changed

+76
-58
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
# Bing Chat for All Browsers
44

5-
> **Note**<br/>
6-
> **You need a Microsoft account that has access to the new Bing Chat to use this extension!**
5+
> **Note**<br/> > **You need a Microsoft account that has access to the new Bing Chat to use this extension!**
76
> If you don't have access to the new Bing Chat, you can join the waitlist at [bing.com/chat](https://bing.com/chat).
87
9-
108
## [Chrome](https://chrome.google.com/webstore/detail/bing-chat-for-all-browser/jofbglonpbndadajbafmmaklbfbkggpo)
119

1210
N/A. It should work out of the box!

package-lock.json

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
22
"name": "bing-chat-for-all-browsers",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "bing-chat-for-all-browsers",
55
"main": "index.js",
66
"scripts": {
77
"watch": "webpack --config webpack/webpack.dev.js --watch",
8-
"build": "$npm_execpath run clean && webpack --config webpack/webpack.chrome.js && webpack --config webpack/webpack.firefox.js",
8+
"build": "$npm_execpath run clean && $npm_execpath run chrome && $npm_execpath run firefox",
9+
"chrome": "webpack --config webpack/webpack.chrome.js",
10+
"firefox": "webpack --config webpack/webpack.firefox.js",
11+
"safari": "xcrun safari-web-extension-converter release/firefox --swift --no-open --copy-resources --project-location safari --force --bundle-identifier sh.cho.bing-chat-for-all-browsers",
912
"clean": "rimraf release",
1013
"test": "npx jest",
1114
"style": "prettier --write \"**/*.{ts,tsx,json,js,jsx,css,scss,html,md}\"",

public/chrome.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Bing Chat for All Browsers",
44
"description": "Bing Chat for All Browsers",
5-
"version": "1.0.4",
5+
"version": "1.0.5",
66
"icons": {
77
"16": "icon16.png",
88
"32": "icon32.png",
@@ -23,6 +23,6 @@
2323
}
2424
]
2525
},
26-
"permissions": ["webRequest", "declarativeNetRequest"],
26+
"permissions": ["webRequest", "declarativeNetRequestWithHostAccess"],
2727
"host_permissions": ["http://*.bing.com/*", "https://*.bing.com/*"]
2828
}

public/firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Bing Chat for All Browsers",
44
"description": "Bing Chat for All Browsers",
5-
"version": "1.0.4",
5+
"version": "1.0.5",
66
"background": {
77
"scripts": ["js/background.js"]
88
},

public/rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"header": "User-Agent",
1010
"operation": "set",
11-
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.100.0"
11+
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/111.0.1661.62"
1212
}
1313
]
1414
},

release/chrome.zip

93 KB
Binary file not shown.

release/firefox.zip

93 KB
Binary file not shown.

rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"header": "User-Agent",
1010
"operation": "set",
11-
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.100.0"
11+
"value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.61"
1212
}
1313
]
1414
},

src/background.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ On Firefox it will replace the entire user agent with a hard coded Chrome user a
1111

1212
//Microsoft Edge has two user agent suffixes, one for mobile and one for desktop
1313
const MOBILE_UA_SUFFIX = 'EdgA/110.0.1587.41'
14-
const DESKTOP_UA_SUFFIX = 'Edg/110.0.100.0'
14+
const DESKTOP_UA_SUFFIX = 'Edg/111.0.1661.62'
1515

1616
const DESKTOP_UA_PREFIX =
1717
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36'
@@ -40,7 +40,7 @@ chrome.webRequest.onBeforeSendHeaders.addListener(
4040
const newHeaders = requestHeaders.map((header) => {
4141
if (header.name.toLowerCase() === 'user-agent') {
4242
if (header.value?.toLowerCase().includes('mobile')) header.value = uaMaker(MOBILE_UA_SUFFIX, true)
43-
else header.value = uaMaker(MOBILE_UA_SUFFIX, false)
43+
else header.value = uaMaker(DESKTOP_UA_SUFFIX, false)
4444
}
4545
return header
4646
})

0 commit comments

Comments
 (0)