Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jimbrig/psedgekeywords

PowerShell Core Module for Configuring, Backing Up, and Managing Microsoft Edge Search Engine "Keywords"
https://github.com/jimbrig/psedgekeywords

browser edge microsoft-edge powershell search-engine settings-management sqlite utility

Last synced: about 1 month ago
JSON representation

PowerShell Core Module for Configuring, Backing Up, and Managing Microsoft Edge Search Engine "Keywords"

Awesome Lists containing this project

README

        

# PSEdgeKeywords

> PowerShell Core Module for Configuring, Backing Up, and Managing Microsoft Edge Search Engine "Keywords"

***
![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/PSEdgeKeywords?color=0092ff&label=PowerShell%20Gallery&logoColor=0092ff)
[![Test Module](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/test.yml/badge.svg)](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/test.yml)
[![Build Module](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/build.yml/badge.svg)](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/build.yml)
[![Publish](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/publish.yml/badge.svg)](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/publish.yml)
[![Changelog](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/git-cliff.yml/badge.svg)](https://github.com/jimbrig/PSEdgeKeywords/actions/workflows/git-cliff.yml)
***

*NOTE: This project was inspired by [erbanku/custom-search-engines-backup](https://github.com/erbanku/custom-search-engines-backup).*

View the repo's [Changelog](CHANGELOG.md) for details on the progression of the codebase over time.

## Overview

- Edge Custom Search Engines Settings URL: [edge://settings/searchEngines](http://settings/searchEngines)

- Edge User Profile Directory: `%LOCALAPPDATA%\Microsoft\Edge\Default`
- Edge Database: `%LOCALAPPDATA%\Microsoft\Edge\Default\Web Data`
- Edge `keywords` table is held withing the `sqlite` database mentioned above.

### Scripts

- PowerShell Scripts:
- [Invoke-ExportEdgeKeywords.ps1](Invoke-ExportEdgeKeywords.ps1): Export Microsoft Edge's `keywords` or custom `searchEngines` to a `SQL` file using `sqlite3`.
- [Invoke-ImportEdgeKeywords.ps1](Invoke-ImportEdgeKeywords.ps1): Import Microsoft Edge's `keywords` or custom `searchEngines` from a `SQL` file using `sqlite3`.

- SQL Scripts:
- [`bin/sql_import_script.sql`](bin/sql_import_script.sql): Ran by `sqlite3` to import the `EdgeKeywords.sql` file into the `Web Data` database's `keywords` table.
- [`bin/sql_export_script.sql`](bin/sql_export_script.sql): Ran by `sqlite3` to export current `Web Data` database's `keywords` table to a `SQL` DDL script: [`EdgeKeywords.sql`](output/EdgeKeywords.sql).

### SQL

Output `.sql` files are exported to [`output/EdgeKeywords.sql`](output/EdgeKeywords.sql). This same `SQL` script can be used for importing back into Edge.

Note that all scripts rely on a dependency for having `sqlite3` installed on your system and on the `PATH` environment variable. Easy installation via `scoop`:

```powershell
scoop install sqlite
```

Another useful tool for viewing the `Web Data` database contents is [sqlitebrowser]() which can be installed via:

```powershell
scoop install sqlitebrowser
```

## Current Search Engines

![image](https://user-images.githubusercontent.com/32652297/173259958-5a54c71b-33fa-490f-b1ba-0e71fc699e64.png)

## Installation

## Examples