Created
November 25, 2014 12:43
-
-
Save TimBroddin/8d0fc755fa4b7f9ed3f9 to your computer and use it in GitHub Desktop.
Hidemyass proxy list to txt
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
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