Skip to content

Instantly share code, notes, and snippets.

@TimBroddin
Created November 25, 2014 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimBroddin/8d0fc755fa4b7f9ed3f9 to your computer and use it in GitHub Desktop.
Save TimBroddin/8d0fc755fa4b7f9ed3f9 to your computer and use it in GitHub Desktop.
Hidemyass proxy list to txt
var results = '';
$('tr').each(function() {
var td = $('td',this);
if(td[1]) {
var tds = $(td[1]);
var span = $('> span', tds);
var result = '';
$.each(span.contents(), function(k, el) {
if(el.nodeType == 3) {
result += el.nodeValue;
} else {
if($(el).is(':visible')) {
result += $(el).html();
}
}
});
result += ':' + $(td[2]).text();
results += result + "\n";
}
console.log(results);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment