-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b56435
commit ceee3d2
Showing
3 changed files
with
35 additions
and
0 deletions.
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
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,25 @@ | ||
function extractKeywords() { | ||
return document.querySelector(".editoSocialBar__item[data-title]").dataset.title | ||
} | ||
|
||
async function createLink() { | ||
const a = await ophirofoxEuropresseLink(extractKeywords()); | ||
a.style = 'font-family: "arimo-bold",Arial,Helvetica,sans-serif; border-bottom: 2px solid #000; margin-left : 1rem' | ||
return a; | ||
} | ||
|
||
function findPremiumBanner() { | ||
const div = document.querySelector(".epPayWallTop"); | ||
if (!div) return null; | ||
console.log('all div', div) | ||
console.log('last child', div.lastElementChild) | ||
return elem = div.lastElementChild; | ||
} | ||
|
||
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