Skip to content

Instantly share code, notes, and snippets.

@chobie
Created October 12, 2010 09:13
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 chobie/621902 to your computer and use it in GitHub Desktop.
Save chobie/621902 to your computer and use it in GitHub Desktop.
//for dyndns manage page
javascript:(function(){var s=document.createElement('script');s.charset='UTF-8';s.src='http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js';document.body.appendChild(s);})();
javascript:(function(){
cell = $("table[width=100%] td");
result = "";
for(var i in cell){
td = $(cell[i]);
if(td.children("input[type=text]").length){
m = $(td.children("input"));
value = m.val();
result = result + m.val();
}else{
value = td.text().replace(/(^\s+)|(\s+$)/g, "");
if(value != ""){
result = result + value;
}else{
result = result + "\r\n";
}
}
result = result + ",";
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment