Last active
September 6, 2021 13:11
-
-
Save KMurphs/ee46db302901e631c7d1dc63d18ff446 to your computer and use it in GitHub Desktop.
Scrappe History from Google Chrome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.from(document.querySelector("#history-app").shadowRoot.querySelector("#history").shadowRoot.querySelectorAll("history-item")).filter((u,i) => i < 17).map(u => u.shadowRoot.querySelector("a").href) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why:
To Use:
.filter((u,i) => i < {your-number-here})