Greasy Fork

Greasy Fork is available in English.

Pixiv 显示每个插图的书签数量 (Gemini 修复版)

在搜索页面等显示每个插图的书签数量。由 Gemini AI 修复以适配 2026 年新版页面。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
林弘翰
日安装量
2
总安装量
55
评分
1 0 0
版本
6.1.2.1
创建于
2026-02-08
更新于
2026-05-03
大小
4.5 KB
许可证
MIT
适用于

🛠️ Fix Description (2026/02/09)

This script is a fixed version based on the original work by 7945: Pixiv Show bookmark count.

Changes in this version:

  • Restored Functionality: Fixed the issue where bookmark counts were not displaying due to Pixiv's updated web framework and randomized class names.
  • AI-Assisted Fix: The selector logic and code optimization were implemented with the help of Google Gemini AI to ensure stability with the 2026 layout.
  • Performance Optimization: Refined the MutationObserver logic to prevent redundant API requests while scrolling.

🛠️ 修正說明 (2026/02/09)

本腳本是基於原作者 7945 的作品 Pixiv Show bookmark count 進行的修復版本。

修復內容:

  • 功能修復:解決了因 Pixiv 官方更新網頁框架及隨機類名導致書籤數無法顯示的問題。
  • AI 協助修復:透過 Google Gemini AI 重新分析網頁結構並優化選擇器邏輯,確保在 2026 年新版介面穩定運作。
  • 效能優化:優化了滾動偵測邏輯,減少不必要的 API 請求。

Special thanks to the original author 7945! / 特別感謝原作者 7945!


⚠️ Note to the Community & Moderators

As a new member of the Greasy Fork community, I am still familiarizing myself with the conventions regarding "forking" and script redistribution.

  • This version was created solely because the original script is currently non-functional and hasn't been updated recently.
  • I have tried my best to credit the original author and state the modifications clearly.
  • If this publication violates any site rules or community guidelines, please kindly let me know, and I will take immediate action to correct or remove it.

⚠️ 致社群與管理員的說明

作為 Greasy Fork 的新使用者,我還在學習關於「衍生版本 (Fork)」的發布慣例與站內規範。

  • 發布此版本是因為原腳本目前已失效且一段時間未更新,希望能幫助到有需求的使用者。
  • 我已盡力標註原作者資訊並清楚說明修改細節。
  • 如有任何違規或不當之處,請不吝告知,我會立即配合修改或刪除腳本。

🛠️ Update Log (2026/05/03 - v6.1.2)

  • Search Page Fix: Added support for tag search pages (/tags/xxx/artworks). Pixiv updated the search results to a new grid layout (.col-span-2), causing the script to miss the elements. The selectors have been updated to adapt to this layout.
  • Link Correction: Fixed the incorrect original script URL in the description. Special thanks to user viviefirm for pointing this out and reporting the search page bug!

🛠️ 更新日誌 (2026/05/03 - v6.1.2)

  • 搜尋頁面修復:修復了在標籤搜尋頁面(/tags/xxx/artworks)不生效的問題。Pixiv 在搜尋結果頁面改用了全新的 Grid 排版(.col-span-2),導致腳本找不到對應的圖片容器。現已加入新版選擇器以完美適配。
  • 連結修正:修正了說明欄中原腳本連結錯誤的問題(之前誤將作者 ID 當作腳本 ID)。特別感謝使用者 viviefirm 的報錯與提醒!