Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Last active June 1, 2018 01:40
Show Gist options
  • Save csharpforevermore/bc3054145c55aadc17186ec73909f716 to your computer and use it in GitHub Desktop.
Save csharpforevermore/bc3054145c55aadc17186ec73909f716 to your computer and use it in GitHub Desktop.
Get all URLs from W3Schools sidebar menu (and formatted into the XML style required for Import Bookmarks in Chrome's Bookmark Manager!). Copies XML to clipboard ready for pasting into text editor viewing exported Chrome bookmarks.
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1527292565" LAST_MODIFIED="1527802552" PERSONAL_TOOLBAR_FOLDER="true"></H3>
<DL><p>
<!-- PASTE CLIPBOARD HERE! -->
</DL><p>
</DL><p>
@csharpforevermore
Copy link
Author

Thank you to Emil Devantie Brockdorff's codepen for the copyTextToClipboard function. Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment