🏠 Home 

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.

发表回复

登录以发表回复。