Skip to content

Commit dea2450

Browse files
committed
Update "omnibox" preferences
1 parent f88c134 commit dea2450

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,16 @@ def _set_chrome_options(
756756
prefs["download.prompt_for_download"] = False
757757
prefs["download.directory_upgrade"] = True
758758
prefs["safebrowsing.enabled"] = False
759+
prefs["omnibox-max-zero-suggest-matches"] = 0
760+
prefs["omnibox-use-existing-autocomplete-client"] = 0
761+
prefs["omnibox-trending-zero-prefix-suggestions-on-ntp"] = 0
762+
prefs["omnibox-local-history-zero-suggest-beyond-ntp"] = 0
763+
prefs["omnibox-on-focus-suggestions-contextual-web"] = 0
764+
prefs["omnibox-on-focus-suggestions-srp"] = 0
765+
prefs["omnibox-zero-suggest-prefetching"] = 0
766+
prefs["omnibox-zero-suggest-prefetching-on-srp"] = 0
767+
prefs["omnibox-zero-suggest-prefetching-on-web"] = 0
768+
prefs["omnibox-zero-suggest-in-memory-caching"] = 0
759769
prefs["default_content_setting_values.notifications"] = 0
760770
prefs["content_settings.exceptions.automatic_downloads.*.setting"] = 1
761771
prefs["safebrowsing.disable_download_protection"] = True
@@ -2236,6 +2246,16 @@ def get_local_driver(
22362246
"download.prompt_for_download": False,
22372247
"download.directory_upgrade": True,
22382248
"safebrowsing.enabled": False,
2249+
"omnibox-max-zero-suggest-matches": 0,
2250+
"omnibox-use-existing-autocomplete-client": 0,
2251+
"omnibox-trending-zero-prefix-suggestions-on-ntp": 0,
2252+
"omnibox-local-history-zero-suggest-beyond-ntp": 0,
2253+
"omnibox-on-focus-suggestions-contextual-web": 0,
2254+
"omnibox-on-focus-suggestions-srp": 0,
2255+
"omnibox-zero-suggest-prefetching": 0,
2256+
"omnibox-zero-suggest-prefetching-on-srp": 0,
2257+
"omnibox-zero-suggest-prefetching-on-web": 0,
2258+
"omnibox-zero-suggest-in-memory-caching": 0,
22392259
"safebrowsing.disable_download_protection": True,
22402260
"default_content_setting_values.notifications": 0,
22412261
"default_content_settings.popups": 0,

0 commit comments

Comments
 (0)