From 6e7918b6ccb69876d339a320091fdee811445395 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Mon, 20 Oct 2014 02:24:51 +0200 Subject: Generalize data directory --- data/extensions/abouticecat@gnu.org/LICENSE | 24 ++ .../extensions/abouticecat@gnu.org/chrome.manifest | 8 + .../chrome/content/aboutIceCat/aboutIceCat.xhtml | 289 +++++++++++++++++++++ .../chrome/locale/en/aboutIceCat.dtd | 1 + .../chrome/locale/es/aboutIceCat.dtd | 1 + .../abouticecat@gnu.org/components/aboutIceCat.js | 72 +++++ .../defaults/preferences/preferences.js | 0 data/extensions/abouticecat@gnu.org/install.rdf | 21 ++ 8 files changed, 416 insertions(+) create mode 100644 data/extensions/abouticecat@gnu.org/LICENSE create mode 100644 data/extensions/abouticecat@gnu.org/chrome.manifest create mode 100644 data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml create mode 100644 data/extensions/abouticecat@gnu.org/chrome/locale/en/aboutIceCat.dtd create mode 100644 data/extensions/abouticecat@gnu.org/chrome/locale/es/aboutIceCat.dtd create mode 100644 data/extensions/abouticecat@gnu.org/components/aboutIceCat.js create mode 100644 data/extensions/abouticecat@gnu.org/defaults/preferences/preferences.js create mode 100644 data/extensions/abouticecat@gnu.org/install.rdf (limited to 'data/extensions/abouticecat@gnu.org') diff --git a/data/extensions/abouticecat@gnu.org/LICENSE b/data/extensions/abouticecat@gnu.org/LICENSE new file mode 100644 index 0000000..10d1ec6 --- /dev/null +++ b/data/extensions/abouticecat@gnu.org/LICENSE @@ -0,0 +1,24 @@ +Extension built by Ruben Rodriguez using pieces of torbutton as a template + +Copyright (c) 2014, Ruben Rodriguez +Copyright (c) 2013, The Tor Project, Inc. +Copyright (c) 2006 Scott Squires, Oleg Ivanov + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + diff --git a/data/extensions/abouticecat@gnu.org/chrome.manifest b/data/extensions/abouticecat@gnu.org/chrome.manifest new file mode 100644 index 0000000..d2eafb9 --- /dev/null +++ b/data/extensions/abouticecat@gnu.org/chrome.manifest @@ -0,0 +1,8 @@ +content icecathome chrome/content/ + +locale icecathome af chrome/locale/es/ +locale icecathome ak chrome/locale/en/ + +component {a364a9c0-2960-11e4-8c21-0800200c9a66} components/aboutIceCat.js +contract @mozilla.org/network/protocol/about;1?what=icecat {a364a9c0-2960-11e4-8c21-0800200c9a66} + diff --git a/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml b/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml new file mode 100644 index 0000000..a4a433b --- /dev/null +++ b/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml @@ -0,0 +1,289 @@ + + + + + + %htmlDTD; + + %globalDTD; + + %aboutHomeDTD; + + %browserDTD; +]> + + + + &abouthome.pageTitle; + + + + + + + + + + + + +
+
+ + +
+
+ + + +
+
+ +
+ +
+ +
+
+
+

Enabled privacy features:

+

The GNU IceCat web browser protects your freedom and your privacy!

+
+
+
+ +
+ + + + diff --git a/data/extensions/abouticecat@gnu.org/chrome/locale/en/aboutIceCat.dtd b/data/extensions/abouticecat@gnu.org/chrome/locale/en/aboutIceCat.dtd new file mode 100644 index 0000000..55efd56 --- /dev/null +++ b/data/extensions/abouticecat@gnu.org/chrome/locale/en/aboutIceCat.dtd @@ -0,0 +1 @@ + diff --git a/data/extensions/abouticecat@gnu.org/chrome/locale/es/aboutIceCat.dtd b/data/extensions/abouticecat@gnu.org/chrome/locale/es/aboutIceCat.dtd new file mode 100644 index 0000000..2412c09 --- /dev/null +++ b/data/extensions/abouticecat@gnu.org/chrome/locale/es/aboutIceCat.dtd @@ -0,0 +1 @@ + diff --git a/data/extensions/abouticecat@gnu.org/components/aboutIceCat.js b/data/extensions/abouticecat@gnu.org/components/aboutIceCat.js new file mode 100644 index 0000000..6b32cc1 --- /dev/null +++ b/data/extensions/abouticecat@gnu.org/components/aboutIceCat.js @@ -0,0 +1,72 @@ +/* + +Copyright (c) 2014, Ruben Rodriguez +Copyright (c) 2013, The Tor Project, Inc. +Copyright (c) 2006 Scott Squires, Oleg Ivanov + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +*/ + +// Module specific constants +const kMODULE_NAME = "about:icecat"; +const kMODULE_CONTRACTID = "@mozilla.org/network/protocol/about;1?what=icecat"; +const kMODULE_CID = Components.ID("a364a9c0-2960-11e4-8c21-0800200c9a66"); + +const kAboutIceCatURL = "chrome://icecathome/content/aboutIceCat/aboutIceCat.xhtml"; + +const Cc = Components.classes; +const Ci = Components.interfaces; +const Cu = Components.utils; + +Cu.import("resource://gre/modules/XPCOMUtils.jsm"); + +function AboutIceCat() +{ +} + + +AboutIceCat.prototype = +{ + QueryInterface: XPCOMUtils.generateQI([Ci.nsIAboutModule]), + + // nsIClassInfo implementation: + classDescription: kMODULE_NAME, + classID: kMODULE_CID, + contractID: kMODULE_CONTRACTID, + + // nsIAboutModule implementation: + newChannel: function(aURI) + { + let ioSvc = Cc["@mozilla.org/network/io-service;1"] + .getService(Ci.nsIIOService); + let channel = ioSvc.newChannel(kAboutIceCatURL, null, null); + channel.originalURI = aURI; + + return channel; + }, + + getURIFlags: function(aURI) + { + return Ci.nsIAboutModule.ALLOW_SCRIPT; + } +}; + + +const NSGetFactory = XPCOMUtils.generateNSGetFactory([AboutIceCat]); diff --git a/data/extensions/abouticecat@gnu.org/defaults/preferences/preferences.js b/data/extensions/abouticecat@gnu.org/defaults/preferences/preferences.js new file mode 100644 index 0000000..e69de29 diff --git a/data/extensions/abouticecat@gnu.org/install.rdf b/data/extensions/abouticecat@gnu.org/install.rdf new file mode 100644 index 0000000..0f8065a --- /dev/null +++ b/data/extensions/abouticecat@gnu.org/install.rdf @@ -0,0 +1,21 @@ + + + + + IceCatHome + Ruben Rodriguez + abouticecat@gnu.org + 1.0 + https://127.0.0.1/ + + + + + {ec8030f7-c20a-464f-9b0e-13a3a9e97384} + 30.0 + 10000.0 + + + + -- cgit v1.2.3