-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout de Corse Matin, La Tribune, L'Opinion, Nice-Matin, L'Orient-Le …
…Jour (#184) * Réparation bouton Le Point * Ajout de Corse Matin, La Tribune, L'Opinion, Nice-Matin * Rectification du formatage du code * Ajout L'Orient-Le Jour
- Loading branch information
1 parent
f3a240c
commit c5c47c5
Showing
13 changed files
with
222 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ ophirofox.zip | |
.DS_Store | ||
ophirofox.crx | ||
ophirofox.pem | ||
ophirofox-*.zip | ||
ophirofox-*.zip | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.ophirofox-europresse { | ||
background-color: #ffc612; | ||
font-family: "Roboto", sans-serif; | ||
padding: 2px 1em; | ||
font-size: 1.4rem; | ||
font-weight: 700; | ||
border-radius: 24px; | ||
margin-left: 1rem; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
async function createLink() { | ||
const a = await ophirofoxEuropresseLink(); | ||
a.classList.add(); | ||
return a; | ||
} | ||
|
||
function findPremiumBanner() { | ||
const title = document.querySelector('div.ml-2'); | ||
if (!title) return null; | ||
return title; | ||
} | ||
|
||
async function onLoad() { | ||
const premiumBanner = findPremiumBanner(); | ||
if (!premiumBanner) return; | ||
premiumBanner.after(await createLink()); | ||
} | ||
|
||
onLoad().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.ophirofox-europresse { | ||
background-color: #ffc612; | ||
font-family: "Roboto",sans-serif; | ||
padding: 2px 1rem; | ||
font-size: 15px; | ||
color: #163860; | ||
border-radius: 1px; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
async function createLink() { | ||
const a = await ophirofoxEuropresseLink(); | ||
a.classList.add(); | ||
return a; | ||
} | ||
|
||
function findPremiumBanner() { | ||
const title = document.querySelector('.facade-container'); | ||
if (!title) return null; | ||
const elems = title.querySelectorAll('span'); | ||
return [...elems].find((d) => d.textContent === 'Réservé aux abonnés'); | ||
} | ||
|
||
async function onLoad() { | ||
const premiumBanner = findPremiumBanner(); | ||
if (!premiumBanner) return; | ||
premiumBanner.after(await createLink()); | ||
} | ||
|
||
onLoad().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.ophirofox-europresse { | ||
background-color: #ffc612; | ||
font-family: serif; | ||
padding: 0.5rem 1.3rem; | ||
font-size: 1.3rem; | ||
font-weight: bold; | ||
vertical-align: middle; | ||
text-align: center; | ||
border-radius: 5px; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
async function createLink() { | ||
const a = await ophirofoxEuropresseLink(); | ||
a.classList.add(); | ||
return a; | ||
} | ||
|
||
function findPremiumBanner() { | ||
const title = document.querySelector('div.paywall'); | ||
if (!title) return null; | ||
return title; | ||
} | ||
|
||
async function onLoad() { | ||
const premiumBanner = findPremiumBanner(); | ||
if (!premiumBanner) return; | ||
const anchor = document.querySelector('.Article-date'); | ||
anchor.after(await createLink()); | ||
} | ||
|
||
onLoad().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.ophirofox-europresse { | ||
font-size: 10px; | ||
font-family: "AktivGrotesk-Medium", Helvetica, Arial, sans-serif; | ||
text-transform: uppercase; | ||
color: #8f7f54; | ||
width: auto; | ||
height: 26px; | ||
padding-left: 8px; | ||
padding-right: 8px; | ||
background-color: #ffdf8a; | ||
display: inline-block; | ||
text-align: center; | ||
vertical-align: middle; | ||
margin: 0 0 0 10px; | ||
line-height: 26px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
async function createLink() { | ||
const a = await ophirofoxEuropresseLink(); | ||
a.classList.add(); | ||
return a; | ||
} | ||
|
||
function findPremiumBanner() { | ||
const title = document.querySelector('article.main.premium'); | ||
if (!title) return null; | ||
return title; | ||
} | ||
|
||
async function onLoad() { | ||
const premiumBanner = findPremiumBanner(); | ||
if (!premiumBanner) return; | ||
const anchor = premiumBanner.querySelector('h1'); | ||
anchor.appendChild(await createLink()); | ||
} | ||
|
||
onLoad().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.ophirofox-europresse { | ||
background-color: #faec70; | ||
font-family: "Raleway", Arial, Helvetica, sans-serif; | ||
margin-left: 2em; | ||
padding: 2px 1em; | ||
font-size: 1.4rem; | ||
font-weight: bold; | ||
border-radius: 24px; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
async function createLink() { | ||
const a = await ophirofoxEuropresseLink(); | ||
a.classList.add(); | ||
return a; | ||
} | ||
|
||
function findPremiumBanner() { | ||
const title = document.querySelector('div.header-subscriber'); | ||
if (!title) return null; | ||
return title; | ||
} | ||
|
||
async function onLoad() { | ||
const premiumBanner = findPremiumBanner(); | ||
if (!premiumBanner) return; | ||
premiumBanner.appendChild(await createLink()); | ||
} | ||
|
||
onLoad().catch(console.error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters