Created
January 24, 2020 22:30
-
-
Save bwoods/5e82228f34a294bf83d2529652521adc to your computer and use it in GitHub Desktop.
All links on a webpage
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.prototype.map.call(document.querySelectorAll('nav a'), function (e) { return e.getAttribute('href'); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment