Export download history from chrome

Viewed 315

I use Google Chrome on Linux Debian 10. And I download many files by this (thousands). And I should to export links, I downloaded files from. I was looking for method in the Internet and found some JS-scripts, I should paste to console on chrome://downloads/ page like:

ditems = document.querySelector("downloads-manager").shadowRoot.querySelector("iron-list").querySelectorAll("downloads-item");

var div = document.createElement('div');

[].forEach.call(ditems, function (el) {
var br = document.createElement('br');
var hr = document.createElement('hr');
div.appendChild(el.shadowRoot.querySelector("#url"));
div.appendChild(br);
div.appendChild(hr);

});
document.body.innerHTML=""
document.body.appendChild(div);
document.head.style.innerHTML="";

But each from this code covered only little part of my downloads list. First, I decided It's because my big list is not loaded full, so I spent time to scroll down till the end and tried again, but nothing had changed. What should I do? Screenshots: 1, before; 2, before; 1, after; 2, after. Such I want to say, It shows only little random part of big list.

0 Answers
Related