Skip to content

fix(pixiv-search-enhance): adapt to new search pathname#114

Open
LolipopJ wants to merge 1 commit intoAhaochan:masterfrom
LolipopJ:master
Open

fix(pixiv-search-enhance): adapt to new search pathname#114
LolipopJ wants to merge 1 commit intoAhaochan:masterfrom
LolipopJ:master

Conversation

@LolipopJ
Copy link
Contributor

当标签搜索包含条件时,目前的 Pixiv 前端使用了新的路由 /search?q=${TAG_NAME}&s_mode=tag&type=%{SEARCH_TYPE}

此 PR 兼容了新版本的标签搜索路由。例如,当访问 https://www.pixiv.net/tags/%E5%A4%A9%E7%AB%A5%E3%82%A2%E3%83%AA%E3%82%B9 时,如果选择 10000users入り,将正确跳转到 https://www.pixiv.net/search?q=%E5%A4%A9%E7%AB%A5%E3%82%A2%E3%83%AA%E3%82%B9%2010000users%E5%85%A5%E3%82%8A&p=1&s_mode=tag&type=illust_ugoira

Copilot AI review requested due to automatic review settings February 24, 2026 05:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adapts the Pixiv search enhancement script to work with Pixiv's new search URL format. Previously, Pixiv used /tags/TAG_NAME for tag searches, but when search conditions (like "10000users入り") are added, the new frontend now uses /search?q=TAG_NAME CONDITIONS&s_mode=tag&type=SEARCH_TYPE. The changes ensure that the user script correctly constructs URLs in this new format.

Changes:

  • Updated search URL construction to use the new /search?q=... format with proper query parameters
  • Adapted URL building logic to support both tag searches with and without additional search conditions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants