Pinterest.com Backup Original Files

Download all original images from your Pinterest.com profile. Creates an entry in the Greasemonkey menu, just go to one of your boards, scroll down to the last image and click the option in the menu.

< Обсуждения Pinterest.com Backup Original Files

Отзыв: Хороший — скрипт работает как нужно

File Name for downloaded Zip

Greetings! First of all, it is working great on FFox (50.1.0). Thank You! But it always the same name for .zip file (images.zip). Is it possible to make archive name with a date-time-gallery_name.zip name?

cuziАвтор
§
Создано: 25.12.2016

Good idea! And easy to do! Format is now: 2016-12-2521:45username_galleryname.zip If you'd like a different format, just change line 111 in the code.

Awesome! But just FYI ":" is not allowed to be used in file names on windows (not sure about linux and osx). Also date object in js return a hours/minutes/seconds w/o leading zero. So i'm using short function to convert them:

function trZero(num){ return num>9?num:"0"+num; }

And example of usage:

function dateNow(){
    let d = new Date(), HH, mm, DD, MM, YYYY;
    YYYY = d.getFullYear();
    MM = trZero(d.getMonth()+1);
    DD = trZero(d.getDate());
    HH = trZero(d.getHours());
    mm = trZero(d.getMinutes());

    return YYYY+"-"+MM+"-"+DD+"_"+HH+"-"+mm;
}
cuziАвтор
§
Создано: 02.01.2017

Thanks, I fixed it.

Ответить

Войдите, чтобы ответить.