Last active
March 3, 2020 03:31
-
-
Save michaelmwu/f7f3d3517c2ac252a1bd7068fbc190ee to your computer and use it in GitHub Desktop.
This file contains 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
Array.fromList = function(list) { | |
var array= new Array(list.length); | |
for (var i= 0, n= list.length; i<n; i++) | |
array[i]= list[i]; | |
return array; | |
}; | |
var lines = Array.fromList(document.querySelectorAll('.ecertificate-content')).map(function(node) { | |
var dds = node.querySelectorAll('dd'); | |
return dds[0].textContent + "\t" + dds[1].textContent | |
}); | |
console.log(lines.join('\n')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment