Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
emilie.lecorre
lama-addons
Commits
9e7b00a0
Commit
9e7b00a0
authored
Nov 22, 2016
by
peachaku
Browse files
firefox webextension
parent
16105286
Changes
8
Hide whitespace changes
Inline
Side-by-side
firefox/lama@univ-amu.fr/chrome.manifest
deleted
100644 → 0
View file @
16105286
content custombutton chrome/
style chrome://global/content/customizeToolbar.xul chrome://custombutton/content/button.css
# Firefox
overlay chrome://browser/content/browser.xul chrome://custombutton/content/button.xul
\ No newline at end of file
firefox/lama@univ-amu.fr/chrome/button.css
deleted
100644 → 0
View file @
16105286
#mybutton
{
list-style-image
:
url("chrome://custombutton/content/button.png")
;}
\ No newline at end of file
firefox/lama@univ-amu.fr/chrome/button.js
deleted
100644 → 0
View file @
16105286
transformUrl
=
{
1
:
function
()
{
var
l
=
gBrowser
.
currentURI
.
spec
;
gBrowser
.
loadURI
(
l
.
replace
(
l
,
'
ezproxy.univ-abc.fr/login?url=
'
+
l
));
},
}
\ No newline at end of file
firefox/lama@univ-amu.fr/chrome/button.png
deleted
100644 → 0
View file @
16105286
398 Bytes
firefox/lama@univ-amu.fr/chrome/button.xul
deleted
100644 → 0
View file @
16105286
<?xml version="1.0" encoding="UTF-8"?>
<
?xml-stylesheet type="text/css"
href="chrome://custombutton/content/button.css"?>
<!DOCTYPE overlay >
<overlay
id=
"custombutton-overlay"
xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<script
type=
"application/javascript"
src=
"chrome://custombutton/content/button.js"
/>
<script
type=
"application/javascript"
src=
"chrome://custombutton/content/init.js"
/>
<!-- Firefox -->
<toolbarpalette
id=
"BrowserToolbarPalette"
>
<toolbarbutton
id=
"mybutton"
/>
</toolbarpalette>
<!-- button details -->
<toolbarbutton
id=
"mybutton"
label=
"lama"
tooltiptext=
"Accès hors campus"
oncommand=
"transformUrl[1]()"
class=
"toolbarbutton-1 chromeclass-toolbar-additional custombutton"
/>
</overlay>
\ No newline at end of file
firefox/lama@univ-amu.fr/chrome/icon.png
deleted
100644 → 0
View file @
16105286
1.16 KB
firefox/lama@univ-amu.fr/chrome/init.js
deleted
100644 → 0
View file @
16105286
window
.
addEventListener
(
"
load
"
,
em_myextensionLoad
,
true
);
function
em_myextensionLoad
()
{
if
(
document
.
getElementById
(
"
mybutton
"
))
return
;
try
{
var
firefoxnav
=
document
.
getElementById
(
"
nav-bar
"
);
var
curSet
=
firefoxnav
.
currentSet
;
if
(
curSet
.
indexOf
(
"
mybutton
"
)
==
-
1
)
{
var
set
;
if
(
curSet
.
indexOf
(
"
urlbar-container
"
)
!=
-
1
)
set
=
firefoxnav
.
currentSet
+
"
,mybutton
"
;
else
set
=
curSet
.
replace
(
/urlbar-container/
,
"
mybutton,urlbar-container
"
);
firefoxnav
.
setAttribute
(
"
currentset
"
,
set
);
firefoxnav
.
currentSet
=
set
;
document
.
persist
(
"
nav-bar
"
,
"
currentset
"
);
try
{
BrowserToolboxCustomizeDone
(
true
);
}
catch
(
e
)
{
}
}
}
catch
(
e
)
{
}
}
firefox/lama@univ-amu.fr/install.rdf
deleted
100644 → 0
View file @
16105286
<?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=
"lama"
em:description=
"Accès hors campus aux ressources électroniques documentaires de l'Université d'Aix-Marseille"
em:creator=
"Laurent Lhuillier"
em:id=
"lama@univ-amu.fr"
em:version=
"0.2.1"
em:homepageURL=
""
em:iconURL=
"chrome://custombutton/content/icon.png"
>
<em:targetApplication>
<!-- Firefox -->
<Description
em:id=
"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion=
"4.0.*"
em:maxVersion=
"45.*"
/>
</em:targetApplication>
<em:type>
2
</em:type>
</Description>
</RDF>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment