Created
December 14, 2020 07:44
-
-
Save mdamien/d9af3d9f2d047a75f2e16ee93e14ac78 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
document.querySelectorAll('.list-article-consommation').forEach(article => { | |
count = 1 | |
article.querySelectorAll('.content p').forEach(el => { | |
if (!el.innerText.trim()) return | |
el.innerHTML = '<i>('+ count +')</i> ' + el.innerHTML | |
count += 1 | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment