diff --git a/enhancements/animeRequests.js b/enhancements/animeRequests.js new file mode 100644 index 0000000..2844115 --- /dev/null +++ b/enhancements/animeRequests.js @@ -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); +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index 33f02aa..d4623e9 100644 --- a/manifest.json +++ b/manifest.json @@ -15,6 +15,15 @@ "utils/aniwatchCore.js" ], "run_at": "document_start" + }, + { + "matches": [ + "*://aniwatch.me/requests" + ], + "js": [ + "enhancements/animeRequests.js" + ], + "run_at": "document_end" } ] } \ No newline at end of file