Skip to content

Commit 370ec8b

Browse files
committed
change permissions (change all site to only youtube)
1 parent 34f4b41 commit 370ec8b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

manifest.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"name": "Web Activity Time Tracker",
55
"short_name": "Web Time Tracker",
6-
"version": "0.8.5",
6+
"version": "0.8.6",
77
"minimum_chrome_version": "26",
88

99
"description": "Track and limit time your activity in the browser.",
@@ -26,8 +26,7 @@
2626
"unlimitedStorage"
2727
],
2828
"optional_permissions": [
29-
"http://*/*",
30-
"https://*/*"
29+
"https://www.youtube.com/*"
3130
],
3231
"offline_enabled": true,
3332
"background": {

options.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<div class="margin-top-10">
8585
<label class="block">Web Activity Time Tracker tracks your activity, if you active in browser (mouse
8686
or keyboard).
87-
In order for the extension to also track when you watch a video, you must grant permissions to
87+
In order for the extension to also track when you watch a video on YouTube.com, you must grant permissions to
8888
access the sites.
8989
It is necessary that extension will get access to DOM (Document Object Model).</label>
9090
<input class="margin-top-10" type="button" value="Grant permission" id='grantPermission'>

scripts/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function viewBlackList(items) {
114114
function grantPermission() {
115115
chrome.permissions.request({
116116
permissions: ['tabs'],
117-
origins: ["http://*/*", "https://*/*"]
117+
origins: ["https://www.youtube.com/*"]
118118
}, function (granted) {
119119
// The callback argument will be true if the user granted the permissions.
120120
if (granted) {

0 commit comments

Comments
 (0)