blob: 398313383adb6e89b9e94fb00e1c8c96d55add55 [file] [edit]
/* Utility functions */
// Change the authors credit to mapping contributors credit
// add postProcess: [ addPlatformMaintainers ] in respecConfig
// In AAMs to change Authors to Platform Mapping Maintainers in the header
function addPlatformMaintainers() {
document.querySelectorAll("div.head dt").forEach(function (node) {
if (node.textContent.trim() == "Authors:")
node.textContent = "Platform Mapping Maintainers:";
});
}
function fixContributors() {
document.querySelectorAll("#gh-contributors li a").forEach(function (node) {
if (node.textContent.indexOf("[bot]") > 0)
node.parentElement.parentElement.removeChild(node.parentElement);
});
}