#6 Changed " to '

This commit is contained in:
Serraniel 2020-07-29 11:35:51 +02:00
parent 824e368e69
commit 7e21fbdf05
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
2 changed files with 7 additions and 7 deletions

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';