Skip to content

Instantly share code, notes, and snippets.

@hoggren
Created March 2, 2019 08:40
Show Gist options
  • Save hoggren/7fba964e2d7bd585daf2e80e5a0f193c to your computer and use it in GitHub Desktop.
Save hoggren/7fba964e2d7bd585daf2e80e5a0f193c to your computer and use it in GitHub Desktop.
Deletes autocreated Chrome search engines, i.e. keyword search in address bar
-- SQLite database file: Web Data
-- Locations:
-- * MacOS: ~/Library/Application Support/Google/Chrome/Default
-- * Windows: %LOCALAPPDATA%/Google/Chrome/Default
--
-- Reference: https://superuser.com/questions/276069/google-chrome-automatically-adding-websites-to-my-list-of-search-engines
CREATE TRIGGER no_auto_keywords
BEFORE INSERT
ON keywords
WHEN (NEW.originating_url IS NOT NULL AND NEW.originating_url != '')
BEGIN
SELECT RAISE(IGNORE);
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment