NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name itunes Large Cover // @namespace https://github.com/larvata // @version 0.2 // @description click album cover for download it as full resulotion with png format. // @match https://itunes.apple.com/*/album/* // @copyright 2017, Larvata // ==/UserScript== (() => { // init const picture = document.querySelector('.medium-5 picture'); const anchor = document.createElement('a'); anchor.setAttribute('download', ''); const container = picture.parentNode; container.style.cursor = 'pointer'; picture.addEventListener('click', () => { const sourceUrl = document.querySelector('meta[property="og:image:secure_url"]').content; const fullUrl = sourceUrl.replace(/\d+x\d+\S+\.jpg/, '2400x0w.png'); anchor.setAttribute('href', fullUrl); anchor.click(); }); })();