diff --git a/mb_relationship_shortcuts.user.js b/mb_relationship_shortcuts.user.js index 702a043..a334870 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.11.0 +// @version 2017.11.12.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 @@ -22,7 +22,8 @@ var relationsIconsURLs = { "creative commons licensed download": "http://creativecommons.org/favicon.ico", "cover art link": "http://www.cdcovers.cc/favicon.ico", "secondhandsongs": "https://musicbrainz.org/static/images/favicons/secondhandsongs-32.png", - "lyrics": "http://www.nomy.nu/img/lyrics-icon.gif" + "lyrics": "http://www.nomy.nu/img/lyrics-icon.gif", + "allmusic": "https://musicbrainz.org/static/images/favicons/allmusic-16.png" }, 'release-group': { "single from": "http://www.amaesingtools.com/images/left_arrow_icon.gif" @@ -120,21 +121,22 @@ $(document).ready(function(){ $("#" + mbid + " td.relationships").append( "" + " " + "" ); - } - if (target.indexOf("d-nb.info") != -1 ) { + } else if (target.indexOf("d-nb.info") != -1 ) { $("#" + mbid + " td.relationships").append( "" + " " + "" ); - } - if (target.indexOf("www.musik-sammler.de") != -1 ) { + } else if (target.indexOf("www.musik-sammler.de") != -1 ) { $("#" + mbid + " td.relationships").append( "" + " " + "" ); - } - if (target.indexOf("www.worldcat.org") != -1 ) { + } else if (target.indexOf("www.worldcat.org") != -1 ) { $("#" + mbid + " td.relationships").append( "" + " " + "" ); + } else if (target.indexOf("rateyourmusic.com") != -1 ) { + $("#" + mbid + " td.relationships").append( + "" + " " + "" + ); } });