Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trisquel
package-helpers
Commits
b4cdaa2f
Commit
b4cdaa2f
authored
10 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
about:abrowser dynamic search engine, fixes #13112
parent
21dfcbc9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
helpers/DATA/firefox/aboutabrowser@trisquel.info/chrome/content/aboutAbrowser/aboutAbrowser.xhtml
+39
-13
39 additions, 13 deletions
...uel.info/chrome/content/aboutAbrowser/aboutAbrowser.xhtml
helpers/make-firefox
+1
-1
1 addition, 1 deletion
helpers/make-firefox
with
40 additions
and
14 deletions
helpers/DATA/firefox/aboutabrowser@trisquel.info/chrome/content/aboutAbrowser/aboutAbrowser.xhtml
+
39
−
13
View file @
b4cdaa2f
...
...
@@ -52,7 +52,7 @@ background-color:#fff;
font-size
:
14px
;
padding
:
10px
25px
20px
25px
;
border-radius
:
5px
;
box-shadow
:
0
0px
5
px
hsla
(
0
,
0%
,
0%
,
.3
)
inset
;
box-shadow
:
0
0px
2
px
hsla
(
0
,
0%
,
0%
,
.3
)
inset
;
}
.block-side-margin
{
...
...
@@ -67,18 +67,25 @@ box-shadow: 0 0px 5px hsla(0,0%,0%,.3) inset;
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
;
}
.titlelink
{
...
...
@@ -95,7 +102,12 @@ display: -moz-box;
width
:
100%
;
background-color
:
hsla
(
0
,
0%
,
0%
,
.03
);
border-top
:
1px
solid
hsla
(
0
,
0%
,
0%
,
.03
);
box-shadow
:
0
2px
5px
hsla
(
0
,
0%
,
0%
,
.1
)
inset
,
0
-1px
0
hsla
(
0
,
0%
,
100%
,
.25
);
box-shadow
:
0
-1px
2px
hsla
(
0
,
0%
,
0%
,
.1
)
inset
,
0
-1px
0
hsla
(
0
,
0%
,
100%
,
.25
);
}
#searchLogoContainer
{
color
:
#888
;
text-shadow
:
0
1px
0
#fff
;
}
</style>
...
...
@@ -143,6 +155,10 @@ function jssettings(sel){
function
prepare
(){
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.getCharPref("extensions.abrowserhome.intl.accept_languages");
}catch(err){
...
...
@@ -255,6 +271,15 @@ Services.prefs.setIntPref("extensions.abrowserhome.browser.display.use_document_
}
}
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>
...
...
@@ -266,13 +291,14 @@ Services.prefs.setIntPref("extensions.abrowserhome.browser.display.use_document_
<div
class=
"spacer"
/>
<div
id=
"topSection"
>
<img
src=
"chrome://branding/content/about-logo.png"
/>
<br/>
<br/>
<div
id=
"searchContainer"
>
<form
name=
"searchForm"
id=
"searchForm"
action=
"https://duckduckgo.com/
"
>
<
input
type=
"hidden"
name=
"t"
value=
"trisquel"
/
>
<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>
...
...
This diff is collapsed.
Click to expand it.
helpers/make-firefox
+
1
−
1
View file @
b4cdaa2f
...
...
@@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION
=
3
5
VERSION
=
3
6
.
./config
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment