I have a very large number of bookmarks in Google Chrome. I want to transfer all of them to a windows folder, so that each bookmark will be a shortcut to a website (I want a list of shortcuts, just like any list of regular applications shortcuts). I also would like to preserve the bookmark's name and icon.
I searched for a way to achieve my goal, but all I could find is to either manually Create application shortcuts
in Chrome, or to manually drag & drop links from the HTML file exported from the bookmarks in the Chrome Bookmark manager to a folder.
Since there's no easy solution (AFAIK), I thought about achieving it in another way.
Basically, what I have, is an HTML file called bookmarks.html
(created by the Export bookmarks to HTML file
feature in the Organize
menu inside the Bookmark Manager
. It's a long list of links (<a>
s) - I have more than 250 bookmarks.
I can extract the data I need from the file easily, probably with an XML Parser, though it's possible even with regex, because the structure is known and is the same throughout the whole file:
...
<DT><A HREF="http://data.stackexchange.com/" ADD_DATE="1342120101" ICON="data:image/png;base64,iVBORw0......">Stack Exchange</A>
<DT><A HREF="http://www.istockphoto.com/" ADD_DATE="1285715116" ICON="data:image/png;base64,iVBORw0.......">Web Design</A>
<DT><A HREF="http://icons.mysitemyway.com/" ADD_DATE="1287435657" ICON="data:image/png;base64,iVBORw0........">Ico.etc</A>
<DT><A HREF="http://www.shutterstock.com/" ADD_DATE="1285715294" ICON="data:image/png;base64,iVBORw0.....">Shutterstock</A>
...
The problem is that I don't know how to create a script that would take the data - i.e URL, icon (in base64), and name - and make Windows URL shortcuts using that data. I know of few VB scripts that can create a custom shortcut, but not multiple (well, about 300) shortcuts at once.
.url
files to put them with the ones from IE and other browsers that I have made over the years. The first step is to decode the file with your links, and the second is to simply examine the.url
file format. – Synetech Aug 21 '13 at 0:54[InternetShortcut]
header and theURL
line. If you want to addModified
, figuring out the checksum can be hard; it took me hours. This Japanese page was close, but this one said how. I fixed all the edge-cases, now my Chrome bookmarks are ready to be merged with my old shortcuts. (PS, 300 is “a very large amount”? ಠ_ఠ I have 1,203 in Chrome, and 10,000+ from IE over the past 17 years.) – Synetech Aug 21 '13 at 1:11