PSBrowserBookmarks

Status

Publishing: This work hasn’t been published yet! Watch this space for release notifications or follow me on twitter!

Localization: en-US, de-DE.
These help pages will only be provided in English. Despite specifying the English dialect as en-US, british spelling may well be found, especially in help files.

Version: 0.5.1.0

Last commit: 2019-11-12

What it is

A module for creating, importing and exporting bookmarks between major browsers. Imagine consolidating IE and Firefox bookmarks and adding them to Chrome. Or consolidating Chrome bookmarks from multiple user profiles. Or adding a set of bookmarks to all three browsers upon user profile creation.

For some background information on how bookmarks are stored by various browsers, see about_BrowserBookmarks.

Usage Examples

Insert a new bookmark into Firefox:

Types

BrowserBookmark

BookmarkAddResult

Commands

New-BrowserBookmark

Get-FirefoxBookmark

Get-IEBookmark

Get-ChromeBookmark

Add-FirefoxBookmark

Add-IEBookmark

Add-ChromeBookmark

Remove-FirefoxBookmark

Remove-IEBookmark

Remove-ChromeBookmark

Requirements

Windows PowerShell 5.x

SQLite library (.NET 4.0 binary from http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki)

Helper functions not exported from the module

Get-IniContent (making heavy use of https://devblogs.microsoft.com/scripting/use-powershell-to-work-with-any-ini-file/)

Get-DefaultPlaces

ConvertFrom-MozillaTime

ConvertTo-MozillaTime

Get-MozillaHash (does nothing as of now)

Get-MozillaGUID (mocked, not really reverse-engineered)

Get-MozillaURLMeta

Get-DefaultIEFaves

ConvertTo-FileName

ConvertFrom-ChromeTime

ConvertTo-ChromeTime

Get-DefaultChromeBookmarks

Process-ChromeBookmarkBranch