Created
April 22, 2015 18:54
-
-
Save edfuh/ce6871ee52e119e0bf0d to your computer and use it in GitHub Desktop.
don't give bloggers money
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
// paste into console and get a list of the amazon | |
var urls = {}; | |
[].slice.apply($$('a')).map(function(a) { | |
return a.href | |
}).filter(function(u) { | |
return /amazon.com/.test(u) | |
}).map(function(u) { | |
return u.split('?')[0] | |
}).forEach(function(u) { | |
urls[u] = u | |
}); | |
copy( Object.keys(urls).join('\n') ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment