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