2019-06-24 23:07:46 +00:00
|
|
|
|
// ==UserScript==
|
|
|
|
|
// @name MusicBrainz: 1200px CAA
|
|
|
|
|
// @name:da MusicBrainz: 1200px CAA
|
|
|
|
|
// @namespace https://github.com/murdos/musicbrainz-userscripts/
|
2021-04-16 18:13:42 +00:00
|
|
|
|
// @version 2021.4.16
|
2019-06-24 23:07:46 +00:00
|
|
|
|
// @author Frederik “Freso” S. Olesen
|
|
|
|
|
// @license GPL-3.0-or-later
|
2021-04-16 18:13:42 +00:00
|
|
|
|
// @description Use the 1200px images for the pop‐up/previews on Release cover art pages.
|
|
|
|
|
// @description:da Brug 1200px billeder for pop‐op/forhåndsvisninger af udgivelses omslagskunstsider.
|
2019-06-24 23:07:46 +00:00
|
|
|
|
// @homepageURL https://github.com/murdos/musicbrainz-userscripts/
|
|
|
|
|
// @icon https://coverartarchive.org/img/big_logo.svg
|
|
|
|
|
// @updateURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/mb_1200px_caa.user.js
|
|
|
|
|
// @downloadURL https://raw.githubusercontent.com/murdos/musicbrainz-userscripts/master/mb_1200px_caa.user.js
|
|
|
|
|
// @supportURL https://github.com/murdos/musicbrainz-userscripts/issues
|
|
|
|
|
// @match *://*.musicbrainz.org/release/*/cover-art
|
|
|
|
|
// @grant none
|
|
|
|
|
// ==/UserScript==
|
|
|
|
|
|
|
|
|
|
var ca_page = document.querySelector('div#content');
|
|
|
|
|
|
|
|
|
|
var ca_items = ca_page.querySelectorAll('div.artwork-cont');
|
|
|
|
|
|
2020-04-05 14:01:21 +00:00
|
|
|
|
ca_items.forEach(function (ca_item) {
|
2019-06-25 21:49:08 +00:00
|
|
|
|
/* Use 1200px “thumbnails” for the pop‐ups/previews */
|
2019-06-25 21:56:34 +00:00
|
|
|
|
let popup_link = ca_item.querySelector('a.artwork-image');
|
2019-06-25 21:49:08 +00:00
|
|
|
|
popup_link.href = popup_link.href.replace(/\.[a-z]+$/, '-1200.jpg');
|
2019-06-24 23:07:46 +00:00
|
|
|
|
});
|