Skip to content

Commit 50cdb0f

Browse files
committed
Remove excessive permissions request
1 parent ca981df commit 50cdb0f

File tree

7 files changed

+48
-72
lines changed

7 files changed

+48
-72
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_APP_VERSION=10.1.20
1+
VITE_APP_APP_VERSION=10.1.21
22
VITE_APP_GITHUB_API_FREE_HOURLY_LIMIT=60
33
VITE_APP_GITHUB_API_TOKENIZED_HOURLY_LIMIT=5000
44
VITE_APP_TOKEN_CREATION_LINK=https://github.com/settings/tokens/new?scopes=repo&description=Github%20GLOC

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_APP_VERSION=10.1.20
1+
VITE_APP_APP_VERSION=10.1.21
22
VITE_APP_GITHUB_API_FREE_HOURLY_LIMIT=60
33
VITE_APP_GITHUB_API_TOKENIZED_HOURLY_LIMIT=5000
44
VITE_APP_TOKEN_CREATION_LINK=https://github.com/settings/tokens/new?scopes=repo&description=Github%20GLOC

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_APP_VERSION=10.1.20
1+
VITE_APP_APP_VERSION=10.1.21
22
VITE_APP_GITHUB_API_FREE_HOURLY_LIMIT=60
33
VITE_APP_GITHUB_API_TOKENIZED_HOURLY_LIMIT=5000
44
VITE_APP_TOKEN_CREATION_LINK=https://github.com/settings/tokens/new?scopes=repo&description=Github%20GLOC

manifest.json

Lines changed: 35 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,38 @@
11
{
2-
"manifest_version": 3,
3-
"name": "Gloc",
4-
"short_name": "Gloc",
5-
"author": "Kas Elvirov",
6-
"description": "Github Gloc - counts locs on GitHub pages",
7-
"version": "10.1.20",
8-
"action": {
9-
"default_icon": {
10-
"16": "img/icon16.png",
11-
"32": "img/icon32.png",
12-
"64": "img/icon64.png",
13-
"128": "img/icon128.png"
14-
},
15-
"default_title": "Github Gloc - counts locs on GitHub pages",
16-
"default_popup": "popup.html"
2+
"manifest_version": 3,
3+
"name": "Gloc",
4+
"short_name": "Gloc",
5+
"author": "Kas Elvirov",
6+
"description": "Github Gloc - counts locs on GitHub pages",
7+
"version": "10.1.21",
8+
"action": {
9+
"default_icon": {
10+
"16": "img/icon16.png",
11+
"32": "img/icon32.png",
12+
"64": "img/icon64.png",
13+
"128": "img/icon128.png"
1714
},
18-
"options_ui": {
19-
"page": "options.html"
20-
},
21-
"background": {
22-
"service_worker": "./public/background.js"
23-
},
24-
"options_page": "options.html",
25-
"content_scripts": [
26-
{
27-
"matches": [
28-
"*://github.com/*"
29-
],
30-
"js": [
31-
"src/content.tsx"
32-
],
33-
"run_at": "document_idle"
34-
}
35-
],
36-
"permissions": [
37-
"storage",
38-
"scripting",
39-
"tabs"
40-
],
41-
"host_permissions": [
42-
"*://*.github.com/*"
43-
],
44-
"icons": {
45-
"16": "img/icon16.png",
46-
"32": "img/icon32.png",
47-
"64": "img/icon64.png",
48-
"128": "img/icon128.png"
49-
},
50-
"browser_specific_settings": {
51-
"gecko": {
52-
"id": "{bc2166c4-e7a2-46d5-ad9e-342cef57f1f7}"
53-
}
15+
"default_title": "Github Gloc - counts locs on GitHub pages",
16+
"default_popup": "popup.html"
17+
},
18+
"options_ui": { "page": "options.html" },
19+
"background": { "service_worker": "public/background.js" },
20+
"content_scripts": [
21+
{
22+
"matches": ["https://github.com/*"],
23+
"js": ["src/content.tsx"],
24+
"run_at": "document_idle"
5425
}
55-
}
26+
],
27+
"permissions": ["storage", "activeTab"],
28+
"host_permissions": ["https://github.com/*"],
29+
"icons": {
30+
"16": "img/icon16.png",
31+
"32": "img/icon32.png",
32+
"64": "img/icon64.png",
33+
"128": "img/icon128.png"
34+
},
35+
"browser_specific_settings": {
36+
"gecko": { "id": "{bc2166c4-e7a2-46d5-ad9e-342cef57f1f7}" }
37+
}
38+
}

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gloc",
3-
"version": "10.1.20",
3+
"version": "10.1.21",
44
"engines": {
55
"node": "16.19.0",
66
"npm": "0.39.3"

public/manifest.json

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"short_name": "Gloc",
55
"author": "Kas Elvirov",
66
"description": "Github Gloc - counts locs on GitHub pages",
7-
"version": "10.1.7",
7+
"version": "10.1.21",
88
"action": {
99
"default_icon": {
1010
"16": "img/icon16.png",
@@ -15,31 +15,24 @@
1515
"default_title": "Github Gloc - counts locs on GitHub pages",
1616
"default_popup": "popup.html"
1717
},
18-
"options_ui": {
19-
"page": "options.html"
20-
},
21-
"background": {
22-
"service_worker": "./background.js"
23-
},
24-
"options_page": "options.html",
18+
"options_ui": { "page": "options.html" },
19+
"background": { "service_worker": "public/background.js" },
2520
"content_scripts": [
2621
{
27-
"matches": ["*://github.com/*"],
22+
"matches": ["https://github.com/*"],
2823
"js": ["src/content.tsx"],
2924
"run_at": "document_idle"
3025
}
3126
],
32-
"permissions": ["storage", "scripting", "tabs"],
33-
"host_permissions": ["*://*.github.com/*"],
27+
"permissions": ["storage", "activeTab"],
28+
"host_permissions": ["https://github.com/*"],
3429
"icons": {
3530
"16": "img/icon16.png",
3631
"32": "img/icon32.png",
3732
"64": "img/icon64.png",
3833
"128": "img/icon128.png"
3934
},
4035
"browser_specific_settings": {
41-
"gecko": {
42-
"id": "{bc2166c4-e7a2-46d5-ad9e-342cef57f1f7}"
43-
}
36+
"gecko": { "id": "{bc2166c4-e7a2-46d5-ad9e-342cef57f1f7}" }
4437
}
4538
}

0 commit comments

Comments
 (0)