Created
August 5, 2015 21:32
-
-
Save 2tunnels/3dd9b42cef86819aaf4c to your computer and use it in GitHub Desktop.
Google URLs
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 links = document.querySelectorAll('.srg .g h3 a'); var urls = []; [].forEach.call(links, function(link) { urls.push(link.href.indexOf('google') === -1 ? link.href : link.getAttribute('data-href')) }); prompt('URL', urls.join('\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment