Skip to content

Instantly share code, notes, and snippets.

@maxharp3r
Last active May 18, 2016 19:54
Show Gist options
  • Save maxharp3r/356b21f9cfd898cd432c0b5bd129fe73 to your computer and use it in GitHub Desktop.
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
// ==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