mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-02-04 20:04:27 -06:00
Stash Random Button Plugin
https://discourse.stashapp.cc/t/randombutton/1809
Adds a "Random" button to the image & scenes page to quickly navigate to a random scene.
Features
- Adds a "Random" button to the Stash UI.
- Selects a random scene via GraphQL query.
- Lightweight, no external dependencies.
Installation
-
Download the Plugin
git clone https://github.com/Nightyonlyy/StashRandomButton.git -
Copy to Stash Plugins Folder
- Move the
StashRandomButtonfolder to:- Windows:
%USERPROFILE%\.stash\plugins\ - Linux/Mac:
~/.stash/plugins/
- Windows:
- Ensure it contains:
random-button.jsrandom-button.ymlrandom_button.css
- Move the
-
Reload Plugins
- In Stash, go to
Settings > Pluginsand click "Reload Plugins". - The button should appear on those pages.
- In Stash, go to
Usage
Click the "Random" button in the navigation bar to jump to a random image or scene depending on the tab.
Requirements
- Stash version v0.27.2 or higher.
Development
- Written in JavaScript using the Stash Plugin API.
- Edit
random-button.jsto customize and reload plugins in Stash.