#6 Changed " to '
This commit is contained in:
parent
824e368e69
commit
7e21fbdf05
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
const aniBlue = "#348fff";
|
||||
const aniBlue = '#348fff';
|
Loading…
Reference in a new issue