Last active
May 18, 2016 19:54
-
-
Save maxharp3r/356b21f9cfd898cd432c0b5bd129fe73 to your computer and use it in GitHub Desktop.
Tampermonkey script to parse a list of email addresses from the horrible mailman user interface
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
// ==UserScript== | |
// @name List of mailman users | |
// @namespace https://gist.github.com/maxharp3r/356b21f9cfd898cd432c0b5bd129fe73 | |
// @version 0.1 | |
// @description list of subscribers to mailmain list | |
// @author Max Harper | |
// @match https://wwws.cs.umn.edu/mm-cs/admin/*/members* | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var users = []; | |
$('center > table > tbody > tr > td > a').each(function(e) { | |
users.push($(this).text()); | |
}); | |
console.log('found ' + users.length + ' users:'); | |
console.log(users.join(',\n')); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment