Repository navigation
Conversation
… on the player (2.1.3)
nexalapp
force-pushed
the
themeswitch-first-pick-fix
branch
from
October 3, 2026 16:57
01482e3 to
2c408e5
Compare
This branch has not been deployed
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.
Five problems in Theme Switch, all reproducible on Stash v0.31:
applyCSStakes the!themebranch and callsaddStyleSheet(key, path). Plugin themes have nopath, so it requestsplugin/themeSwitch/assetsundefinedand never installs or enables the plugin. The radio shows the theme as selected but the page stays default; picking it a second time works.init()runs on everystash:locationevent (any page change, including changing a filter or sort, and once more on load) and re-applies active snippets throughapplyCSS, which treats an already-attached snippet as a click and removes it, savingactive: false. With "Blur NSFW images" on, every filter change and every refresh toggled the blur..jw-video,.jw-preview) from before Stash switched to video.js, so the video, its poster and the scrubber thumbnails stay sharp. Group (formerly movie), studio, image and gallery images were also missing; the "Un-blur on mouse over" snippet already listed them.This change:
setPluginsEnabledcall. Picking Default disables them all.init()only attaches what is missing: path-based themes and active snippets. It never toggles anything and makes no GraphQL calls..video-js video,.video-js .vjs-tech,.video-js .vjs-poster,.video-js .vjs-poster img,.scrubber-item,.group-card-image,.studio-card-image,.image-imageand.gallery-imageto the blur snippet. The old JW Player selectors are kept. The player rules are!importantso player styles and themes can't undo them.?v=<plugin version>, so an update reaches users without clearing their cache.Testing
Tested on Stash v0.31.1 (Docker) in Chrome:
active: true, stylesheet attached once).node validate.js --cipasses.AI disclosure
This change was written with Claude (Anthropic) in Claude Code. I reviewed the code and tested it on my own Stash install before submitting.
🤖 Generated with Claude Code