Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions musicbrainz-go-to-harmony.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Musicbrainz: Go to harmony
// @version 2024.11.19.1
// @version 2025.10.21.1
// @description Add a quick link to see a release in harmony
// @author RustyNova
// @match https://musicbrainz.org/release/*
Expand All @@ -25,7 +25,8 @@
spaned.setAttribute("class", `search-link-container`);

let icon = document.createElement("a");
let mbid = document.location.href.split("/")[4]
let url = new URL(document.location.href);
let mbid = url.pathname.split("/")[2];
icon.href = `https://harmony.pulsewidth.org.uk/release/actions?release_mbid=${mbid}`
icon.setAttribute("class", `search-link harmony-icon`);
icon.target="_blank";
Expand Down