diff options
Diffstat (limited to 'data/extensions/abouticecat@gnu.org')
9 files changed, 0 insertions, 531 deletions
diff --git a/data/extensions/abouticecat@gnu.org/LICENSE b/data/extensions/abouticecat@gnu.org/LICENSE deleted file mode 100644 index 10d1ec6..0000000 --- a/data/extensions/abouticecat@gnu.org/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -Extension built by Ruben Rodriguez using pieces of torbutton as a template - -Copyright (c) 2014, Ruben Rodriguez <ruben@gnu.org> -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 deleted file mode 100644 index 9ded035..0000000 --- a/data/extensions/abouticecat@gnu.org/chrome.manifest +++ /dev/null @@ -1,10 +0,0 @@ -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=home {a364a9c0-2960-11e4-8c21-0800200c9a66} -contract @mozilla.org/network/protocol/about;1?what=startpage {a364a9c0-2960-11e4-8c21-0800200c9a66} -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/about-logo.png b/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/about-logo.png Binary files differdeleted file mode 100644 index 554a13d..0000000 --- a/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/about-logo.png +++ /dev/null diff --git a/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml b/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml deleted file mode 100644 index 3680313..0000000 --- a/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml +++ /dev/null @@ -1,400 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- This Source Code Form is subject to the terms of the Mozilla Public - - License, v. 2.0. If a copy of the MPL was not distributed with this - - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - -<!DOCTYPE html [ - <!ENTITY % htmlDTD - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "DTD/xhtml1-strict.dtd"> - %htmlDTD; - <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> - %globalDTD; - <!ENTITY % aboutHomeDTD SYSTEM "chrome://browser/locale/aboutHome.dtd"> - %aboutHomeDTD; - <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" > - %browserDTD; -]> - -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <title>&abouthome.pageTitle;</title> - - <link rel="icon" type="image/png" id="favicon" - href="chrome://branding/content/icon32.png"/> - <link rel="stylesheet" type="text/css" media="all" - href="chrome://browser/content/abouthome/aboutHome.css"/> - -<style> - -body{ - margin:0; - background-color:#f2f2f2; -} -#box{ - display: flex; - flex-flow: column; - justify-content: space-between; - align-items: center; - align-content: center; - height: 100vh; -} - -#topSection, #box3, #block-horizontal-margin{ - flex: 0 1 auto; - align-self: auto; -} -#topSection { - margin-top:5vh; - order:1; -} -#block-horizontal-margin{ - order:2; -} -#box3{ - order:3; - width:100vw; -} - -label{ -position:relative; -bottom:0.25em; -left:0.25em; -} - -#addonsform form{ -position:relative; -left:1em; -} - -em { -color:#600 -} - -a{ -color:#004998 -} - -#addonsform{ -background-color:#fff; -font-size:0.8em; -padding:1em 3em 2em 2.5em; -border-radius: 0.5em; -box-shadow: 0px 0px 5px #888888 inset; -} - -.block-side-margin { - min-width: 1em; -} - -ul li { -list-style:none; -float:left; -} - -ul li a{ -font-weight:bold; -text-shadow:0px 1px 0px #fff; -padding:5px 10px 5px 10px; -border-radius:3px; -margin:5px; -color:#888; -background:#dcdcdc; -box-shadow: 0px 2px 0 #ccc ; -} - -ul li a:hover{ -color:#666; -background:#ccc; -box-shadow: 0px 2px 0 #aaa; - -} - -#footer{ -min-height:4em; -display: -moz-box; --moz-box-align: center; --moz-box-pack: center; -width: 100%; -background-color: hsla(0,0%,0%,.03); -box-shadow: 0 2px 5px hsla(0,0%,0%,.1) inset, 0 -1px 0 hsla(0,0%,100%,.25); -} - -.titlelink{ -font-weight:bold; -color: #678; -text-shadow: 0px 1px 0px white; -} - -#searchLogoContainer{ -background:#ddd; -padding-left:10px; -font-size:0.8em; -border-radius: 3px 0px 0px 3px; -text-shadow:0px 1px 0px #fff; -border:1px solid ; -border-right:none; - -border-color: rgba(51, 166, 255, 0.6) rgba(39, 145, 225, 0.6) rgba(0, 122, 204, 0.6); - border-top-color: rgba(51, 166, 255, 0.6); - border-right-color-value: rgba(39, 145, 225, 0.6); - border-bottom-color: rgba(0, 122, 204, 0.6); - border-left-color-value: rgba(39, 145, 225, 0.6); - border-left-color-ltr-source: physical; - border-left-color-rtl-source: physical; - border-right-color-ltr-source: physical; - border-right-color-rtl-source: physical; -} - -input{ -border-radius:0px!important; -} - -</style> - -<script type="text/javascript"> -<![CDATA[ - -Components.utils.import("resource://gre/modules/AddonManager.jsm"); -Components.utils.import("resource://gre/modules/Services.jsm"); - -function flip(sel){ - var id = sel.id; - var addonObj=-1; - AddonManager.getAddonByID(id, function(addon) { - addonObj=addon; - }); - var thread = Components.classes["@mozilla.org/thread-manager;1"].getService().currentThread; - while (addonObj == null || addonObj == -1) - thread.processNextEvent(true); - addonObj.userDisabled = addonObj.isActive; - if ( addonObj.operationsRequiringRestart != 0) - alert("This change will be applied when you restart IceCat"); -} - -function languagesettings(sel){ - if (sel.checked) - Services.prefs.setCharPref(sel.id,sel.value); - else - Services.prefs.clearUserPref(sel.id); -} - -function fontsettings(sel){ - if (sel.checked) - Services.prefs.setIntPref(sel.id,sel.value); - else - Services.prefs.clearUserPref(sel.id); -} - -function jssettings(sel){ - if (sel.checked){ - Services.prefs.setBoolPref(sel.id, !sel.checked);} - else - Services.prefs.clearUserPref(sel.id); -} - -function prepare(){ - -try { -Services.prefs.getCharPref("extensions.icecathome.intl.accept_languages"); -}catch(err){ -Services.prefs.setCharPref("intl.accept_languages","en-US, en"); -Services.prefs.setCharPref("extensions.icecathome.intl.accept_languages","en-US, en"); -} - -srchsvc = Components.classes["@mozilla.org/browser/search-service;1"].getService(Components.interfaces.nsIBrowserSearchService); -currentEngine = srchsvc.defaultEngine.name; -document.getElementById("searchLogoContainer").innerHTML=currentEngine+":"; - -/*try { -Services.prefs.getIntPref("extensions.icecathome.browser.display.use_document_fonts"); -}catch(err){ -Services.prefs.setIntPref("browser.display.use_document_fonts",0); -Services.prefs.setIntPref("extensions.icecathome.browser.display.use_document_fonts",0); -}*/ - - var f = document.createElement("form"); - - var extensions=[ -["jid1-KtlZuoiikVfFew@jetpack","Block execution of non-free <a target=\"_blank\" href=\"http://www.gnu.org/software/librejs/\">JavaScript</a> <em>(experimental)</em>"], -["spyblock@gnu.org","Block privacy <a target=\"_blank\" href=\"https://easylist.adblockplus.org\">trackers</a>"], -["torproxy@trisquel","Use <a target=\"_blank\" href=\"https://www.torproject.org/\">Tor</a> when in Private Mode"], -["https-everywhere@eff.org","Get redirected to <a target=\"_blank\" href=\"https://www.eff.org/https-everywhere/faq\">HTTPS</a> when possible"], -] - - for (var i=0; i<extensions.length; ++i) { - var ex=extensions[i][0]; - - var tmp = document.createElement("input"); - tmp.setAttribute('type',"checkbox"); - tmp.setAttribute('id', ex); - tmp.setAttribute('onclick','flip(this);'); - - var label = document.createElement("label"); - label.htmlFor = ex ; - label.id = ex+'label'; - label.appendChild(document.createTextNode('')); - - f.appendChild(tmp); - f.appendChild(label); - - document.getElementById("addonsform").appendChild(f); - } - - var tmp = document.createElement("input"); - tmp.setAttribute('type',"checkbox"); - tmp.setAttribute('id', "intl.accept_languages"); - tmp.setAttribute('value', "en-US, en"); - tmp.setAttribute('onclick','languagesettings(this);'); - value=Services.prefs.getCharPref("intl.accept_languages"); - tmp.checked=(value=="en-US, en"); - var label = document.createElement("label"); - label.htmlFor = "intl.accept_languages" ; - label.id = "intl.accept_languageslabel"; - label.appendChild(document.createTextNode("Request pages in English")); - f.appendChild(tmp); - f.appendChild(label); - f.appendChild(document.createElement("br")); - document.getElementById("addonsform").appendChild(f); - - var tmp = document.createElement("input"); - tmp.setAttribute('type',"checkbox"); - tmp.setAttribute('id', "browser.display.use_document_fonts"); - tmp.setAttribute('value', 0); - tmp.setAttribute('onclick','fontsettings(this);'); - value=Services.prefs.getIntPref("browser.display.use_document_fonts"); - tmp.checked=(value==0); - var label = document.createElement("label"); - label.htmlFor = "browser.display.use_document_fonts" ; - label.id = "browser.display.use_document_fontslabel"; - label.appendChild(document.createTextNode("Use system fonts")); - f.appendChild(tmp); - f.appendChild(label); - f.appendChild(document.createElement("br")); - document.getElementById("addonsform").appendChild(f); - - var tmp = document.createElement("input"); - tmp.setAttribute('type',"checkbox"); - tmp.setAttribute('id', "javascript.enabled"); - tmp.setAttribute('value', 0); - tmp.setAttribute('onclick','jssettings(this);'); - value=Services.prefs.getBoolPref("javascript.enabled"); - tmp.checked=(value==0); - var label = document.createElement("label"); - label.htmlFor = "javascript.enabled" ; - label.id = "javascript.enabledlabel"; - label.appendChild(document.createTextNode("Disable JavaScript")); - f.appendChild(tmp); - f.appendChild(label); - f.appendChild(document.createElement("br")); - document.getElementById("addonsform").appendChild(f); - - var tmp = document.createElement("input"); - tmp.setAttribute('type',"checkbox"); - tmp.setAttribute('id', "network.http.referer.spoofSource"); - tmp.setAttribute('value', 0); - tmp.setAttribute('onclick','jssettings(this);'); - value=Services.prefs.getBoolPref("network.http.referer.spoofSource"); - tmp.checked=(value==1); - var label = document.createElement("label"); - label.htmlFor = "network.http.referer.spoofSource" ; - label.id = "network.http.referer.spoofSourcelabel"; - label.appendChild(document.createTextNode("Spoof Referers")); - f.appendChild(tmp); - f.appendChild(label); - f.appendChild(document.createElement("br")); - document.getElementById("addonsform").appendChild(f); - - var tmp = document.createElement('a'); - var linkText = document.createTextNode("Advanced Configuration"); - tmp.appendChild(linkText); - tmp.title = "Advanced Configuration"; - tmp.href = "about:config"; - f.appendChild(document.createElement("br")); - document.getElementById("addonsform").appendChild(tmp); - - for (var i=0; i<extensions.length; ++i) { - var ex=extensions[i][0]; - var addonObj=-1; - - AddonManager.getAddonByID(ex, function(addon) { - addonObj=addon; - }); - - var thread = Components.classes["@mozilla.org/thread-manager;1"].getService().currentThread; - while ( addonObj == -1) - thread.processNextEvent(true); - if ( addonObj != null){ - document.getElementById(ex).checked = addonObj.isActive; - //document.getElementById(ex+'label').innerHTML = addonObj.name; - document.getElementById(ex+'label').innerHTML = extensions[i][1]+"<br/>"; - }else{ - document.getElementById(ex).style.display='none'; - document.getElementById(ex+'label').style.display='none'; - } - } -} - -function onSearchSubmit(){ - - srchsvc = Components.classes["@mozilla.org/browser/search-service;1"].getService(Components.interfaces.nsIBrowserSearchService); - currentEngine = srchsvc.defaultEngine; - var selectedText=document.getElementById("searchText").value; - submission = currentEngine.getSubmission(selectedText,null); - window.location = submission.uri.spec; - -} - -]]> -</script> - - </head> - - <body dir="&locale.dir;" onload="prepare();"> - - <div id="box"> - <div id="box1"> - <div id="topSection"> - <img src="chrome://icecathome/content/aboutIceCat/about-logo.png"/><br/><br/> - - <div id="searchContainer"> - <form name="searchForm" id="searchForm" onsubmit="onSearchSubmit(); return false"> - <div id="searchLogoContainer"></div> - <input type="text" name="q" value="" id="searchText" maxlength="256" - autofocus="autofocus" dir="auto"/> - <input id="searchSubmit" type="submit" value="Search"/> - </form> - </div> - </div> - </div> - - <div id="box2"> - <div id="block-horizontal-margin"> - <div class="block-side-margin"></div> - <div id="addonsform"> - <p>The <a target="_blank" href="http://www.gnu.org/software/gnuzilla/">GNU IceCat</a> web browser protects your <a target="_blank" href="http://www.gnu.org/philosophy/free-sw.html">freedom</a> and your privacy!</p> - </div> - <div class="block-side-margin"></div> - </div> - </div> - - <div id="box3"> - <div id="footer"> - <p ><a class="titlelink" href="https://www.gnu.org">GNU's not UNIX!</a></p> - <ul style="font-size:0.8em"> - <li><a href="https://gnu.org/gnu/gnu.html">About GNU</a></li> - <li><a href="https://gnu.org/philosophy/philosophy.html">Philosophy</a></li> - <li><a href="https://gnu.org/licenses/licenses.html">Licenses</a></li> - <li><a href="https://gnu.org/education/education.html">Education</a></li> - <li><a href="https://gnu.org/software/software.html">Software</a></li> - <li><a href="https://gnu.org/doc/doc.html">Documentation</a></li> - <li><a href="https://gnu.org/help/help.html">Help GNU</a></li> - </ul> - </div> - </div> - </div> - - </body> -</html> - diff --git a/data/extensions/abouticecat@gnu.org/chrome/locale/en/aboutIceCat.dtd b/data/extensions/abouticecat@gnu.org/chrome/locale/en/aboutIceCat.dtd deleted file mode 100644 index 55efd56..0000000 --- a/data/extensions/abouticecat@gnu.org/chrome/locale/en/aboutIceCat.dtd +++ /dev/null @@ -1 +0,0 @@ -<!ENTITY aboutIceCat.title "About IceCat"> diff --git a/data/extensions/abouticecat@gnu.org/chrome/locale/es/aboutIceCat.dtd b/data/extensions/abouticecat@gnu.org/chrome/locale/es/aboutIceCat.dtd deleted file mode 100644 index 2412c09..0000000 --- a/data/extensions/abouticecat@gnu.org/chrome/locale/es/aboutIceCat.dtd +++ /dev/null @@ -1 +0,0 @@ -<!ENTITY aboutIceCat.title "Acerca de IceCat"> diff --git a/data/extensions/abouticecat@gnu.org/components/aboutIceCat.js b/data/extensions/abouticecat@gnu.org/components/aboutIceCat.js deleted file mode 100644 index 6b32cc1..0000000 --- a/data/extensions/abouticecat@gnu.org/components/aboutIceCat.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - -Copyright (c) 2014, Ruben Rodriguez <ruben@gnu.org> -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 deleted file mode 100644 index e69de29..0000000 --- a/data/extensions/abouticecat@gnu.org/defaults/preferences/preferences.js +++ /dev/null diff --git a/data/extensions/abouticecat@gnu.org/install.rdf b/data/extensions/abouticecat@gnu.org/install.rdf deleted file mode 100644 index f315dd2..0000000 --- a/data/extensions/abouticecat@gnu.org/install.rdf +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0"?> -<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:em="http://www.mozilla.org/2004/em-rdf#"> - - <Description about="urn:mozilla:install-manifest"> - <em:name>IceCatHome</em:name> - <em:creator>Ruben Rodriguez</em:creator> - <em:id>abouticecat@gnu.org</em:id> - <em:version>1.0</em:version> - <em:description>Custom about:home page with privacy feature selector</em:description> - <em:updateURL>https://127.0.0.1/</em:updateURL> - <em:multiprocessCompatible>true</em:multiprocessCompatible> -<!-- <em:updateKey></em:updateKey> --> - <!-- firefox --> - <em:targetApplication> - <Description> - <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> - <em:minVersion>30.0</em:minVersion> - <em:maxVersion>10000.0</em:maxVersion> - </Description> - </em:targetApplication> - </Description> -</RDF> |