Skip to content

Instantly share code, notes, and snippets.

@inigomarquinez
Created January 31, 2024 08:02
Show Gist options
  • Save inigomarquinez/55e8ecf0e51933cd99d0d20756d19e85 to your computer and use it in GitHub Desktop.
Save inigomarquinez/55e8ecf0e51933cd99d0d20756d19e85 to your computer and use it in GitHub Desktop.
Script to change relative dates to absoulte dates in GitHub
$$('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