Skip to content

Instantly share code, notes, and snippets.

@mdjx
Last active May 2, 2025 02:12

Revisions

  1. mdjx revised this gist Nov 25, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion DevToolsSnippets.js
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    // Dump all links on a page to a text file
    // Dump all links on a page to a text file, may need to disable adblock temporarily
    window.open("data:text/csv;charset=utf-8," + encodeURIComponent(Array.from(document.links).map(e=>e.href).join("\n")))
  2. mdjx revised this gist Nov 20, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion DevToolsSnippets.js
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    // Dump all links on a page to a text file
    window.open("data:text/csv;charset=utf-8," + escape(Array.from(document.links).map(e=>e.href).join("\n")))
    window.open("data:text/csv;charset=utf-8," + encodeURIComponent(Array.from(document.links).map(e=>e.href).join("\n")))
  3. mdjx renamed this gist Nov 20, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. mdjx created this gist Nov 20, 2020.
    2 changes: 2 additions & 0 deletions Dev Tools Snippets
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    // Dump all links on a page to a text file
    window.open("data:text/csv;charset=utf-8," + escape(Array.from(document.links).map(e=>e.href).join("\n")))