Skip to content

Instantly share code, notes, and snippets.

@tomnomnom
Created June 19, 2019 21:27
Show Gist options
  • Save tomnomnom/275c878b4ab82c8fadbd5ab7edab83c2 to your computer and use it in GitHub Desktop.
Save tomnomnom/275c878b4ab82c8fadbd5ab7edab83c2 to your computer and use it in GitHub Desktop.

Revisions

  1. tomnomnom created this gist Jun 19, 2019.
    1 change: 1 addition & 0 deletions google-copy.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript:d=document;b=d.createElement`textarea`;c=d.getSelection();b.textContent=[...d.querySelectorAll`div.r>a:first-child`].map(n=>n.href).join`\n`;d.body.appendChild(b);c.removeAllRanges();b.select();d.execCommand`copy`;d.body.removeChild(b)