WikiArt Downloader

Add button to download full resolution images from WikiArt

Autor
CertifiedDiplodocus
Dnevne instalacije
0
Ukupnih instalacija
60
Ocjene
1 0 0
Verzija
1.0
Stvoreno
16.04.2024.
Ažurirano
20.04.2024.
Licenza
GPL-3.0-or-later
Primjenjuje se

Adds a download button to WikiArt to save the highest-available resolution of an image. Works on fullscreen, gallery and single painting views; if there's a "like" button, you should be able to download.

Default filename when saving: artist - title (year) To change this, edit the variable saveAsName in the function saveAsFunction:

let saveAsName = `${painting.artistName} - ${painting.title} (${painting.year}).${imgExtension}`; \\ e.g. René Magritte - Ceci n'est pas une pipe (1929).jpg
let saveAsName = `${painting.artistName}_${painting.year}_${painting.title}.${imgExtension}` \\      e.g. René Magritte_1929_Ceci n'est pas une pipe.jpg

With many thanks to u/sharmanhall1 on reddit (tyhallcsu on github) for their help and advice. Any remaining errors are my own doing: please let me know if anything wants fixing. Constructive criticism is very welcome.

The script has verbose logging for debugging purposes. To enable, set enableVerboseLogging = true.