Code Monkey home page Code Monkey logo

psedgekeywords's Introduction

PSEdgeKeywords

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


PowerShell Gallery Version Test Module Build Module Publish Changelog


NOTE: This project was inspired by erbanku/custom-search-engines-backup.

View the repo's Changelog for details on the progression of the codebase over time.

Overview

  • Edge Custom Search Engines Settings URL: edge://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

SQL

Output .sql files are exported to 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:

scoop install sqlite

Another useful tool for viewing the Web Data database contents is sqlitebrowser which can be installed via:

scoop install sqlitebrowser

Current Search Engines

image

Installation

Examples

psedgekeywords's People

Contributors

github-actions[bot] avatar jimbrig avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

psedgekeywords's Issues

Feature: Add Custom `SQL` Module level Directory for `SQLite` scripts

Add these scripts:

  • ExportKeywords.sql:
-- Dump the table's SQL INSERT Script
.output EdgeKeywords.sql
.dump keywords;

-- Dump the table as CSV
.headers on
.mode csv
.output EdgeKeywords.csv
SELECT * FROM keywords;

-- Quit SQLite
.quit
  • ImportKeywords.sql
DROP TABLE IF EXISTS keywords;
.read CreateKeywords.sql
.quit

Feature: Add Get-EdgeKeywordsData Function

The Get-EdgeKeywordsData function will be a core public function of this module allowing the user to retrieve the keywords data for Edge SearchEngines by querying the Web Data SQLite database table keywords using the dependent PS module: PSSQLite.

This function should support the following:

  • Parameter for specifying the database location/path
  • Parameter for what to return the data as in powershell
    • PSObject (i.e. PSCustomObject)
    • DataSet
    • DataTable
    • DataRow
    • SingleValue

In total, all this function will do is run the SQL query:

SELECT * FROM keywords;

against the provided $Database (i.e. Web Data) using PSSQLite:

$Result = Invoke-SqliteQuery -DataSource $Database -Query $Query -As $As

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.