-
-
Notifications
You must be signed in to change notification settings - Fork 276
feat: add Queue Repeat extension #1148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+486
−0
Closed
Changes from 8 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
76894fc
Create queue-repeat.js
Malikeq 7c65884
Add files via upload
Malikeq e551f67
Update queue-repeat.js
Malikeq fa19ab9
Prevent concurrent polling in queue watcher
Malikeq fc6e355
Update README.md
Malikeq 8053899
Update queue-repeat.js
Malikeq 30855ab
Update queue-repeat.js
Malikeq bbd7b8a
Fix method call to addToQueue in queue-repeat.js
Malikeq 3c0281f
Update queue-repeat.js
Malikeq 27f1fde
Update queue-repeat.js
Malikeq 6d411ad
Update queue-repeat.js
Malikeq 74293e4
Update README.md
Malikeq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| + | ||
|
|
||
| # Queue Repeat — Spicetify Extension | ||
|
|
||
| A lightweight Spicetify extension that adds a **Queue Repeat** toggle button to Spotify's player bar. When enabled, every track that finishes playing from your queue is automatically re-added to the end of the queue — creating a seamless, infinite loop of your manually queued tracks. | ||
|
|
||
| ## Features | ||
|
|
||
| - **Toggle button** placed directly to the left of the Lyrics button in the bottom player bar | ||
| - **Active / Inactive state** — green highlight with an indicator dot when on, dimmed when off | ||
| - **Snapshot on activation** — when you press the button, the extension reads the current track and all queued tracks and registers them as the repeat list | ||
| - **Dynamic queue detection** — tracks added to the queue *after* enabling Queue Repeat are automatically picked up and included in the repeat loop (checked every 2 seconds) | ||
| - **Smart injection** — survives Spotify DOM re-renders via MutationObserver | ||
| - **No comments, no bloat** — clean production-ready code | ||
|
|
||
| ## How It Works | ||
| 1. Add tracks to "Next Up" (queue) as usual | ||
| 2. Press the Queue Repeat button in the player bar | ||
| 3. The extension captures: current track + all queued tracks → repeat list | ||
| 4. Each time a track from the repeat list finishes → it is re-added to the end of the queue | ||
| 5. Result: your queued tracks loop indefinitely | ||
| 6. Press the button again to turn it off (queue is left unchanged) | ||
|
|
||
| While active: | ||
| → Every 2 seconds, the extension checks for newly added tracks | ||
| → If a new track appears in the queue, it is added to the repeat list automatically | ||
|
|
||
| ## Preview | ||
|
|
||
| | State | Appearance | | ||
| |---|---| | ||
| | **Off** | Icon is dimmed (grey, 60% opacity) | | ||
| | **On** | Icon turns **green** + small green dot indicator beneath it | | ||
|
|
||
| Notifications: | ||
| - `Queue Repeat on (N tracks)` — shown when enabled | ||
| - `Queue Repeat: N new track(s) added` — shown when a new track is detected while active | ||
| - `Queue Repeat off` — shown when disabled | ||
|
|
||
| ## Installation | ||
| ### Steps | ||
|
|
||
| **1. Copy the extension file** | ||
|
|
||
| Place `queue-repeat.js` into your Spicetify extensions folder: | ||
|
|
||
| ``` | ||
| %APPDATA%\spicetify\Extensions\queue-repeat.js | ||
| ``` | ||
|
|
||
| **2. Register the extension** | ||
|
|
||
| ```powershell | ||
| spicetify config extensions queue-repeat.js | ||
| ``` | ||
|
|
||
| **3. Apply** | ||
|
|
||
| ```powershell | ||
| spicetify apply | ||
| ``` | ||
|
|
||
| Spotify will restart automatically with the extension active. | ||
|
|
||
| --- | ||
|
|
||
| ## Uninstall | ||
|
|
||
| ```powershell | ||
| spicetify config extensions queue-repeat.js- | ||
| spicetify apply | ||
| ``` | ||
|
|
||
| Then delete the file from the Extensions folder. | ||
|
|
||
|
|
||
| ## File Structure | ||
|
|
||
| ``` | ||
| Extensions/ | ||
| └── queue-repeat.js ← the extension (single file, no dependencies) | ||
| ``` | ||
|
|
||
| --- | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "name": "Queue Repeat", | ||
| "description": "Loop tracks added to the manual queue", | ||
| "main": "queue-repeat.js", | ||
| "authors": ["Malik"], | ||
| "readme": "README.md", | ||
| "version": "1.0.0", | ||
| "preview": "Foto.png" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.