-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d59e258
commit a334cbc
Showing
8 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
chrome.webRequest.onBeforeSendHeaders.addListener(data => { | ||
for (let header of data.requestHeaders) { | ||
if (header.name.toLowerCase() === 'user-agent') { | ||
header.value = navigator.userAgent.split('Gecko')[0] + 'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.58'; | ||
} | ||
} | ||
return { requestHeaders: data.requestHeaders }; | ||
}, { urls: ['https://*.bing.com/*'] }, ['blocking', 'requestHeaders']); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "Bing AI for Brave", | ||
"description": "Allows using Bing AI chatbot with Brave.", | ||
"version": "1.0.0", | ||
"permissions": [ | ||
"webRequest", | ||
"webRequestBlocking", | ||
"https://*.bing.com/*" | ||
], | ||
"background": { | ||
"scripts": [ | ||
"background.js" | ||
] | ||
}, | ||
"icons": { | ||
"16": "icon-16.png", | ||
"48": "icon-48.png", | ||
"128": "icon-128.png" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters