mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-03-04 14:27:14 +00:00
ui_enhancements: Add a shortcut to edit release relationships, besides
the "Edit" link.
This commit is contained in:
parent
7efc1bec72
commit
8b3578f29f
1 changed files with 8 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Musicbrainz UI enhancements
|
||||
// @description Various UI enhancements for Musicbrainz
|
||||
// @version 2015.06.10.0
|
||||
// @version 2015.09.09.1
|
||||
// @downloadURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/mb_ui_enhancements.user.js
|
||||
// @updateURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/mb_ui_enhancements.user.js
|
||||
// @icon http://wiki.musicbrainz.org/-/images/3/3d/Musicbrainz_logo.png
|
||||
|
@ -228,6 +228,13 @@ function main() {
|
|||
}
|
||||
}
|
||||
|
||||
// Display "Edit relationships" link for release besides "Edit" link
|
||||
re = new RegExp("musicbrainz\.org\/release\/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})","i");
|
||||
if (window.location.href.match(re)) {
|
||||
var mbid = window.location.href.match(re)[1];
|
||||
$('ul.tabs').append('<li><a href="/release/' + mbid + '/edit-relationships">Edit relationships</a></li>');
|
||||
}
|
||||
|
||||
// Discogs link rollover
|
||||
// TODO...
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue