Skip to content

Commit

Permalink
Ajout du support du réseau interne de l'ENS
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Sep 16, 2020
1 parent c1624b2 commit a22bc62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions ophirofox/content_scripts/lemonde.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const BASE = 'https://nouveau-europresse-com.proxy.rubens.ens.fr'

function makeEuropresseUrl(lemondeUrl) {
const m = lemondeUrl.pathname.match(/(\d{4})\/(\d{2})\/(\d{2})\/.*?(\d+_\d+).html/);
if (!m) throw new Error("Format d'URL lemonde inconnu");
const target_url = new URL("https://nouveau-europresse-com.proxy.rubens.ens.fr/Search/Reading");
const target_url = new URL("https://nouveau.europresse.com/Search/Reading");
//target_url.searchParams.set("docKey", `news·${m[1]}${m[2]}${m[3]}·LMF·${m[4]}`);
target_url.searchParams.set("ophirofox_source", window.location);
//target_url.hash = "docText";
Expand Down
3 changes: 3 additions & 0 deletions ophirofox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
{
"matches": [
"https://nouveau.europresse.com/Search/Reading*",
"https://nouveau-europresse-com.proxy.rubens.ens.fr/Search/Reading*"
],
"js": [
Expand All @@ -28,6 +29,7 @@
},
{
"matches": [
"https://nouveau.europresse.com/Login*",
"https://nouveau-europresse-com.proxy.rubens.ens.fr/Login*"
],
"js": [
Expand All @@ -36,6 +38,7 @@
},
{
"matches": [
"https://nouveau.europresse.com/Search/ResultMobile*",
"https://nouveau-europresse-com.proxy.rubens.ens.fr/Search/ResultMobile*"
],
"css": [
Expand Down

0 comments on commit a22bc62

Please sign in to comment.