Appends the actual DateTime to GitHub workflows
目前為
// ==UserScript==
// @name GitHub Actual Workflow Time
// @namespace CMG
// @version 0.1
// @description Appends the actual DateTime to GitHub workflows
// @author Ned Wilbur
// @match https://github.com/**/actions/workflows/*.yaml
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
displayDateTime();
// Attach change listener
for (const row of document.querySelectorAll('.js-updatable-content')) {
time.addEventListener('socket:message', displayDateTime)
}
})();
function displayDateTime() {
for (const time of document.querySelectorAll('relative-time')) {
time.shadowRoot.innerHTML = time.shadowRoot.innerHTML + '<br>' + time.getAttribute('title')
}
}