Last active
January 13, 2016 13:38
-
-
Save kyanny/eb9e0d7c1f7ccbfd9c6c to your computer and use it in GitHub Desktop.
GitHub issue highlighter for easy visual categorization
This file contains 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
function Mark(ids, css) { | |
Array.prototype.forEach.call(ids, function(id) { | |
var elem = document.querySelector("#issue_"+id); | |
if (elem) { | |
elem.setAttribute("style", css); | |
} | |
}); | |
} | |
function Done(ids) { | |
Mark(ids, "opacity: 0.2"); | |
} | |
function Working(ids) { | |
Mark(ids, "background-color: orange; opacity: 0.7"); | |
} | |
Done( | |
[663,1018,1019,1129] | |
); | |
Working( | |
[1288,771] | |
); | |
console.log("Edit this bookmarklet at http://mrcoles.com/bookmarklet/"); | |
console.log("Script source code is here https://gist.github.com/kyanny/eb9e0d7c1f7ccbfd9c6c"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment