Commit fd9866b1 authored by bibliogum's avatar bibliogum
Browse files

amo-play

parent 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

424 Bytes | W: | H:

chrome/lama@univ-amu.fr/button.png

383 Bytes | W: | H:

chrome/lama@univ-amu.fr/button.png
chrome/lama@univ-amu.fr/button.png
chrome/lama@univ-amu.fr/button.png
chrome/lama@univ-amu.fr/button.png
  • 2-up
  • Swipe
  • Onion skin
{
"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",
......
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