Skip to content

Instantly share code, notes, and snippets.

@CodeBrauer
Created August 9, 2023 11:22
Show Gist options
  • Save CodeBrauer/e3d59aebd885c8b60a86818a02842dc3 to your computer and use it in GitHub Desktop.
Save CodeBrauer/e3d59aebd885c8b60a86818a02842dc3 to your computer and use it in GitHub Desktop.
In Jira Kanban boards own cards are highlighted yellow-ish to find your cards faster!
// ==UserScript==
// @name Jira highlight my kanban cards
// @namespace Violentmonkey Scripts
// @match https://*.atlassian.net/jira/software/c/projects/*/boards/*
// @grant none
// @version 1.0
// @author CodeBrauer
// @description In Jira Kanban boards own cards are highlighted yellow-ish to find your cards faster!
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net
// ==/UserScript==
(function() {
'use strict';
let userName = document.querySelector('.ghx-content-main meta[name="ajs-remote-user-fullname"]').getAttribute('content');
setInterval(function() {
document.querySelectorAll('.ghx-issue [alt="Assignee: ' + userName + '"]').forEach(function(avatar) {
avatar.closest(".ghx-issue").style.backgroundColor = '#ffe1a2'
});
}, 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment