Skip to content

Commit

Permalink
fix: Privacy Policy, and fixes to extension manifest (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfreear committed Oct 30, 2024
1 parent 8e71c0f commit fa7de62
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
15 changes: 12 additions & 3 deletions build/manifest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Build a manifest file targetting Chromium/Webkit or Gecko-based browsers.
* Build a manifest file, targetting Chromium/Webkit or Gecko-based browsers.
*
* @copyright © Nick Freear, 19-Aug-2024.
*
* © NDF, 19-Aug-2024.
* @see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json
*/

Expand All @@ -14,16 +15,21 @@ const IS_GECKO = process.env.UA === 'gecko';

const FILE_PATH = resolve(__dirname, '..', 'manifest.json');
const SERVICE_WORKER = 'lib/service-worker.js';
const AUTHOR_NAME = 'Nick Freear';
// const BACKGROUND_PAGE = 'pages/background.html';

const TEMPLATE = {
manifest_version: 3,

name: 'My Pomodoro',
short_name: 'My Pomodoro',
name: 'My Pomodoro: work, relax, focus',
version: '1.0',

description: 'A Pomodoro countdown timer that helps you focus by blocking access to distracting websites.',
homepage_url: 'https://github.com/nfreear/pomodoro-chrome-ext#readme',
author: {
email: '[email protected]'
},

icons: {
128: 'assets/icon-128.png'
Expand Down Expand Up @@ -66,6 +72,7 @@ const TEMPLATE = {
{
matches: ['https://*/*'],
resources: [
'assets/app-icons.svg',
'assets/content-style.css',
// 'assets/evergreen_tree.svg',
// 'assets/emoji.svg',
Expand All @@ -90,6 +97,8 @@ const MANIFEST = IS_GECKO ? { ...TEMPLATE, ...GECKO } : TEMPLATE;
if (IS_GECKO) {
// MANIFEST.background.page = BACKGROUND_PAGE;
MANIFEST.background.scripts = [SERVICE_WORKER];

MANIFEST.author = AUTHOR_NAME;
} else {
// Chromium-specific.
MANIFEST.background.service_worker = SERVICE_WORKER;
Expand Down
8 changes: 5 additions & 3 deletions docs/PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The privacy policy for the '_My Pomodoro_' browser extension is really simple.

## What is the single purpose?

My Pomodoro is a countdown timer that helps you focus, by blocking access to distracting websites. (The block-list and timer duration are user configurable.)
My Pomodoro is a countdown timer that helps you focus, by blocking access to distracting websites. (The block-list and timer duration are configurable by you, the user.)

## What data does the extension store?

Expand All @@ -25,7 +25,7 @@ The browser extension does not generate, use or store:
* Cookies,
* Personal data,
* Sensitive data,
* Browsing data and preferences,
* Your browsing data and preferences.

## Where is data stored?

Expand All @@ -37,7 +37,7 @@ The data is not stored within any other party.

## What permissions are required?

The browser extension uses the following [permissions][]:
The browser [extension][] uses the following [permissions][]:

* "`activeTab`" — To check whether the current tab needs blocking, when it becomes active.
* "`notifications`" — To display system notifications at the start and end of Pomodoros.
Expand All @@ -57,6 +57,8 @@ This privacy policy may be updated from time to time. Please check back regularl
[priv bug]: https://github.com/nfreear/pomodoro-chrome-ext/issues/6
[pomodoro]: https://en.wikipedia.org/wiki/Pomodoro_Technique
[permissions]: https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions#manifest
[extension]: https://en.wikipedia.org/wiki/Browser_extension

[tm perm]: https://www.tampermonkey.net/faq.php#Q304
[tm priv]: https://www.tampermonkey.net/privacy.php#tampermonkey-extensions-and-apps

Expand Down

0 comments on commit fa7de62

Please sign in to comment.