aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
blob: cca3de59aa130cf9acb61d4b66734e7eb088a0a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
  "name": "librejs",
  "license": "GPL-3.0+",
  "author": "Loic J. Duros",
  "homepage": "https://gnu.org/software/librejs/",
  "repository": "http://git.savannah.gnu.org/cgit/librejs.git/",
  "version": "6.0.10",
  "title": "GNU LibreJS",
  "description": "GNU LibreJS is an add-on for Mozilla-based browsers (IceCat, Firefox, Abrowser, Iceweasel)\n that prevents the execution of nonfree nontrivial JavaScript as described in \"The Javascript Trap\": http://www.gnu.org/philosophy/javascript-trap.html",
  "main": "lib/main.js",
  "icon": "resource://@librejs/data/widget/images/librejs-64.png",
  "dependencies": {
    "menuitem": "0.0.5",
    "notification-box": "0.1.1"
  },
  "permissions": {
    "private-browsing": true,
    "unsafe-content-script": true
  },
  "preferences": [
    {
      "name": "whitelist",
      "title": "Whitelist domain, separated by comma, omit protocol, e.g.: gnu.org, wildcard is *",
      "type": "string",
      "value": ""
    },
    {
      "name": "complaint_tab",
      "title": "Display complaint tab on sites where nonfree nontrivial JavaScript is detected",
      "type": "bool",
      "value": true
    },
    {
      "name": "display_notifications",
      "title": "Display notifications of the JavaScript code being analyzed by LibreJS.",
      "type": "bool",
      "value": false
    },
    {
      "name": "complaint_email_subject",
      "title": "Complaint email subject",
      "description": "Initial subject line used in complaint emails",
      "type": "string",
      "value": "Please make your JavaScript free"
    },
    {
      "name": "complaint_email_body",
      "title": "Complaint email body",
      "description": "Initial body text used in complaint emails",
      "type": "string",
      "value": "I could not use your site because it requires running JavaScript code which is not free software.  Since a nonfree program disrespects the user's freedom, I decided not to run it. \\n\\nSee http://gnu.org/philosophy/javascript-trap.html for more information, and please make your JavaScript code free."
    }
  ],
  "scripts": {
    "pretest": "jshint lib data",
    "test": "jpm test -v"
  },
  "jscsConfig": {
    "preset": "google",
    "validateIndentation": 4
  },
  "jshintConfig": {
    "moz": true
  }
}