Skip to content

Instantly share code, notes, and snippets.

@mbecker
Last active May 23, 2022 12:45
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 mbecker/d1a104cf2dc88d743136bd7537db4ec3 to your computer and use it in GitHub Desktop.
Save mbecker/d1a104cf2dc88d743136bd7537db4ec3 to your computer and use it in GitHub Desktop.
Extract the modules from an Azure learning path site
// https://docs.microsoft.com/de-de/learn/certifications/exams/az-305
var mainTitle = document.getElementsByClassName("title is-1 has-line-height-reset")[0].innerText;
var titles = "";
var cardTitles = document.getElementsByClassName("card-content-title");
for (let item of cardTitles) {
titles = titles + mainTitle + ";" + item.text + ";" + item.href + "\n";
}
console.log(titles);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment