Commit 3952a240 authored by Hermann Krumrey's avatar Hermann Krumrey

Fix script not starting on every anilist page

parent 6d416fc1
V 0.2.1:
- Fix script not starting on anilist home page
V 0.2.0:
- Various CI fixes
V 0.1.0:
......
{
"version": "0.2.0",
"version": "0.2.1",
"manifest_version": 2,
"name": "anilist-enhancer",
......@@ -12,7 +12,7 @@
"content_scripts": [
{
"matches": ["*://anilist.co/anime/*", "*://anilist.co/manga/*"],
"matches": ["*://anilist.co/*"],
"js": ["src/anilist-enhancer.js"]
}
],
......
......@@ -32,6 +32,11 @@ function main() {
if (document.getElementsByClassName("data").length === 0) {
// Continue
}
else if (
!window.location.href.includes("anilist.co/anime/") &&
!window.location.href.includes("anilist.co/manga/")) {
// Continue
}
else if (document.getElementById("anilist-enhancer-table") === null) {
loadData();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment