Skip to content

Instantly share code, notes, and snippets.

@netoff
Forked from bramus/script.js
Last active January 13, 2024 14:47
Show Gist options
  • Select an option

  • Save netoff/a5c8564f83f47176a948f79e858380c4 to your computer and use it in GitHub Desktop.

Select an option

Save netoff/a5c8564f83f47176a948f79e858380c4 to your computer and use it in GitHub Desktop.

Revisions

  1. netoff revised this gist Jan 13, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion script.js
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,4 @@ for (i in nodeList) {
    }
    }
    }
    console.log(tags.join(','));
    console.log(tags.join("\n"));
  2. netoff revised this gist Jan 13, 2024. No changes.
  3. netoff revised this gist Jan 13, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion script.js
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    var tags = [], nodeList = document.querySelectorAll('td a code');
    for (i in nodeList) {
    if ((nodeList[i].innerText) && (nodeList[i].innerText.indexOf('<') > -1)) {
    var tag = nodeList[i].innerText.replace('<','"').replace('>','"');
    var tag = nodeList[i].innerText.replace('<','').replace('>','');
    if (tags.indexOf(tag) == -1) {
    tags.push(tag);
    }
  4. @bramus bramus created this gist Apr 6, 2016.
    11 changes: 11 additions & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    // Run this on https://developer.mozilla.org/en/docs/Web/HTML/Element
    var tags = [], nodeList = document.querySelectorAll('td a code');
    for (i in nodeList) {
    if ((nodeList[i].innerText) && (nodeList[i].innerText.indexOf('<') > -1)) {
    var tag = nodeList[i].innerText.replace('<','"').replace('>','"');
    if (tags.indexOf(tag) == -1) {
    tags.push(tag);
    }
    }
    }
    console.log(tags.join(','));