Feature/#6 requests page remove empty user #10

Merged
Serraniel merged 4 commits from feature/#6-requests-page-remove-empty-user into develop 2020-07-29 11:55:42 +02:00
2 changed files with 7 additions and 7 deletions
Showing only changes of commit 7e21fbdf05 - Show all commits

View file

@ -7,20 +7,20 @@ registerScript(node => {
});
function changeFollowedStarColor(node) {
const starIcon = "star";
const starIcon = 'star';
// find stars
let followedItems = Array.from(node.querySelectorAll("i")).filter(i => i.innerText.trim() === starIcon);
let followedItems = Array.from(node.querySelectorAll('i')).filter(i => i.innerText.trim() === starIcon);
// change color
followedItems.forEach(item => item.style.color = aniBlue);
}
function changeOwnBorderColor(node) {
const targetTagName = "MD-LIST-ITEM"; // tagName is upper case
const targetTagName = 'MD-LIST-ITEM'; // tagName is upper case
let updateFunc = item => {
let profileLink = item.querySelectorAll("a[href*='/profile/']:not([href='/profile/false'])");
let profileLink = item.querySelectorAll('a[href*="/profile/"]:not([href="/profile/false"])');
if (profileLink.length > 0) {
item.style.borderColor = aniBlue
@ -32,9 +32,9 @@ function changeOwnBorderColor(node) {
updateFunc(node);
} else {
// find items -> all
let requestItems = node.querySelectorAll("md-list-item");
let requestItems = node.querySelectorAll('md-list-item');
// change border color if profile link is not "false"
// change border color if profile link is not 'false'
requestItems.forEach(item => {
updateFunc(item);
});

View file

@ -1 +1 @@
const aniBlue = "#348fff";
const aniBlue = '#348fff';