Skip to content

Instantly share code, notes, and snippets.

@kyanny
Last active January 13, 2016 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyanny/eb9e0d7c1f7ccbfd9c6c to your computer and use it in GitHub Desktop.
Save kyanny/eb9e0d7c1f7ccbfd9c6c to your computer and use it in GitHub Desktop.
GitHub issue highlighter for easy visual categorization
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