/*
* @title spoart
* @description open artwork on spotify.com
* @include https://open.spotify.com
* @license MIT License https://opensource.org/licenses/MIT
* @javascript_url
*/
(() => {
'use strict';
const coverart = document.body.querySelector('.cover-art-image');
// TBD handle multi image
// syntax
// url("https://...")
const link = (coverart.style.backgroundImage.match(/(https:[^"]+)/) || [])[1];
if (!link) return;
window.open(link);
})();