X
X
xomik2017-05-21 19:58:45
Yandex.Disk
xomik, 2017-05-21 19:58:45

How to restore all files in Yandex.Disk?

I didn't think I would ask such a question. But damn it, how can I restore all the files in the Recycle Bin in Yandex.Disk? Do not allocate 70,000 files to me manually)) All I could find in Google is that you can restore files one at a time))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-05-21
@NeiroNx

It is possible in javascript:

el = document.getElementsByClassName('nb-checkbox-resource');for(i=0;i<el.length;i++)el[i].click();

This will select all elements on the page. I don't know how many pages there are - I have only 36 files in the basket
This will programmatically click the restore button.
In JQuery it is not strong as in APIYandex, therefore, bare JavaScript.
I think if you repeat a certain number of times programmatically, then all 70,000 will be restored.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question