From b8ea758b0413a40cc115651b9446ab08eec28b9c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 3 Jun 2013 17:50:05 -0300 Subject: Using dev version of noscript.js --- .../pentadactyl.dot/plugins.link/noscript.js | 235 ++++++++++----------- 1 file changed, 117 insertions(+), 118 deletions(-) diff --git a/modules/pentadactyl/pentadactyl.dot/plugins.link/noscript.js b/modules/pentadactyl/pentadactyl.dot/plugins.link/noscript.js index 1c69c68..87d50c9 100644 --- a/modules/pentadactyl/pentadactyl.dot/plugins.link/noscript.js +++ b/modules/pentadactyl/pentadactyl.dot/plugins.link/noscript.js @@ -4,7 +4,7 @@ * * Documentation is at the tail of this file. */ -/* use strict */ +"use strict"; dactyl.assert("noscriptOverlay" in window, "This plugin requires the NoScript add-on."); @@ -130,12 +130,12 @@ var onUnload = overlay.overlayObject(gBrowser, { } }); -highlight.loadCSS( +highlight.loadCSS(literal(/* NoScriptAllowed color: green; NoScriptBlocked color: #444; font-style: italic; NoScriptTemp color: blue; NoScriptUntrusted color: #c00; font-style: italic; -); +*/)); let groupProto = {}; ["temp", "jsPolicy", "untrusted"].forEach(function (group) @@ -232,10 +232,9 @@ prefs.set = function prefsSet(group, val) { setPref(p.pref, val.indexOf(p.text) >= 0); return val; } -prefs.descs = function prefDescs(group)
- { template.map(values(this[group]), function (pref) - <>
{pref.text}
{pref.description}
) } -
; +prefs.descs = function prefDescs(group) ["dl", {}, + template.map(values(this[group]), function (pref) + [["dt", {}, pref.text], ["dd", {}, pref.description]])]; function groupParams(group) ( { getter: function () prefs.get(group), @@ -345,117 +344,117 @@ group.options.add(["script"], validator: params.validator || function () true })); -XML.ignoreWhitespace = false; -XML.prettyPrinting = false; var INFO = - - Kris Maglione - MIT - -

- This plugin provides tight integration with the NoScript add-on. - In addition to commands and options to control the behavior of - NoScript, this plugin also provides integration with both the - {config.appName} and {config.host} sanitization systems sorely - lacking in the add-on itself. Namely, when data for a domain is - purged, all of its associated NoScript permissions are purged as - well, and temporary permissions are purged along with session - data. -

- - As most options provided by this script directly alter NoScript - preferences, which are persistent, their values are automatically - preserved across restarts. - - - 'script' 'noscript' - - 'script' - boolean noscript - -

- When on, all sites are allowed to execute scripts and - load plugins. When off, only specifically allowed sites - may do so. -

-
-
- - 'nsf' 'noscript-forbid' - 'noscript-forbid' - stringlist - -

- The set of permissions forbidden to untrusted sites. -

- { prefs.descs("forbid") } -

See also noscript-objects.

-
-
- - 'nsl' 'noscript-list' - 'noscript-list' - stringlist - -

- The set of items to show in the main completion list and - NoScript menu. -

- { prefs.descs("list") } -
-
- - 'nso' 'noscript-objects' - 'noscript-objects' - stringlist - -

- The list of objects which allowed to display. See also - noscript-forbid. -

- :map :set nso!= -
-
- - 'nss' 'noscript-sites' - 'noscript-sites' - stringlist - -

- The list of sites which are permanently allowed to execute - scripts. -

- :map :set nss!= -
-
- - 'nst' 'noscript-tempsites' - 'noscript-tempsites' - stringlist - -

- The list of sites which are temporarily allowed to execute - scripts. The value is not preserved across application - restarts. -

- :map :set nst!= -
-
- - 'nsu' 'noscript-untrusted' - 'noscript-untrusted' - stringlist - -

- The list of untrusted sites which are not allowed to activate, - nor are listed in the main completion lists or NoScript menu. -

- :map :set nsu!= -
-
-
; +["plugin", { name: "noscript", + version: "0.8", + href: "http://dactyl.sf.net/pentadactyl/plugins#noscript-plugin", + summary: "NoScript integration", + xmlns: "dactyl" }, + ["author", { email: "maglione.k@gmail.com" }, "Kris Maglione"], + ["license", { href: "http://opensource.org/licenses/mit-license.php" }, "MIT"], + ["project", { name: "Pentadactyl", "min-version": "1.0" }], + + ["p", {}, + "This plugin provides tight integration with the NoScript add-on. ", + "In addition to commands and options to control the behavior of ", + "NoScript, this plugin also provides integration with both the ", + config.appName, " and ", config.host, " sanitization systems sorely ", + "lacking in the add-on itself. Namely, when data for a domain is ", + "purged, all of its associated NoScript permissions are purged as ", + "well, and temporary permissions are purged along with session ", + "data."], + + ["note", {}, + "As most options provided by this script directly alter NoScript ", + "preferences, which are persistent, their values are automatically ", + "preserved across restarts."], + + ["item", {}, + ["tags", {}, "'script' 'noscript'"], + ["strut", {}], + ["spec", {}, "'script'"], + ["type", {}, "boolean"], + ["default", {}, "noscript"], + ["description", {}, + ["p", {}, + "When on, all sites are allowed to execute scripts and ", + "load plugins. When off, only specifically allowed sites ", + "may do so."]]], + + ["item", {}, + ["tags", {}, "'nsf' 'noscript-forbid'"], + ["spec", {}, "'noscript-forbid'"], + ["type", {}, "stringlist"], + ["default", {}, ""], + ["description", {}, + ["p", {}, + "The set of permissions forbidden to untrusted sites."], + prefs.descs("forbid"), + ["p", {}, + "See also ", ["o", {}, "noscript-objects"], "."]]], + + ["item", {}, + ["tags", {}, "'nsl' 'noscript-list'"], + ["spec", {}, "'noscript-list'"], + ["type", {}, "stringlist"], + ["default", {}, ""], + ["description", {}, + ["p", {}, + "The set of items to show in the main completion list and ", + "NoScript menu."], + prefs.descs("list")]], + + ["item", {}, + ["tags", {}, "'nso' 'noscript-objects'"], + ["spec", {}, "'noscript-objects'"], + ["type", {}, "stringlist"], + ["default", {}, ""], + ["description", {}, + ["p", {}, + "The list of objects which allowed to display. See also ", + ["o", {}, "noscript-forbid"], "."], + ["example", {}, + ["ex", {}, ":map ", ["k", { name: "A-c", link: "false" }]], " ", + ["ex", {}, ":set nso!=", ["k", { name: "A-Tab", link: "c_" }]]]]], + + ["item", {}, + ["tags", {}, "'nss' 'noscript-sites'"], + ["spec", {}, "'noscript-sites'"], + ["type", {}, "stringlist"], + ["default", {}, ""], + ["description", {}, + ["p", {}, + "The list of sites which are permanently allowed to execute ", + "scripts."], + ["example", {}, + ["ex", {}, ":map ", ["k", { name: "A-s", link: "false" }]], " ", + ["ex", {}, ":set nss!=", ["k", { name: "A-Tab", link: "c_" }]]]]], + + ["item", {}, + ["tags", {}, "'nst' 'noscript-tempsites'"], + ["spec", {}, "'noscript-tempsites'"], + ["type", {}, "stringlist"], + ["default", {}, ""], + ["description", {}, + ["p", {}, + "The list of sites which are temporarily allowed to execute ", + "scripts. The value is not preserved across application ", + "restarts."], + ["example", {}, + ["ex", {}, ":map ", ["k", { name: "A-S-s", link: "false" }]], " ", + ["ex", {}, ":set nst!=", ["k", { name: "A-Tab", link: "c_" }]]]]], + + ["item", {}, + ["tags", {}, "'nsu' 'noscript-untrusted'"], + ["spec", {}, "'noscript-untrusted'"], + ["type", {}, "stringlist"], + ["default", {}, ""], + ["description", {}, + ["p", {}, + "The list of untrusted sites which are not allowed to activate, ", + "nor are listed in the main completion lists or NoScript menu."], + ["example", {}, + ["ex", {}, ":map ", ["k", { name: "A-C-s", link: "false" }]], " ", + ["ex", {}, ":set nsu!=", ["k", { name: "A-Tab", link: "c_" }]]]]]]; /* vim:se sts=4 sw=4 et: */ -- cgit v1.2.3