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的回應

評論:正評 - 腳本一切正常

§
發表於:2016-12-25

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作者
§
發表於:2016-12-25

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

§
發表於:2016-12-29

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作者
§
發表於:2017-01-02

Thanks, I fixed it.

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址