soundcloud shuffle likes

Adds a shuffle play button to "Likes" and playlists

Author
bhackel
Daily installs
3
Total installs
2,752
Ratings
12 2 0
Version
1.7
Created
2019-11-29
Updated
2022-05-19
License
MIT
Applies to

SoundCloud Shuffle Likes

Adds a button to the Likes page and playlists that shuffles all tracks.

It took 86 seconds to load 1500 liked tracks, so about 17 tracks per second.

Check out my other script that disables autoplay, or search for the many other ones.
https://greasyfork.org/en/scripts/388427-soundcloud-disable-autoplay-station

Current Issues/Improvements:
-add a usage guide
-if the user switches browser tabs, tracks inconsistently load in the background.

Scrapped Ideas
-use not a loop for re-adding button
-make music in other tabs not need to pause
-estimate the time the loading will take

-----
1.7 (May 19, 2022)
- Added support for generic /user/likes page

1.6.1 (April 4, 2022)
- Fixed bug causing first track to be excluded from the shuffle

1.6 (October 26, 2021)
- Fixed bug that caused Likes to not load (changed class structure)

1.5.1 (August 15, 2021)
- Increased delay that automatically paused the tracks while shuffling to make it work more consistently

1.5 (January 9, 2021)
- Fixed functionality for "Discover" playlists. Fixed issue with cancelling loading. Cleaned up code.

1.4.1 (July 18, 2020)
- Prevent playback while the queue is loading

1.4 (July 17, 2020)
- Include the first track when shuffling

Update 1.3.1 (March 13, 2020)
- Fixed issue where button would inject when a ? query was in the url

Update 1.3 (March 8, 2020)
- Added functionality for playlists. Name will remain for now
- cleaned up some junk

Fixed in 1.2 (December 9, 2019)
- lots of reused code, and variable names are pythonic rather than javascript-ic

Fixed in 1.1 (November 30, 2019)
- when switching pages, the button disappears because the script is not run again
- problems when playing music while the script is scrolling the queue
- if music is playing when the script finishes loading all tracks, it pauses the playing music
- the way the queue resets is kinda sus
- figure out how to properly reset intervals
- what if the user only has 1 or 0 tracks in their likes?
- it doesn't work with my autoplay disable script because the check relies on the autoplay station not being loaded
- might be able to drop the interval from 750ms to 500ms
- add a description

1.0 (November 29, 2019)