Help:MixesDB userscripts

From MixesDB
(Redirected from Help:Pimp scripts)
Jump to navigationJump to search

"MixesDB userscripts" are a collection of userscripts, that change the look and behaviour of certain websites or add additional information by using Javascript and CSS.

Features

The following userscripts help MixesDB contributors with their daily copy-paste work:

  • Copy-paste-ready formatted tracklists
  • URLs for highest resolution artwork
  • Player URLs in the format MixesDB embeds them with the player template
  • API information whenever available and useful
  • On player sites and websites using widget players: Search if MixesDB uses these players as well and link to the mix page
  • Offer a link to submit a player URL to TrackId.net whenever possible
  • On player sites: Filter to find new mixes that are not used on MixesDB

Getting started

Before you can install a userscript you need to add a userscript addon for your browser. We had bad experiences with Greasemonkey so we stick with Tampermonkey as it's avaiable for all major browsers: tampermonkey.net

After installing the browser addon, you can install the userscripts by just clicking ๐Ÿ‘‰ Click to install or update below.

If you're running script blocker addons like "ScriptSafe" or "NoScript" and you see no changes or things don't seem to work:

  • Allow scripts from www.mixesdb.com (if tracklists or the toolkit are added).
  • Try allowing some major scripts from that website and reload the page.

Automatic updates: The scripts are under continuous development. Enable automatic script updates in your addon to get the latest version automatically.

We inform about updates on Discord where you can also report bugs, get support and request features.

โš ๏ธ The userscripts are currently being overhauled. The screenshots below may be outdated and not match the current feature descriptions, which are updated automatically.

Quick overview

Userscript Install /
update
Target website type Players Copy-paste
tracklist
Toolkit
MixesDB
supported
Multiple Player usage Hide used
Player Checker Update Websites with embedded players yes no yes no
1001 Tracklists Update Tracklist generation yes yes yes not possible
Apple Music Update Mix source yes no yes, but not formatted restricted
Apple Podcasts Update Mix source yes no no restricted
BBC Update Mix source no yes no
Discogs Update Mix source no yes no
hearthis.at Update Player site yes no no yes no
Internet Archive Update Player site yes no no yes no
Mixcloud Update Player site yes no no yes
MixesDB Userscripts Helper Update On MixesDB no no no
NTS Update Mix source no yes no
RA Update Mix source yes no yes yes no
SoundCloud Update Player site yes no no yes
The Lot Radio Update Mix source no yes no
TrackId.net Update Tracklist generation yes yes yes no, but indicated via
"MixesDB integration"
Tracklist Merger (Beta) Update On MixesDB,
on TrackId.net
no no no no no
Tracklist Cue Switcher Update On MixesDB,
on TrackId.net
no no no
YouTube Update Player site yes no no yes no
Private userscripts Install /
update
Description
Episodes Importer For show or podcast websites this adds buttons on episode listings to view or create pre-filled mix pages.

This is useful for shows and podcasts of which many episodes are still missing on MixesDB, not for adding 1 new mix per week.

The episodes on the website need to be numbered or read the date we sue for the mix pages.

Hernan Cattaneo Resident Update Mix pages for Category:Resident (Show) from podcast.hernancattaneo.com

README

IA MIX Update Mix pages for Category:IA MIX from inverted-audio.com/mix

README

Player URLs Adds missing player URLs from a pre-defined array of URLs and the episode number or date matching MixesDB mix pages.

The mixesdb.com part does the auto-save and "Edit all pages" link on MixesDB:Explorer/Lists (query pages not the category for player site players).

Matching IDs or date of the array with the MixesDB page titles happens with regex in the userscript. Adjust for each new category name.

Apple Podcasts Update The IDs are listed in the console log. Use that to build the ID array in the userscript.

README

YouTube Update Does not run on youtube.com (Chrome not supported, Safari is a mess). Thus the ID array can be created using an .sh script with yt-dlp.

The txt file tries to normalize the YouTube title keys to only the episode number or date, then sorts the items. For raw yt-dlp results use the script option cleanup=false.

Copy the array to the userscript manually.

README

Shared features

Tracklist box

Toolkit

Page creator

Site specific userscripts

Userscripts that target one specific website.

1001 Tracklists

๐Ÿ‘‰ Click to install or update

Planned features

  • Consider "Switch cue format" button
  • Add link to Tracklist Merger

Apple Music

๐Ÿ‘‰ Click to install or update

Planned features

  • On albums
    • Add a "File details" toggle for the total duration.
    • Fix dark textarea with OS light mode.
    • Instead of leading the tracklist area on all pages, add a user option to append a button to the header area (less flickering).

Apple Podcasts

๐Ÿ‘‰ Click to install or update

hearthis.at

๐Ÿ‘‰ Click to install or update

Internet Archive

๐Ÿ‘‰ Click to install or update

Mixcloud

๐Ÿ‘‰ Click to install or update

RA

๐Ÿ‘‰ Click to install or update

SoundCloud

๐Ÿ‘‰ Click to install or update

Known issues

  • On player pages
    • The audio file size is no more included in the API details. Theoretically it could be received by the same additional API call for the download URL.

TrackId.net

๐Ÿ‘‰ Click to install or update

TrackId.net ("TID") is currently the best tool to retrieve automated tracklist generation via player URLs.

Unfortunately a premium account is required to submit new URLs (20 GBP / year). But there are over 230K existing pages and this userscript makes all tracklists copy-paste-ready.

See also MixesDB Userscripts Helper for more TID features on MixesDB.

Planned features

  • Search pages [44]: Option to show the regular table instead (only the regular results are sortable) (fixes the current workaround of showing both)
  • Default tracklist tables: Link to search each track title on YouTube
  • Check if the "change history" tab has new tracks since last check marking (requires undo function / or refresh marking to generate new timestamp)

YouTube

๐Ÿ‘‰ Click to install or update

Combined userscripts

Userscripts that are working on multiple websites or small single purpose scripts that are grouped here.

MixesDB Userscripts Helper

๐Ÿ‘‰ Click to install or update | README

This userscript changes the look and behaviour of the MixesDB website, mainly to enable features usable by other MixesDB userscripts.

This userscripts uses user settings which can be enabled in variables on top of the script. After an update they're reset to their default value.

TrackId.net features

On MixesDB mix pages and on MixesDB:Explorer/Mixes a TrackId.net link is added below every compatible player. It's either a submit link or a page link with info if the tracklist has been integrated to MixesDB.
The submit link is highly effective when you have a TID premium account and want to submit many player URLs for the community. Example query: Newly added pages with TID compatible players + no or incomplete tracklist + at least 1 hotness star

Inserting the keywords to search and the player URL into the form requires the userscript TrackId.net.
Submitting player URLs requires a TID premium account.

All this can be disabled in the user setting variables.

Apple Podcasts episode pages are not indexed on Google, only the show pages. This means the Player search on mix pages will not find Apple Podcast players.

So an icon to search the mix page title in Apple Podcasts directly is added to

All this can be disabled in the user setting variables.

An optional feature for those who prefer Apple Music results in tracklists to open in the browser instead of the Apple Music app. For example at work or when you use multiple local Music libraries on your Mac.

These features are all optional and enabled by a user setting on top of the userscript:

  • Open links in browser:

    var appleMusic_linksOpenInBrowser

    Remove the URL parameter &app=music from album links (search links don't have this by default).
    Using this also changes the URL from music.apple.com to beta.music.apple.com, which enforces bypassing the Music app and makes it actually usable in the browser with features like adding to playlists.

    You can always click with CMD+CLICK to bypass the Music app.
  • Force your country code:

    var appleMusic_countryCode_switch

    By default album results link to the US version (music.apple.com/us/album/...). But when you live somewhere else, you only can use previews (even if logged in). Then you'd always need to switch to your country manually. Set your own country code to avoid all this.

Example settings with links opening in the browser enabled, Germany as country code and browser links with Beta enabled:

var appleMusic_linksOpenInBrowser = 1;
var appleMusic_countryCode_switch = "de";

So with links opening in the Music app disabled, clicking an album link in a tracklist will open e.g.
https://beta.music.apple.com/de/album/double-standard/1741549977?i=1741550406 in a new tab instead of
https://music.apple.com/us/album/double-standard/1741549977?i=1741550406.

Player Checker

๐Ÿ‘‰ Click to install or update

This userscript is activated on various blogs, podcast and radio show websites. It looks for player widgets to search if these player URLs are used in MixesDB mix pages.

Supported websites

Websites Applied page types Known issues
finn-johannsen.de Mix posts. incl. including copy-paste tracklists On posts with multiple mixes, it cannot distinguish between "mixes" so all players belong to one check (example post).
groove.de Podcast episodes
toxicfamily.de articles
wearesoundspace.com podcast episodes, articles

Excluded are player websites from the dedicated userscripts below which have the toolkit integrated directly.

See the player comparison table for which player widget will work with the toolkit.

Please post on Discord โ€ฆ

  • if you see players being ignored on a supported website (post page link)
  • if your favorite blog or podcast page is not supported

Tracklist only websites

Podcast and radio show websites for which we only add the pre-formatted tracklist.

BBC

๐Ÿ‘‰ Click to install or update README

Discogs

๐Ÿ‘‰ Click to install or update README

The Lot Radio

๐Ÿ‘‰ Click to install or update README

NTS

๐Ÿ‘‰ Click to install or update
  • Including timestamps for subscribed users
README

radioeins

๐Ÿ‘‰ Click to install or update README

Tracklist Cue Switcher

๐Ÿ‘‰ Click to install or update

Known issues

  • It cannot forget last alternative format. I.e. once used, you cannot always load the page's original format by default.
  • Might interfere with the track toggle feature caching (when cue is switched before cache saving current view)

Tracklist Merger (Beta)

๐Ÿ‘‰ Click to install or update