Last active
November 29, 2019 19:30
-
-
Save mmodrow/abe668da393e05dc7eeec24485c81d28 to your computer and use it in GitHub Desktop.
print all links, that match a given prefix
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
var prefix = "somePrefix"; | |
Array.from(document.querySelectorAll("a[href^='" + prefix + "']")).map(function(a){return console.log(a.href)}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment