youtube-playlist-randomizer improvements

changes the background of the youtube-playlist-randomizer website with a random Unsplash image

As of 2025-05-24. See the latest version.

Author
r5ne
Ratings
0 0 0
Version
0.5
Created
2025-05-24
Updated
2025-05-24
Size
2.52 KB
License
GPL-3.0-only
Applies to

youtube-playlist-randomizer improvements

Overview

Currently 2 improvements for the https://youtube-playlist-randomizer.bitbucket.io site. First image is the before, second is the after if you couldn't tell buddy. The improvements include:

  • A better background system using unsplash to generate random backgrounds with a specific theme each time the site is reloaded
  • Centering applied to the whole website.

How to use:

If you want to use the unsplash themed images you must have an Unsplash Access Key, which you should paste into the script where instructed. Instructions on how to obtain this can be found in the unsplash developer docs.
TLDR, create an unsplash account, create an unsplash app, copy the access key.
If the image is blurry/doesn't cover the entirety of your screen or is cut off, modify the &w=1920&h=1080 properties, where w is width and h is height of the image.

CREDITS:

Originally I was just modifying Warsoldier's webpage background changer, however 90% of the code except the userscript top part was changed.
However I take like 5% credit, since this was mostly just asking the AI to do this, with some bugfixing. It wasn't trivial, but I also don't actually know JS at all and know basic HTML.