from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2,\
'profile.managed_default_content_settings.javascript': 2}
chrome_options.add_experimental_option("prefs", prefs)
driver = webdriver.Chrome(chrome_options=chrome_options)
driver.get("https://toster.ru/q/592318")
ChromeOptions option = new ChromeOptions();
option.addArguments("--disable-javascript");
WebDriver driver = new ChromeDriver(option);