Make MusicBrainz: 1200px CAA prettier

This commit is contained in:
Laurent Monin 2019-06-25 23:49:08 +02:00
parent c8f05a835d
commit dc55c92e08
No known key found for this signature in database
GPG key ID: D859F01B646C07A7

View file

@ -2,7 +2,7 @@
// @name MusicBrainz: 1200px CAA
// @name:da MusicBrainz: 1200px CAA
// @namespace https://github.com/murdos/musicbrainz-userscripts/
// @version 2019.6.25.1
// @version 2019.6.25.2
// @author Frederik “Freso” S. Olesen
// @license GPL-3.0-or-later
// @description Use the 1200px images for the popup/previews on Release cover art pages. (Also adds 1200px “thumbnail” links.)
@ -38,5 +38,5 @@ ca_items.forEach(function(ca_item) {
var _1200px_link = _500px_link.cloneNode(true);
_1200px_link.href = _1200px_link.href.replace('-500', '-1200');
_1200px_link.textContent = _1200px_link.textContent.replace('500', '1200');
_500px_link.insertAdjacentHTML('afterend', " |\n" + _1200px_link.outerHTML);
_500px_link.insertAdjacentHTML('afterend', ' |\n' + _1200px_link.outerHTML);
});