evazion/translate-pixiv-tags

The script fails at pixiv profile page for artist with 0 followers

Closed this issue · 3 comments

7nik commented

If a pixiv artist has 0 followers then there is no a._13OcQAQ element and the script can't add artist translation.
Example: https://www.pixiv.net/member.php?id=13167207 a.k.a. berryverrine on the Danbooru.

Fixed by switching to use the profile image element:

image

There's less space here, though, so sometimes long names have to linewrap.

7nik commented

Why not add the link after user name?
asyncAddTranslatedArtists("._2VLnXNk", "._2VLnXNk", ()=>window.location.href.match(/[?&]id=(\d+)/)[1]);
And a little of css for better look
#ex-pixiv ._2qMhDQk { flex-direction: column; align-items: flex-start; }
image

Yeah, I like that better. Moved it there in 45d9760.