Last active
June 16, 2022 16:23
-
-
Save JJTech0130/054e45e08578043d96bf1742afb4c248 to your computer and use it in GitHub Desktop.
Greasemonkey script that moves labels on GitHub issues in front of the title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub Labels Fixup | |
// @namespace https://jjtech.dev | |
// @description Moves labels on GitHub issues in front of the title | |
// @version 4.3 | |
// @require https://code.jquery.com/jquery-3.6.0.slim.min.js | |
// @match https://github.com/* | |
// @icon https://github.githubassets.com/pinned-octocat.svg | |
// @inject-into content | |
// ==/UserScript== | |
function updateIssueLabels() { | |
$('.IssueLabel').each(function(i, obj) { | |
$(obj).parent().insertBefore($(obj).parent().prev()) | |
}); | |
} | |
updateIssueLabels() | |
document.addEventListener("pjax:end", updateIssueLabels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changelog
Version 4.3
Version 4.2
Version 4.1
Version 4.0