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
fd9866b1
Commit
fd9866b1
authored
Jan 28, 2013
by
bibliogum
Browse files
amo-play
parent
e4884cb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
chrome/lama@univ-amu.fr/background.html
deleted
100644 → 0
View file @
e4884cb9
<html>
<head>
<script>
const
DEFAULT_BASE_URL
=
"
http://lama.univ-amu.fr/login?url=$@
"
;
function
transformUrl
(
url
)
{
var
base
=
localStorage
[
"
base_url
"
];
if
(
!
base
)
{
base
=
localStorage
[
"
base_url
"
]
=
DEFAULT_BASE_URL
;
}
if
(
base
.
indexOf
(
"
$@
"
)
>=
0
)
{
return
base
.
replace
(
"
$@
"
,
url
);
}
return
base
;
}
chrome
.
browserAction
.
onClicked
.
addListener
(
function
(
tab
)
{
chrome
.
tabs
.
update
(
tab
.
id
,
{
"
url
"
:
transformUrl
(
tab
.
url
)});
});
</script>
</head>
</html>
\ No newline at end of file
chrome/lama@univ-amu.fr/button.png
View replaced file @
e4884cb9
View file @
fd9866b1
424 Bytes
|
W:
|
H:
383 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
chrome/lama@univ-amu.fr/manifest.json
View file @
fd9866b1
{
"name"
:
"Accès distant AMU"
,
"description"
:
"Accès distant aux ressources électroniques de l'Université d'Aix-Marseille"
,
"version"
:
"0.1"
,
"version"
:
"0.1.1"
,
"manifest_version"
:
2
,
"permissions"
:
[
"http://*/*"
,
"https://*/*"
,
"tabs"
],
"update_url"
:
"http://tonsite.com/chrome/extensions/updates.xml"
,
"background_page"
:
"background.html"
,
"background"
:
{
"scripts"
:
[
"eventPage.js"
],
"persistent"
:
false
},
"icons"
:
{
"16"
:
"icon16.png"
,
"48"
:
"icon48.png"
,
...
...
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