Help:Mixes.wiki userscripts

From Mixes.wiki
If the page looks broken: Templates and CSS may have been different back then.Revision as of 13:52, 13 October 2024 by Martin talkcontribs
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

"Mixes.wiki userscripts" are a collection of userscripts, that change the look and behaviour of certain websites or add additional information.

Some websites use tracklist formats which make it impossible to detect the artist, track and label after copy-pasting in the Tracklist Editor.

Therefor you can use a browser add-on that changes the website content using Javascript (and CSS).

Our scripts make it easier to get full artwork, upload dates, and to copy file details and tracklists.

Example: BBC returns an ugly format on copy-paste.
With our BBC userscript the tracklist gets added to a textarea on top from which you can copy it easily.

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 scripts by just clicking "Install the script" below. Then check the example links.

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 mixes.wiki (if tracklists 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.

This section will be updated soon.

We are currently rewriting most of the userscripts one by one as Script name (by Mixes.wiki). They will replace the old versions titled Script name (by MixesDB).

To replace a userscript, uninstall the old version Script name (by MixesDB) before installing Script name (by Mixes.wiki).

You can find the old versions here.

Mixes.wiki Userscripts Helper

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

Click to install or update

TrackId.net features

Searching the Mixes.wiki title on TrackId.net ("TID") rarely brings a result. It is much better to check for player URLs by submitting them as new request.

Quicker "Submit Request"

On Mixes.wiki mix pages with players, make the page icon for TID open the "Submit Request" page on TackId.net and:

  • Add the Mixes.wiki mix page title to the search form on top (perform the search manually if needed).
  • Insert the URL of the first visible player into the "Submit Request" form.
    I.e. on mode=mirrors players, click the tab for that player, for which you want to submit the URL.
TrackId.net - Quicker Submit Request.png
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.

Apple Music links in browser

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 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/...) and then you always need to switch to your country manually. Set your own country code.

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

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

So with links opening in the Music 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.

TrackId.net

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

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

Click to install or update

Features

  • Copy-paste-ready formatted tracklists
  • Quick links in menu to request pages
  • On TID mix pages:
    • Link to search the page title on Mixes.wiki
    • Embed the player for the submitted URL
  • On the page "Submit Request": Insert the player URL from the URL parameter provided by the userscript Mixes.wiki Userscripts Helper after clicking the TrackId.net page icon on a mix page.
    After "validating" the player URL: If a TID page exists for that player URL, you are redirected to that page (where you can copy the tracklist).

Planned features

  • Default tracklist tables: Link to search each track on YouTube
  • Improve 1 minute gaps in tracklists
  • "Save as compared" marker, that a mix is compared to the Mixes.wiki tracklist. Only use if the mix exists on Mixes.wiki.
In detail: A green checked icon means, this mix exists on Mixes.wiki and new tracks from the TrackId.net tracklist were added to the Mixes.wiki mix page. So other users can simply ignore checked paged on TrackId.net. Do not mark it if the mix was not found on Mixes.wiki.

Known issues

  • The textarea with the formatted tracklist is not styled properly.
  • "Quicker Submit Request": The "Validate" button cannot be triggered via script.
  • Pages with hearthis.at players have no embedded player.

SoundCloud

Coming next.

See Discord which other websites will be supported one after the other.