Add bookmarks count, date, and image resolution to pixiv images; supports user pages, recommendation lists, and ranking pages; supports identifying list class names to adapt to website changes
For first-time use, please add the selector in the right-click menu and then refresh the page to apply the changes. If you find the script becomes ineffective later, please re-add it, or you can clear the old one before adding. Each script update updates the selectors, but I won't update the script when the selectors change, so there's no guarantee the selectors will still work when you install it.
Currently supports the bookmarks count, create date, and resolution. The character preceding the resolution is an image orientation identifier: = when the difference between the image's width and height in pixels is less than or equal to 20%, and | or – when it's greater than 20%.
There are CSS settings for the inserted elements at the beginning of the script. If you are not satisfied with the style, please modify the code here.
You can modify elementConfigs to add more information. Fetch the JSON file from https://www.pixiv.net/ajax/illust/{pid}, find the data under the body, and fill the key names of the data you want into keys. Then, fill in getHTMLValueNum (1 or 2) according to the number of keys. Currently, only inserting aditional information below the image is supported; only the original bookmarks count can be inserted within the image. Therefore, you can only write group: 'footer' in the appended configuration object. Please refer to the existing examples for writing other configuration information. If you don't understand, ask AI.