diff --git a/mb_relationship_shortcuts.user.js b/mb_relationship_shortcuts.user.js index 10b0d25..51e2ac0 100644 --- a/mb_relationship_shortcuts.user.js +++ b/mb_relationship_shortcuts.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Display shortcut for relationships on MusicBrainz // @description Display icon shortcut for relationships of release-group, release, recording and work: e.g. Amazon, Discogs, Wikipedia, ... links. This allows to access some relationships without opening the entity page. -// @version 2017.11.12.1 +// @version 2018.02.11.0 // @author Aurelien Mino // @licence GPL (http://www.gnu.org/copyleft/gpl.html) // @downloadURL https://raw.github.com/murdos/musicbrainz-userscripts/master/mb_relationship_shortcuts.user.js @@ -143,6 +143,10 @@ $(document).ready(function(){ var targettype = $(this).attr("target-type").replace("release_group", "release-group"); var relations = {}; + if (relationsIconsURLs[targettype] === undefined) { + return; + } + $(this).children("relation").each(function() { var reltype = $(this).attr("type"); var target = $(this).children("target").text();