Created
April 24, 2013 20:05
-
-
Save zachariahtimothy/5455126 to your computer and use it in GitHub Desktop.
Code to export email addresses and forwarders from cPanel using Browser developer tools
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
// Email Addresses /// | |
var rows = $("#table_email_accts tr.dt_info_row"), | |
returnString = ""; | |
rows.each(function(i, item){ | |
var tdList = []; | |
$(item).find('td:eq(0)').each(function(s, subItem){ | |
tdList.push($(subItem).text()); | |
}); | |
returnString += tdList + "\n"; | |
}); | |
console.log(returnString); | |
// Email Forwarders /// | |
var rows = $(“#mailtbl tbody tr”), | |
returnString = “”; | |
rows.each(function(i, item){ | |
var tdList = []; | |
$(item).find(‘td.truncate’).each(function(s,subItem){ | |
tdList.push($(subItem).text()); | |
}); | |
returnString += tdList + “\n”; | |
}); | |
console.log(returnString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You saved me some time!:) Thanks!:)