Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--use-related-website-set

What does --use-related-website-set do?

Allows the manual specification of a Related Website Set. The set should be provided as a stringified JSON object, whose format matches the format of the JSON in https://github.com/GoogleChrome/related-website-sets.

Usage

CLILaunch Chrome with --use-related-website-set using CLI

chrome --use-related-website-set

PuppeteerLaunch Chrome with --use-related-website-set using Puppeteer

const browser = await puppeteer.launch({
  args: ['--use-related-website-set']
});

PlaywrightLaunch Chrome with --use-related-website-set using Playwright

const browser = await chromium.launch({
  args: ['--use-related-website-set']
});

SeleniumLaunch Chrome with --use-related-website-set using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--use-related-website-set')

driver = webdriver.Chrome(options=options)