anilist.co #63
Answered
by
tophf
jaideepheer
asked this question in
MPIV host rules
anilist.co
#63
-
|
I made a rule for anilist.co |
Beta Was this translation helpful? Give feedback.
Answered by
tophf
Sep 12, 2021
Replies: 2 comments 2 replies
-
|
Thanks, added to https://github.com/tophf/mpiv/wiki/Rules |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jaideepheer
-
|
I've improved the rule since then, this one works on more images where earlier one was failing. Requesting update. {"d": "anilist.co",
"e": "a.cover,a.avatar,a.user,a.name,a.media,a.character,a.favourite,div.avatar,div.image,a.image,.episode,.review-card,.cover-link",
"s": "var url = node.querySelector('img')?.src || node.getAttribute('data-src') || node.style.backgroundImage.split('\"')[1] || node.querySelector('div.banner')?.getAttribute('data-src') || node.parentElement.getAttribute('data-src'); return [url?.replace(/\\/(avatar|cover)\\/[^\\/]*/i,'/$1/large'), url]"
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, added to https://github.com/tophf/mpiv/wiki/Rules