Created
April 15, 2016 16:30
-
-
Save codewizard13/c4a59e6fa2c878214b257fbb53f7b3a7 to your computer and use it in GitHub Desktop.
Prints list of Yahoo Mail senders. (2016-04-16)
This file contains 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
/* | |
AUTHOR: Eric Hepperle | |
DATE: 2016-04-15 | |
PURPOSE: Prints list of Yahoo Mail senders. I wrote this so | |
I could quickly record past senders who I may want to connect | |
with in the future, before deleting their emails. Mostly for | |
advert and marketing emails. | |
USAGE: First, login to your Yahoo Mail account. | |
Next, use a plugin like "jquery-injector" to add jquery | |
to the page. Use the mouse-wheel to scroll down a bit; this | |
will ensure you have around 300 emails to work with. | |
Open the console tab in the code inspector. | |
Cut and paste the below code into the console and hit enter. | |
The result will be a list of emails. Copy that from the console | |
into a spreadsheet file for posterity. | |
*/ | |
var senders = []; | |
var uniqueSenders = []; | |
// build senders array | |
$('div.from.bold').each(function() { | |
console.log($(this)[0].title); | |
senders.push($(this)[0].title) | |
}); | |
// debugging ... | |
console.log('%csenders:','background:orange'); | |
//console.log(senders); | |
console.log("senders qty: " + senders.length); | |
$.each(senders, function(i, el){ | |
if($.inArray(el, uniqueSenders) === -1) uniqueSenders.push(el); | |
}); | |
console.log("uniqueSenders qty: " + uniqueSenders.length); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment