From 16f2defa530b36cae7da5e28b5eafef9138adba5 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Wed, 28 Jan 2015 22:16:14 +0100 Subject: Updated to v31.4.0ESR * Search form in about:icecat now searches in default search engine * Disabled accessibility.blockautorefresh * Replaced references to Open Source with Free Software where applicable * Added html5-video-everywhere v0.1.1 extension: https://github.com/lejenome/html5-video-everywhere * Updated LibreJS to 6.0.8 Build scripts updated to use pbuilder --- .../chrome/content/aboutIceCat/aboutIceCat.xhtml | 40 ++++++++++++++++------ 1 file changed, 30 insertions(+), 10 deletions(-) (limited to 'data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat') diff --git a/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml b/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml index a986feb..6ca4c6d 100644 --- a/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml +++ b/data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml @@ -67,18 +67,25 @@ box-shadow: 0px 0px 5px #888888; ul li { list-style:none; -background:#ddd; -border-radius:3px; -padding:3px 5px 3px 5px; -margin:5px; -box-shadow: 0px 2px 0 #ccc ; float:left; } ul li a{ font-weight:bold; -color:#666; 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{ @@ -137,6 +144,10 @@ 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){ @@ -242,6 +253,15 @@ Services.prefs.setIntPref("extensions.icecathome.browser.display.use_document_fo } } +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; + +} ]]> @@ -255,11 +275,11 @@ Services.prefs.setIntPref("extensions.icecathome.browser.display.use_document_fo
-
- + +
- + autofocus="autofocus" dir="auto"/> +
-- cgit v1.2.3