diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2015-01-28 22:16:14 +0100 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2015-01-28 22:16:14 +0100 |
commit | 16f2defa530b36cae7da5e28b5eafef9138adba5 (patch) | |
tree | c1415ef31bf1e96da1674aec2fc2c580c87d9e08 /data/extensions/abouticecat@gnu.org/chrome/content | |
parent | 763c090c20c60c13f9b6f50b953323a237fd778a (diff) |
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
Diffstat (limited to 'data/extensions/abouticecat@gnu.org/chrome/content')
-rw-r--r-- | data/extensions/abouticecat@gnu.org/chrome/content/aboutIceCat/aboutIceCat.xhtml | 40 |
1 files changed, 30 insertions, 10 deletions
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; + +} ]]> </script> @@ -255,11 +275,11 @@ Services.prefs.setIntPref("extensions.icecathome.browser.display.use_document_fo <img src="chrome://branding/content/about-logo.png"/> <div id="searchContainer"> - <form name="searchForm" id="searchForm" action="https://duckduckgo.com/html/"> - <input type="hidden" name="t" value="gnu"/> + <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"/> - <input id="searchSubmit" type="submit" value="&abouthome.searchEngineButton.label; DuckDuckGO"/> + autofocus="autofocus" dir="auto"/> + <input id="searchSubmit" type="submit" value="&abouthome.searchEngineButton.label;"/> </form> </div> |