Created
March 2, 2019 08:40
-
-
Save hoggren/7fba964e2d7bd585daf2e80e5a0f193c to your computer and use it in GitHub Desktop.
Deletes autocreated Chrome search engines, i.e. keyword search in address bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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