Skip to content

Commit 525c335

Browse files
authored
Update GitHub projects - highlight my user.user.js
Allow highlighting if not the only assignee to a card
1 parent 652e5d9 commit 525c335

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name GitHub projects - highlight my user
33
// @namespace https://www.wildfireinternet.co.uk/
4-
// @version 0.1
4+
// @version 0.2
55
// @description background colour change for my user's tasks ;D
66
// @author Andrew
77
// @match https://github.com/*/*/projects/*
@@ -11,8 +11,10 @@
1111
(function() {
1212
'use strict';
1313

14+
var myUsername = "stilliard"; // Replace "stilliard" with your username
15+
1416
var style = document.createElement('style');
15-
style.innerHTML = 'article[data-card-assignee="\\[\\"stilliard\\"\\]"] { background-color: #e3f9d4 !important; }';
17+
style.innerHTML = 'article[data-card-assignee*="' + myUsername + '"] { background-color: #2c2f29 !important; }';
1618
document.body.appendChild(style);
1719

1820
})();

0 commit comments

Comments
 (0)