A userscript that allow you to see ISO date when you focus on dates on github.com
Install from gist.
// ==UserScript== | |
// @name ISO Time on focus on github.com | |
// @version 1.1 | |
// @description A userscript that allow you to see ISO date when you focus on dates on github.com | |
// @author Dobrosław Żybort | |
// @namespace https://github.com/matrixik | |
// @match https://github.com/* | |
// @match https://gist.github.com/* | |
// @run-at document-end | |
// @grant none | |
// @downloadURL https://gist.github.com/matrixik/7bb0d7a290c66e6de29d183c4a38424d/raw/github-time.user.js | |
// ==/UserScript== | |
const rts = document.querySelectorAll("relative-time"); | |
rts.forEach((rt) => { | |
// BUG: Replacing node is not working | |
// node = rt.cloneNode(true); | |
// node.setAttribute("format", "YYYY-MM-DD HH:mm:ss z"); | |
// rt.replaceWith(node); | |
rt.title = rt.getAttribute("datetime"); | |
}); |
Hahs