#1 Change border color of own requests
This commit is contained in:
parent
df5240e17d
commit
604db7a723
|
@ -1,6 +1,7 @@
|
||||||
const starIcon = "star";
|
const starIcon = "star";
|
||||||
|
|
||||||
executeAfterPreload(changeFollowedStarColor);
|
executeAfterPreload(changeFollowedStarColor);
|
||||||
|
executeAfterPreload(changeOwnBorderColor);
|
||||||
|
|
||||||
function changeFollowedStarColor() {
|
function changeFollowedStarColor() {
|
||||||
// find stars
|
// find stars
|
||||||
|
@ -9,3 +10,17 @@ function changeFollowedStarColor() {
|
||||||
// change color
|
// change color
|
||||||
followedItems.forEach(item => item.style.color = aniBlue);
|
followedItems.forEach(item => item.style.color = aniBlue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function changeOwnBorderColor() {
|
||||||
|
// find items -> all
|
||||||
|
let requestItems = document.querySelectorAll("md-list-item");
|
||||||
|
|
||||||
|
// change border color if profile link is not "false"
|
||||||
|
requestItems.forEach(item => {
|
||||||
|
let profileLink = item.querySelectorAll("a[href*='/profile/']:not([href='/profile/false'])");
|
||||||
|
|
||||||
|
if (profileLink.length > 0) {
|
||||||
|
item.style.borderColor = aniBlue
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in a new issue