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

Commit 43b2d58

Browse files
committed
release v1
1 parent 4387493 commit 43b2d58

28 files changed

+168
-12
lines changed

package-lock.json

+31-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"watch": "webpack --config webpack/webpack.dev.js --watch",
88
"build": "webpack --config webpack/webpack.chrome.js & webpack --config webpack/webpack.firefox.js",
9-
"clean": "rimraf dist",
9+
"clean": "rimraf release",
1010
"test": "npx jest",
1111
"style": "prettier --write \"**/*.{ts,tsx,json,js,jsx,css,scss,html,md}\""
1212
},

release/chrome/favicon.ico

2.76 KB
Binary file not shown.

release/chrome/firefox.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"manifest_version": 2,
3+
"name": "Bing Chat for All Browsers",
4+
"description": "Bing Chat for All Browsers",
5+
"version": "1.0",
6+
"background": {
7+
"scripts": ["js/background.js"]
8+
},
9+
"icons": {
10+
"16": "icon16.png",
11+
"32": "icon32.png",
12+
"128": "icon128.png",
13+
"192": "icon192.png",
14+
"512": "icon512.png",
15+
"1024": "icon1024.png"
16+
},
17+
"permissions": ["webRequest", "webRequestBlocking", "http://*.bing.com/*", "https://*.bing.com/*"]
18+
}

release/chrome/icon1024.png

8.54 KB
Loading

release/chrome/icon128.png

6.46 KB
Loading

release/chrome/icon16.png

1.3 KB
Loading

release/chrome/icon192.png

7.11 KB
Loading

release/chrome/icon32.png

1.74 KB
Loading

release/chrome/icon512.png

14.6 KB
Loading

release/chrome/js/background.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/chrome/manifest.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Bing Chat for All Browsers",
4+
"description": "Bing Chat for All Browsers",
5+
"version": "1.0",
6+
"icons": {
7+
"16": "icon16.png",
8+
"32": "icon32.png",
9+
"128": "icon128.png",
10+
"192": "icon192.png",
11+
"512": "icon512.png",
12+
"1024": "icon1024.png"
13+
},
14+
"declarative_net_request": {
15+
"rule_resources": [
16+
{
17+
"id": "1",
18+
"enabled": true,
19+
"path": "rules.json"
20+
}
21+
]
22+
},
23+
"permissions": ["webRequest", "declarativeNetRequest"],
24+
"host_permissions": ["http://*.bing.com/*", "https://*.bing.com/*"]
25+
}

release/chrome/rules.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"id": 1,
4+
"priority": 1,
5+
"action": {
6+
"type": "modifyHeaders",
7+
"requestHeaders": [
8+
{
9+
"header": "User-Agent",
10+
"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"
12+
}
13+
]
14+
},
15+
"condition": {
16+
"regexFilter": ".*bing\\.com.*",
17+
"resourceTypes": ["main_frame"]
18+
}
19+
}
20+
]

release/firefox/chrome.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Bing Chat for All Browsers",
4+
"description": "Bing Chat for All Browsers",
5+
"version": "1.0",
6+
"icons": {
7+
"16": "icon16.png",
8+
"32": "icon32.png",
9+
"128": "icon128.png",
10+
"192": "icon192.png",
11+
"512": "icon512.png",
12+
"1024": "icon1024.png"
13+
},
14+
"declarative_net_request": {
15+
"rule_resources": [
16+
{
17+
"id": "1",
18+
"enabled": true,
19+
"path": "rules.json"
20+
}
21+
]
22+
},
23+
"permissions": ["webRequest", "declarativeNetRequest"],
24+
"host_permissions": ["http://*.bing.com/*", "https://*.bing.com/*"]
25+
}

release/firefox/favicon.ico

2.76 KB
Binary file not shown.

release/firefox/icon1024.png

8.54 KB
Loading

release/firefox/icon128.png

6.46 KB
Loading

release/firefox/icon16.png

1.3 KB
Loading

release/firefox/icon192.png

7.11 KB
Loading

release/firefox/icon32.png

1.74 KB
Loading

release/firefox/icon512.png

14.6 KB
Loading

release/firefox/js/background.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/firefox/manifest.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"manifest_version": 2,
3+
"name": "Bing Chat for All Browsers",
4+
"description": "Bing Chat for All Browsers",
5+
"version": "1.0",
6+
"background": {
7+
"scripts": ["js/background.js"]
8+
},
9+
"icons": {
10+
"16": "icon16.png",
11+
"32": "icon32.png",
12+
"128": "icon128.png",
13+
"192": "icon192.png",
14+
"512": "icon512.png",
15+
"1024": "icon1024.png"
16+
},
17+
"permissions": ["webRequest", "webRequestBlocking", "http://*.bing.com/*", "https://*.bing.com/*"]
18+
}

release/firefox/rules.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"id": 1,
4+
"priority": 1,
5+
"action": {
6+
"type": "modifyHeaders",
7+
"requestHeaders": [
8+
{
9+
"header": "User-Agent",
10+
"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"
12+
}
13+
]
14+
},
15+
"condition": {
16+
"regexFilter": ".*bing\\.com.*",
17+
"resourceTypes": ["main_frame"]
18+
}
19+
}
20+
]

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"esModuleInterop": true,
77
"sourceMap": false,
88
"rootDir": "src",
9-
"outDir": "dist/js",
9+
"outDir": "release/js",
1010
"noEmitOnError": true,
1111
"jsx": "react",
1212
"typeRoots": ["node_modules/@types"]

webpack/webpack.chrome.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('./webpack.common.js')
66
module.exports = merge(common, {
77
mode: 'production',
88
output: {
9-
path: path.join(__dirname, '../dist/chrome/js'),
9+
path: path.join(__dirname, '../release/chrome/js'),
1010
filename: '[name].js',
1111
},
1212
plugins: [
@@ -16,9 +16,9 @@ module.exports = merge(common, {
1616
from: './public',
1717
to: ({ absoluteFilename }) => {
1818
if (absoluteFilename.endsWith('chrome.json')) {
19-
return path.join(__dirname, '../dist/chrome') + '/manifest.json'
19+
return path.join(__dirname, '../release/chrome') + '/manifest.json'
2020
} else {
21-
return path.join(__dirname, '../dist/chrome') + '/[name][ext]'
21+
return path.join(__dirname, '../release/chrome') + '/[name][ext]'
2222
}
2323
},
2424
},

webpack/webpack.common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
background: path.join(srcDir, 'background.ts'),
77
},
88
output: {
9-
path: path.join(__dirname, '../dist/js'),
9+
path: path.join(__dirname, '../release/js'),
1010
filename: '[name].js',
1111
},
1212
optimization: {

webpack/webpack.firefox.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('./webpack.common.js')
66
module.exports = merge(common, {
77
mode: 'production',
88
output: {
9-
path: path.join(__dirname, '../dist/firefox/js'),
9+
path: path.join(__dirname, '../release/firefox/js'),
1010
filename: '[name].js',
1111
},
1212
plugins: [
@@ -16,9 +16,9 @@ module.exports = merge(common, {
1616
from: './public',
1717
to: ({ absoluteFilename }) => {
1818
if (absoluteFilename.endsWith('firefox.json')) {
19-
return path.join(__dirname, '../dist/firefox') + '/manifest.json'
19+
return path.join(__dirname, '../release/firefox') + '/manifest.json'
2020
} else {
21-
return path.join(__dirname, '../dist/firefox') + '/[name][ext]'
21+
return path.join(__dirname, '../release/firefox') + '/[name][ext]'
2222
}
2323
},
2424
},

0 commit comments

Comments
 (0)