Skip to content

Commit

Permalink
Restylage du bouton pour L'Est Républicain (#185)
Browse files Browse the repository at this point in the history
* 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

* Restylage bouton L'Est Républicain
  • Loading branch information
fmoncomble authored Jan 13, 2024
1 parent c5c47c5 commit 11be925
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions ophirofox/content_scripts/est-republicain.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
.ophirofox-europresse {
background-color: #F7DC6F;
color: #695106;
font-family: "Merriweather Sans Variable","Merriweather Sans","Lucida Grande","Century Gothic",Arial,sans-serif;
padding: 1em;
vertical-align: middle;
border-radius: 0.5rem;
display: inline-block;
border-radius: 3px;
background-color: #f9dc00;
}
4 changes: 2 additions & 2 deletions ophirofox/content_scripts/est-republicain.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
async function createLink() {
const a = await ophirofoxEuropresseLink();
a.classList.add();
a.classList.add('bt_special');
return a;
}

Expand All @@ -16,7 +16,7 @@ async function onLoad() {
const premiumBanner = findPremiumBanner();
if (!premiumBanner) return;
const head = document.querySelector("h1");
head.before(await createLink());
head.after(await createLink());
}

onLoad().catch(console.error);
Expand Down

0 comments on commit 11be925

Please sign in to comment.