![]() ![]() Var initialHistoryLength = history. ![]() Return fn().then(val => (val = true & loop(fn)) || val) ![]() If you happen to be using the handy chrome-promise library, here's a version of Antony's answer that uses promises instead of callbacks to loop through the API calls until the desired number of history items is found: import ChromePromise from 'chrome-promise' Easily refine your search queries and view more results on the search results page Stability improvements and bug fixes. But I did try it with a startTime of a few days ago, and that returned 645 items. I haven't tried that, as I expect that loading my tens (?) of thousands of history items into memory would take down Chrome. So if you really wanted the entire history, you could do: (, Interestingly, the Chromium bug that Justaman mentioned in his answer reveals that passing maxResults: 0 will actually return all history items.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |