Skip to content

Instantly share code, notes, and snippets.

@dstaley
Last active September 21, 2015 19:59
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 dstaley/8ae836e412a6498e6c38 to your computer and use it in GitHub Desktop.
Save dstaley/8ae836e412a6498e6c38 to your computer and use it in GitHub Desktop.
(function() {
var out = {};
var n;
var walk = document.createTreeWalker(
document,
NodeFilter.SHOW_COMMENT,
{ acceptNode: function(n) { return n.nodeValue.substring(1, 7) === './src/'; } },
false
);
while ((n = walk.nextNode()) !== null) {
out[n.nodeValue.substring(0, n.nodeValue.length - 3)] = true;
}
console.log(Object.keys(out).join('\n'));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment