Commit 16105286 authored by peachaku's avatar peachaku
Browse files

clean URL

parent 884b6c41
const DEFAULT_BASE_URL = "http://lama.univ-amu.fr/login?url=$@"; const DEFAULT_BASE_URL = "http://ezproxy.univ-abc.fr/login?url=$@";
function transformUrl(url) { function transformUrl(url) {
var base = localStorage["base_url"]; var base = localStorage["base_url"];
......
{ {
"name": "lama", "name": "lama",
"description": "Accès hors campus aux ressources documentaires en ligne de l'Université d'Aix-Marseille", "description": "Accès hors campus aux ressources électroniques documentaires de l'Université d'Aix-Marseille",
"version": "0.2", "version": "0.2",
"manifest_version": 2, "manifest_version": 2,
"permissions": [ "http://*/*", "https://*/*", "tabs" ], "permissions": [ "http://*/*", "https://*/*", "tabs" ],
......
...@@ -2,7 +2,7 @@ transformUrl = { ...@@ -2,7 +2,7 @@ transformUrl = {
1: function () { 1: function () {
var l=gBrowser.currentURI.spec; var l=gBrowser.currentURI.spec;
gBrowser.loadURI(l.replace(l,'lama.univ-amu.fr/login?url='+l)); gBrowser.loadURI(l.replace(l,'ezproxy.univ-abc.fr/login?url='+l));
}, },
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
about="urn:mozilla:install-manifest" about="urn:mozilla:install-manifest"
em:name="lama" em:name="lama"
em:description="Accès hors campus aux ressources documentaires en ligne de l'Université d'Aix-Marseille" em:description="Accès hors campus aux ressources électroniques documentaires de l'Université d'Aix-Marseille"
em:creator="Laurent Lhuillier" em:creator="Laurent Lhuillier"
em:id="lama@univ-amu.fr" em:id="lama@univ-amu.fr"
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<Description <Description
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="4.0.*" em:minVersion="4.0.*"
em:maxVersion="27.*" /> em:maxVersion="45.*" />
</em:targetApplication> </em:targetApplication>
<em:type>2</em:type> <em:type>2</em:type>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment