diff options
author | Nik Nyby <nikolas@gnu.org> | 2015-06-19 19:18:13 -0400 |
---|---|---|
committer | Nik Nyby <nikolas@gnu.org> | 2015-10-22 21:33:30 -0400 |
commit | 3349cb55c55cdbd21fe26bfeef39c2205b4e5532 (patch) | |
tree | 17dcb01435437d3acc1a0e50d99b38234a267391 | |
parent | a7f7dba18dc59d5807512ddc1c0206a279c7dab2 (diff) | |
download | librejsxul-3349cb55c55cdbd21fe26bfeef39c2205b4e5532.tar.lz librejsxul-3349cb55c55cdbd21fe26bfeef39c2205b4e5532.tar.xz librejsxul-3349cb55c55cdbd21fe26bfeef39c2205b4e5532.zip |
use menuitem from npm
-rw-r--r-- | lib/ui.js | 2 | ||||
-rw-r--r-- | package.json | 123 |
2 files changed, 62 insertions, 63 deletions
@@ -137,7 +137,7 @@ let UI = exports.UI = { } }); - var menuitem = require("menuitems").Menuitem({ + var menuitem = require("menuitem").Menuitem({ id: 'librejs_settings', menuid: 'menu_ToolsPopup', label: 'LibreJS Whitelist', diff --git a/package.json b/package.json index 73d01cd..97ac132 100644 --- a/package.json +++ b/package.json @@ -1,68 +1,67 @@ { - "name": "librejs", - "license": "GPL-3.0+", - "author": "Loic J. Duros", - "homepage": "gnu.org/software/librejs/", - "version": "6.0.10.20151023", - "title": "GNU LibreJS", - "id": "jid1-KtlZuoiikVfFew@jetpack", - "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": "data/widget/images/librejs-32.png", - "icon64": "data/widget/images/librejs-64.png", - "dependencies": [ - "notification-box", - "addon-sdk", - "menuitems", - "vold-utils" - ], - "permissions": { - "private-browsing": true, - "unsafe-content-script": true + "name": "librejs", + "license": "GPL-3.0+", + "author": "Loic J. Duros", + "homepage": "gnu.org/software/librejs/", + "version": "6.0.10.20151023", + "title": "GNU LibreJS", + "id": "jid1-KtlZuoiikVfFew@jetpack", + "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": "data/widget/images/librejs-32.png", + "icon64": "data/widget/images/librejs-64.png", + "dependencies": { + "0": "notification-box", + "3": "vold-utils", + "menuitem": "0.0.4" + }, + "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": "" }, - "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/ --exclude ./data/settings/third-party/", - "test": "cfx test -v" + { + "name": "complaint_tab", + "title": "Display complaint tab on sites where nonfree nontrivial JavaScript is detected", + "type": "bool", + "value": true }, - "jscsConfig": { - "preset": "google", - "validateIndentation": 4 + { + "name": "display_notifications", + "title": "Display notifications of the JavaScript code being analyzed by LibreJS.", + "type": "bool", + "value": false }, - "jshintConfig": { - "moz": true + { + "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/ --exclude ./data/settings/third-party/", + "test": "cfx test -v" + }, + "jscsConfig": { + "preset": "google", + "validateIndentation": 4 + }, + "jshintConfig": { + "moz": true + } } |