Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Last active April 1, 2019 20:11
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 josephwegner/f17f9a2b2e996defa6cc877389cc3b2a to your computer and use it in GitHub Desktop.
Save josephwegner/f17f9a2b2e996defa6cc877389cc3b2a to your computer and use it in GitHub Desktop.
Self Assigned Fill Black
// ==UserScript==
// @name Self Assigned Label Color
// @namespace http://tampermonkey.net/
// @version 0.2.1
// @description Add color to the assignee label if it is assigned to me
// @author You
// @match https://support.heroku.com/tags/*
// @match https://support.heroku.com/inbox
// @match https://support.heroku.com/search*
// @grant none
// ==/UserScript==
document.querySelectorAll('.label-success').forEach(function(label) {
if(label.innerText === agent.const.current_user.display_name) {
label.style['background-color'] = 'black';
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment