Project

General

Profile

Code structure » History » Version 1

jahoti, 07/05/2021 01:39 AM

1 1 jahoti
# Code structure
2
3
The idea of arranging script files based on their execution context might not be the best one. Suggestions are welcome.
4
5
{{toc}}
6
7
## `background/`
8
Contains scripts that are to be run exclusively in the context of the background page.
9
10
## `common/`
11
Contains scripts that are to be run in more than one context. E.g. script that gets evaluated in contexts of both settings page and background page is going to reside in this directory.
12
13
## `content/`
14
Contains scripts that execute exclusively in the context of content scripts.
15
16
## `COPYING.txt`
17
Contains copyright information (not the actual license texts, these reside under `licenses/`).
18
19
## `html/`
20
Contains javascript, HTML and (in the future) CSS files for settings and popup pages.
21
22
## `icons/`
23
Contains icons graphics used by the extension.
24
25
## `licenses/`
26
Contains full legal texts of licenses used.
27
28
## `manifest.json`
29
Is the manifest file with the most important extension information for the browser. For now this is a version 2 manifest (version 3 is to require a redesign of the entire extension). Temporarily, the same `manifest.json` is being used for both browser families.
30
31
## `README.txt`
32
Contains some general information about the extension.
33
34
## `TODOS.org`
35
Lists tasks that need to be done and those that have already been done.