Skip to content

Instantly share code, notes, and snippets.

@erlendaakre
Created June 15, 2017 13:20
Show Gist options
  • Save erlendaakre/c48f1fa4d8083d59c7669f150123be51 to your computer and use it in GitHub Desktop.
Save erlendaakre/c48f1fa4d8083d59c7669f150123be51 to your computer and use it in GitHub Desktop.
Get emails from hunter.io search result page
// ==UserScript==
// @name Get emails from hunter.io search result page
// @namespace http://frostvoid.com
// @version 1.0
// @match https://hunter.io/search*
// @grant GM_registerMenuCommand
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
(function() {
'use strict';
GM_registerMenuCommand('>>>>> GET EMAILS', function() {
var result = [];
$('.email').each( function(i,c) {result.push(c.innerText)} );
console.log(result.join(', '));
}, 'r');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment