#1 Change star color to primary color when a request is followed

This commit is contained in:
Serraniel 2020-04-25 22:23:02 +02:00
parent ebfc134e3d
commit 17286e3bdc
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,11 @@
const starIcon = "star";
executeAfterPreload(changeFollowedStarColor);
function changeFollowedStarColor() {
// find stars
let followedItems = Array.from(document.querySelectorAll("i")).filter(i => i.innerText == starIcon);
// change color
followedItems.forEach(item => item.style.color = aniBlue);
}

View file

@ -15,6 +15,15 @@
"utils/aniwatchCore.js" "utils/aniwatchCore.js"
], ],
"run_at": "document_start" "run_at": "document_start"
},
{
"matches": [
"*://aniwatch.me/requests"
],
"js": [
"enhancements/animeRequests.js"
],
"run_at": "document_end"
} }
] ]
} }