Created
January 31, 2024 08:02
-
-
Save inigomarquinez/55e8ecf0e51933cd99d0d20756d19e85 to your computer and use it in GitHub Desktop.
Script to change relative dates to absoulte dates in GitHub
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
$$('relative-time').forEach(relative => { | |
relative.shadowRoot.textContent = `${relative.textContent} (${relative.getAttribute('title')})`; | |
relative.textContent = `${relative.textContent} (${relative.getAttribute('title')})`; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment