Add Custom Field Tag Filter plugin#727
Merged
Merged
Conversation
f403107 to
6ce9bad
Compare
Hides tags marked via a custom field from manual tag entry (scene editing)
and from scraper results. The marking lives on the tag in the stash
backend, so it is shared across browsers and survives clearing the
browser cache.
Disclosure: written with LLM assistance per the repo's LLM-assisted
contribution policy; reviewed and tested by me.
Link: stashapp/stash#2633 (comment)
6ce9bad to
42c133b
Compare
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.
Custom Field Tag Filter
Adds a new UI plugin that hides "meta-tags" from manual tag entry (when editing
scenes) and, optionally, from scraper results. Which tags are hidden is controlled
by a custom field on the tag — so the marking lives in the stash database
itself.
Why
This is a self-contained alternative to the existing
tag-filterplugin. Thatplugin stores the hidden-tag list in the browser's localStorage, so the list
is lost when you clear your browser cache or use a different browser, forcing you
to re-mark every tag. Storing the marking on the tag (via a custom field) means
it's shared across browsers and survives cache clears.
What it does
FindTagsForSelect)It does not hide tags from the
/tagspage, scenes that already have the tag,or the backend.
How it works
0gql-intercept,forbiddenConfig,wfke,fontawesome-js). It inlines a minimalfetchinterceptor and reads its own settings via GraphQL.
tag dropdown or scrape result is shown — then reused for the session. No
background polling, so simply browsing generates no extra traffic. This mirrors
Stash's own cache-first behavior (changes made elsewhere are picked up on reload).
Settings
Testing
marked tags remain visible on
/tags.the plugin (no extra traffic while browsing/scraping).
filtered is correctly stripped from the scrape results.
has a non-matching value are not filtered, while tags with the matching value
are filtered.
node validate.js).Disclosure
Written with LLM assistance per the repository's LLM-assisted contribution policy;
reviewed and tested by me, and I take full responsibility for the code.
Link: stashapp/stash#2633 (comment)