fix(pixiv-search-enhance): adapt to new search pathname#114
Open
LolipopJ wants to merge 1 commit intoAhaochan:masterfrom
Open
fix(pixiv-search-enhance): adapt to new search pathname#114LolipopJ wants to merge 1 commit intoAhaochan:masterfrom
LolipopJ wants to merge 1 commit intoAhaochan:masterfrom
Conversation
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当标签搜索包含条件时,目前的 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。