#6 Changed " to '
This commit is contained in:
parent
824e368e69
commit
7e21fbdf05
|
@ -7,20 +7,20 @@ registerScript(node => {
|
||||||
});
|
});
|
||||||
|
|
||||||
function changeFollowedStarColor(node) {
|
function changeFollowedStarColor(node) {
|
||||||
const starIcon = "star";
|
const starIcon = 'star';
|
||||||
|
|
||||||
// find stars
|
// 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
|
// change color
|
||||||
followedItems.forEach(item => item.style.color = aniBlue);
|
followedItems.forEach(item => item.style.color = aniBlue);
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeOwnBorderColor(node) {
|
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 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) {
|
if (profileLink.length > 0) {
|
||||||
item.style.borderColor = aniBlue
|
item.style.borderColor = aniBlue
|
||||||
|
@ -32,9 +32,9 @@ function changeOwnBorderColor(node) {
|
||||||
updateFunc(node);
|
updateFunc(node);
|
||||||
} else {
|
} else {
|
||||||
// find items -> all
|
// 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 => {
|
requestItems.forEach(item => {
|
||||||
updateFunc(item);
|
updateFunc(item);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
const aniBlue = "#348fff";
|
const aniBlue = '#348fff';
|
Loading…
Reference in a new issue