Skip to content

Commit

Permalink
adaptation au nouveau site de l'huma
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Sep 22, 2023
1 parent a8b994d commit 5b60dc2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions ophirofox/content_scripts/humanite.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
async function createLink() {
const a = await ophirofoxEuropresseLink();

const div = document.createElement("div");
div.className = "field-name-field-news-auteur ophirofox-europresse";
div.appendChild(a);

return div;
a.className = "rubric t-header-small c-red ophirofox-europresse";
return a;
}

async function onLoad() {
const reserve = document.querySelector(".qiota_reserve");
const reserve = document.querySelector("main .single__categories .u-icon-32");
if (!reserve) return;
const auteurElem = document.querySelector(".group-ft-auteur-date-media");

const auteurElem = document.querySelector(".single__content__text__published");
if (!auteurElem) return;

auteurElem.appendChild(await createLink());
}

Expand Down

0 comments on commit 5b60dc2

Please sign in to comment.