diff --git a/mb_relationship_shortcuts.user.js b/mb_relationship_shortcuts.user.js index 88e39de..4320d7b 100644 --- a/mb_relationship_shortcuts.user.js +++ b/mb_relationship_shortcuts.user.js @@ -12,23 +12,16 @@ // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js // ==/UserScript== -DISCOGS_ICON = "data:image/x-icon;base64,AAABAAIAEBAAAAAAAABoAwAAJgAAACAgAAAAAAAAqAwAAI4DAAAoAAAAEAAAACAAAAABABgAAAAAAEADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa3N7a3N7a3N7a3N7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa3N7QkJCQkJCKTk5EBAQEBAQAAAAEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAQkJCvcbGa3N7QkJCISkpEBAQEBAQAAAAAAAAEBAQAAAAAAAAAAAAAAAAAAAAISkpQkJCa3N7vcbGa3N7ISkpEBAQEBAQAAAAAAAAAAAAEBAQAAAAAAAAAAAAISkpKTk5QkJCQkJCa3N7a3N7KTk5ISkpEBAQAAAAAAAAAAAAAAAAISkpAAAAAAAAEBAQISkpISkpKTk5KTk5EBAQGGNrGGNrCAgICAgIAAAAAAAAAAAAAAAAAAAAa3N7AAAAEBAQEBAQEBAQEBAQAMbWAMbWAMbWAMbWCAgIAAAAAAAAAAAAAAAAa3N7a3N7AAAAAAAAAAAAAAgIGGNrAMbWAMbWAMbWAMbWGGNrAAAAAAAAAAAAAAAAa3N7a3N7AAAAAAAAAAAAAAAAGGNrAMbWAMbWAMbWAMbWGGNrEBAQEBAQEBAQEBAQa3N7a3N7AAAAAAAAAAAAAAAAEBAQAMbWAMbWAMbWAMbWEBAQISkpISkpEBAQEBAQa3N7AAAAEBAQAAAAAAAAAAAAAAAAEBAQGGNrGGNrEBAQQkJCQkJCISkpISkpISkpAAAAAAAAQkJCAAAAAAAAAAAAEBAQEBAQISkpQkJCa3N7a62tQkJCQkJC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xMTExMTExMTExMTEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAxMTEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAxMTEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABaY2NKSkpKSkpKSkpKSkpaY2MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8A///4AB//4AAH/8AAA/8AAAD/AAAA/gAAAHwAAAA8AAAAOAAAABgAAAAYAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAYAAAAGAAAABwAAAA8AAAAPgAAAH8AAAD/AAAA/4AAAf/gAAf/8AAP//wAP///gf/w%3D%3D"; - -SECONDHANDSONGS_ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMJJREFUeNpi/P//PwMIsOXNY0ACxkDsAsQdDNjBHiB2/TUpiYEFi2QaEM9kwA+UYAwmLBKENOM1IA2L4ntAbALEjGgYqwGCWAyYBcRncTmFCYtt6CAUh8FYDZiFxRBQjJyB0gQNeA+KHixOVoIakkbIAJg3XKFxjQ5AMVROyABkl3RiketANoSJQHxXQDE6INoABhyuEIQlJmIMKMfhRXBsIecFUObZzUAcmIXNC/eI1LwHOVxYSDBgFlTzamRBgAADAN8FJPSh7DaOAAAAAElFTkSuQmCC"; - // Definitions: relations-type and corresponding icons we are going to treat var relationsIconsURLs = { 'url': { "amazon asin": "http://amazon.fr/favicon.ico", - "discogs": DISCOGS_ICON, - /* - "wikipedia": "http://fr.wikipedia.org/favicon.ico", - */ + "discogs": "http://static.discogs.com/images/favicon.ico", "wikidata": "https://bits.wikimedia.org/favicon/wikidata.ico", "imdb": "http://www.imdb.com/favicon.ico", "creative commons licensed download": "http://creativecommons.org/favicon.ico", "cover art link": "http://cdcovers.to/favicon.ico", - "secondhandsongs": SECONDHANDSONGS_ICON, + "secondhandsongs": "http://secondhandsongs.com/art/favicon.png", "lyrics": "http://www.nomy.nu/img/lyrics-icon.gif" }, 'release-group': { @@ -114,7 +107,7 @@ $(document).ready(function(){ if (relationsIconsURLs['url'].hasOwnProperty(reltype)) { $("#" + mbid + " td.relationships").append( "" - + " " + + " " + "" ); }