Google Chrome浏览器如何设置默认隐身启动及部分命令行启动参数
保护个人隐私的网络浏览器设置技巧
保护个人隐私的网络浏览器设置技巧随着互联网和信息技术的迅猛发展,个人隐私的保护变得越来越重要。
网络浏览器作为我们上网时最常用的工具,也成为了我们个人隐私泄露的突破口。
为了提高个人隐私的安全性,我们需要合理设置网络浏览器的配置。
本文将介绍一些保护个人隐私的网络浏览器设置技巧。
一、使用隐私模式浏览大多数主流浏览器都提供了隐私模式(隐身模式、无痕浏览等)的功能。
在隐私模式下,浏览器不会保存我们的浏览历史、Cookie、表单数据等个人信息。
打开隐私模式的方法通常是按下快捷键Ctrl+Shift+N(Windows系统)或者Command+Shift+N(Mac系统)。
使用隐私模式浏览可以更好地保护个人隐私,尤其是在使用公共设备或者他人电脑时,使用隐私模式可以避免浏览记录留存和个人信息泄露的风险。
二、清除浏览器数据即使不使用隐私模式浏览,我们也可以通过清除浏览器数据来保护个人隐私。
大多数浏览器都提供了清除浏览器数据的功能,例如清除浏览历史、缓存文件、Cookie等。
定期清理这些数据可以减少个人信息被他人获取的可能性。
在浏览器设置中,可以找到相关的选项进行配置。
建议设置浏览器每次关闭时自动清除浏览数据,这样可以更加方便地保护个人隐私。
三、禁用第三方Cookie第三方Cookie是从其他网站加载的Cookie文件,用于跟踪用户的浏览行为,并可能收集个人信息。
为了保护个人隐私,我们可以在浏览器中禁用第三方Cookie。
各种浏览器的设置位置可能不同,一般在浏览器隐私或安全设置的Cookie选项中可以找到相应的配置项。
四、使用浏览器扩展程序浏览器扩展程序是一种可以增强浏览器功能的插件,我们可以利用一些专门保护个人隐私的扩展程序来加强个人隐私的保护。
例如,一些广告拦截器可以屏蔽网页中的广告,同时也减少了广告商对个人隐私的侵扰。
另外,一些隐私保护工具如隐私搜索引擎、密码管理器等也可以通过安装对应的浏览器扩展程序来提供便捷的隐私保护功能。
ChromeOptions常用配置与WebUI实操
ChromeOptions常⽤配置与WebUI实操from selenium import webdriverfrom time import sleep#Chrome_options常规操作#1.如何在调⽤浏览器时候就是最⼤化窗体?#2.⾃动化启动时,如何驱动浏览器警告条#3.浏览器在启动时,如何有缓存#4.浏览器如何在隐⾝模式与常规模式切换options = webdriver.ChromeOptions()#窗体最⼤化options.add_argument('start-maximized')#⽆头模式# options.add_argument('--headless')#去掉警告# options.add_argument('disabled-infobars')#这是⽼版本的Chrome浏览器去掉警告的形式,现在已不可⽤#去掉开发者警告options.add_experimental_option('useAutomationExtension',False)#去掉黄条options.add_experimental_option('excludeSwitches',['enable-automation'])#去掉隐⾝模式options.add_argument('incognito')#读取本地缓存,通过浏览器chrome://version# 这个操作⾮常不推荐使⽤,输⼊这个参数后,读取和加载的时候会很久options.add_argument( r'--user-data-dir=C:\Users\Administrator\AppData\Local\Google\Chrome\User Data')driver = webdriver.Chrome(options=options)driver.get("")sleep(2)#切换句柄需先关闭之前的句柄页driver.close()#类似input相关的输⼊框,如果原本就有内容,需要先clear后再输⼊内容input = driver.find_element_by_xpath('//input[@type="number"]')input.clear()input.send_keys(10)。
google浏览器设置默认主页怎么设置
google浏览器设置默认主页怎么设置
推荐文章
edge浏览器主页被hao123劫持怎么解决热度:启动IE浏览器打开两个主页怎么回事热度:怎么用360卫士来设置默认软件下载安装分类热度:怎么将ie10浏览器设置为电脑默认浏览器热度: ie10浏览器怎么把主页设置为默认空白页热度:
google浏览器设置主页的方法非常简单,下面由店铺为你整理了google浏览器设置默认主页怎么设置的相关方法,希望对你有帮助! google浏览器设置默认主页方法如下
首先点击打开桌面的快捷方式图标。
点击快捷方式后,进入到浏览器主页。
进入主页后,这时我们点击地址栏后面一个类似“列表”图标。
点击图标后,弹出一个列表,这里我们选择点击“设置”选项。
点击设置选项后,进入到设置页面。
在设置页面中我们找到“启动时”这一选项,并点击启动时的第三个选项“打开特定网页或一组网页"
点选“打开特定网页或一组网页"后,我们接着点击它后面的设置网页,并在弹出来的窗口中加入我们想设置的主页网址即可。
设置好后,重新打开浏览器,查看是否设置成功。
Chrome所有运行参数大曝光
Chrome所有运行参数大曝光Chrome所有运行参数大曝光除了Chrome的这些可用的参数外你好知道其他的吗?–single-process 单进程运行Google Chrome–start-maximized 启动Google Chrome就最大化–disable-java 禁止Java(Google Chrome的第二个安全漏洞就是Java的,真可恶!严格的说这是老版本的webkit引起的。
)–no-sandbox 非沙盒模式运行下面是所有的Chrome 运行参数一览:–disable-hang-monitorSuppresses hang monitor dialogs in renderer processes.–disable-metricsCompletely disables UMA metrics system.–disable-metrics-reportingDisables only the sending of metrics reports. In contrast to kDisableMetrics, this executes all the code that a normal client would use for reporting, except the report is dropped rather than sent to the server. This is useful for finding issues in the metrics code during UI and performance tests.–assert-testCauses the browser process to throw an assertion on startup.–renderer-assert-testCauses the renderer process to throw an assertion on launch.–crash-testPerforms a crash test when the browser is starte.–renderer-crash-testCauses the renderer process to crash on launch.–renderer-startup-dialogUse this argument when you want to see the child processes as soon as Chrome start.–plugin-startup-dialogCauses the plugin process to display a dialog on launch.–testshell-startup-dialogCauses the test shell process to display a dialog on launch.–plugin-launcherSpecifies a command that should be used to launch the plugin process. Usefulfor running the plugin process through purify or quantify. Ex: –plugin-launcher=”path\to\purify /Run=yes.–plugin-launche.–channelThe value of this switch tells the child process whichIPC channel the browser expects to use to communicate with it.–testing-channelThe value of this switch tells the app to listen for and broadcasttesting-related messages on IPC channel with the given ID.–homepageThe value of this switch specifies which page will be displayed in newly-opened tabs. We need this for testing purposes so that the UI tests don’t depend on what comes up for .–start-renderers-manuallyWhen this switch is present, the browser will throw up a dialog boxasking the user to start a renderer process independently ratherthan launching the renderer itself. (This is useful for debugging..–rendererCauses the process to run as renderer instead of as browser.–renderer-pathPath to the executable to run for the renderer subproces.–pluginCauses the process to run as plugin hos.–single-processRuns the renderer and plugins in the same process as the browse.–process-per-tabRuns each set of script-connected tabs (i.e., a BrowsingInstance) in its ownrenderer process. We default to using a renderer process for eachsite instance (i.e., group of pages from the same registered domain withscript connections to each other).–process-per-siteRuns a single process for each site (i.e., group of pages from the sameregistered domain) the user visits. We default to using a renderer processfor each site instance (i.e., group of pages from the same registereddomain with script connections to each other).–in-process-pluginsRuns plugins inside the renderer proces.–no-sandboxRuns the renderer outside the sandbox.–safe-pluginsRuns the plugin processes inside the sandbox.–trusted-pluginsExcludes these plugins from the plugin sandbox.This is a comma separated list of plugin dlls name and activex clsid.–test-sandboxRuns the security test for the sandbox.–user-data-dirSpecifies the user data directory, which is where the browser will lookfor all of its state.–appSpecifies that the associated value should be launched in “application” mode.–upload-fileSpecifies the file that should be uploaded to the provided application. Thisswitch is expected to be used with –app option.–dom-automationSpecifies if the dom_automation_controller_ needs to be bound in therenderer. This binding happens on per-frame basis and hence can potentiallybe a performance bottleneck. One should only enable it when automatingdom based tests.–plugin-pathTells the plugin process the path of the plugin to loa.–js-flagsSpecifies the flags passed to JS engin.–geoidThe GeoID we should use. This is normally obtained from the operating systemduring first run and cached in the preferences afterwards. This is a numericvalue; see /en-us/library/ms776390.aspx .–langThe language file that we want to try to open. Of the form language[-country] where language is the 2 letter code from ISO-639.–debug-childrenWill add kDebugOnStart to every child processes. If a value is passed, itwill be used as a filter to determine if the child process should have thekDebugOnStart flag passed on or not.–debug-on-startCauses the process to start the JIT debugger on itself (mainly used by –debug-children.–wait-for-debugger-childrenWill add kWaitForDebugger to every child processes. If a value is passed, itwill be used as a filter to determine if the child process should have thekWaitForDebugger flag passed on or not.–wait-for-debuggerWaits for a debugger for 60 second.–log-filter-prefixWill filter log messages to show only the messages that are prefixedwith the specified valu.–enable-loggingForce logging to be enabled. Logging is disabled by default in releasebuilds.–dump-histograms-on-exitDump any accumualted histograms to the log when browser terminates (requireslogging to be enabled to really do anything). Used by developers and testscripts.–disable-loggingForce logging to be disabled. Logging is enabled by default in debugbuilds.–log-levelSets the minimum log level. Valid values are from 0 to 3:INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.–remote-shell-portEnable remote debug / automation shell on the specified por.–uninstallRuns un-installation steps that were done by chrome first-run.–omnibox-popup-countNumber of entries to show in the omnibox popup.–uninstallomnibox-popup-countRemoves the previous set suggestion coun.–automation-channelThe value of this switch tells the app to listen for and broadcastautomation-related messages on IPC channel with the given ID.–restore-last-sessionIndicates the last session should be restored on startup. This overridesthe preferences value and is primarily intended for testing.–record-mode–playback-modeChrome supports a playback and record mode. Record mode saves *everything*to the cache. Playback mode reads data exclusively from the cache. Thisallows us to record a session into the cache and then replay it at will.–no-eventsDon’t record/playback events when using record & playback.–hide-icons–show-iconsMake Windows happy by allowing it to show “Enable access to this program”checkbox in Add/Remove Programs->Set Program Access and Defaults. Thisonly shows an error box because the only way to hide Chrome is byuninstalling it.–make-default-browserMake Chrome default browse.–proxy-serverUse a specified proxy server, overrides system settings. This switch onlyaffects HTTP and HTTPS requests.–dns-log-details–dns-prefetch-disableChrome will support prefetching of DNS information. Until this becomesthe default, we’ll provide a command line switch.–debug-printEnables support to debug printing subsystem.–allow-all-activexAllow initialization of all activex controls. This is only to help websitedevelopers test their controls to see if they are compatible in Chrome.Note there’s a duplicate value in activex_ (to avoid dependency on chrome module). Please change both locations at the same time.–disable-dev-toolsBrowser flag to disable the web inspector for all renderers.–always-enable-dev-toolsEnable web inspector for all windows, even if they’re part of the browser.Allows us to use our dev tools to debug browser windows itself.–memory-modelConfigure Chrome’s memory model.Does chrome really need multiple memory models? No. Butwe get a lotof concerns from individuals about how the changes work on *their*system, and we need to be able to experiment with a few choices.–tab-count-to-load-on-session-restoreUsed to set the value of SessionRestore::num_tabs_to_load_. See session_restore.h for details.const wchar_t kTabCountToLoadOnSessionRestore[] .–memory-profileEnable dynamic loading of the Memory Profiler DLL, which will traceall memory allocations during the run.–enable-file-cookiesBy default, cookies are not allowed on file://. They are needed in fortesting, for example page cycler and layout tests. See bug 1157243.–start-maximizedStart the browser maximized, regardless of any previous settings.TODO(pjohnson): Remove this once bug 1137420 is fixed. We are using thisas a workaround for not being able to use moveTo and resizeTo on atop-level window.–enable-watchdogSpawn threads to watch for excessive delays in specified message loops.User should set breakpoints on Alarm() to examineproblematic thread.Usage: -enable-watchdog=[ui][io]Order of the listed sub-arguments does not matter.–first-runDisplay the First Run experience when the browser is started, regardless ofwhether or not it’s actually the first run.–message-loop-strategy–message-loop-histogrammerEnable histograming of tasks served by MessageLoop. See about:histograms/Loopfor results, which show frequency of messages on each thread, including APCcount, object signalling count, etc.–importPerform importing from another browser. The value associated with thissetting encodes the target browser and what items to import.–silent-dump-on-dcheckChange the DCHECKS to dump memory and continue instead of crashing.This is valid only in Release mode when –enable-dcheck is specified.–disable-prompt-on-repostNormally when the user attempts to navigate to a page that was the result ofa post we prompt to make sure they want to. This switch may be used todisable that check. This switch is used during automated testing.–disable-popup-blockingDisable pop-up blocking.–disable-javascriptDon’t execute JavaScript (browser JS like the new tab page still runs).–disable-javaPrevent Java from running.–disable-pluginsPrevent plugins from running.–disable-imagesPrevent images from loading.–use-lf-heapUse the low fragmentation heap for the CRT.–gears-plugin-pathDebug only switch to specify which gears plugin dll to load.–gears-in-rendererSwitch to load Gears in the renderer process.–enable-p13n–javascript-debugger-pathAllow loading of the javascript debugger UI from the filesystem.–new-httpEnable new HTTP stack.想知道都有些啥用的就当小白鼠挨个试试吧,当然可以通过评论来分享您的测试效果在测试这些参数前需要先退出所有chrome程序,再启动才能看到效果!。
谷歌浏览器Chrome使用技巧
谷歌浏览器Chrome使用技巧谷歌发布了google chrome浏览器,下面就谷歌浏览器的一些使用技巧进行总结,希望对您有所帮助。
Google Chrome 功能:地址栏在谷歌浏览器中,只需一个小框就可以到达网络上的任何地方。
地址栏位于常规谷歌浏览器窗口上方,也可当作搜索框使用,从而简化了您的互联网体验。
您还可以用它为网站添加书签,并通过它了解网站的安全性。
搜索只要在地址栏中输入您的搜索查询,它就会根据您所输入的信息就相关查询和热门网站自动提出建议。
(除非您的默认搜索引擎采用其他服务,否则,Google Suggest 会作为默认的服务为您提供自动建议。
)您可以在地址栏中使用常用的搜索布尔逻辑符号。
选择有关执行快速搜索的其他提示。
访问网页如果您知道要访问的特定网址,请直接在地址栏中输入该网址。
按下键盘上的 Enter 键,或点击箭头图标加载网页。
在您键入的同时,谷歌浏览器也会自动搜索您的浏览历史记录,并在下拉菜单底部显示相匹配结果的总数。
谷歌浏览器速度很快,您可能很难停止网页加载过程。
加载网页时,地址栏尾部的箭头图标会变成"x"图标。
点击该图标即可停止加载过程。
您可以复制网址,右键点击地址栏,然后选择粘贴并转到来迅速打开网站。
创建书签如果您发现了很有趣的网页,希望以后再次访问,则可以点击谷歌浏览器工具栏上的星标创建书签。
这时会出现确认添加书签的球形框。
要调整书签的名称,请修改"名称"字段中的文本。
使用"文件夹"下拉菜单选择存储书签的位置。
要调整书签的网址,请点击修改书签链接。
如果不小心点击了星标,可以点击撤消链接迅速还原此操作。
了解有关删除书签的详情。
网站安全性如果谷歌浏览器检测到您尝试访问的网站将使用安全套接字层安全地传输数据,您会看到以下情形:地址栏的背景颜色变成金色。
已建立安全套接字层安全连接的网站,其网址中的"https"会以绿色显示。
linux中chrome命令的用法
linux中chrome命令的用法在Linux系统中,Google Chrome是最受欢迎的Web浏览器之一、它提供了许多命令和选项,可以在终端中使用来定制和优化浏览器的行为。
本文将介绍Linux中Chrome命令的用法,帮助您更好地管理和使用这个强大的浏览器。
1. 打开Chrome浏览器:要打开Chrome浏览器,只需要在终端中键入chrome命令并按下Enter键即可。
2. 打开指定URL:如果您希望在打开Chrome浏览器的同时打开一个指定的URL,可以使用以下命令:chrome [URL]3. 打开新窗口:要在Chrome浏览器中打开一个新窗口,使用以下命令:chrome --new-windowchrome --new-tab5. 隐藏地址栏和工具栏:如果您希望在启动Chrome浏览器时隐藏地址栏和工具栏,可以使用以下命令:chrome --app=[URL]6. 启用开发者工具:要在Chrome浏览器中启用开发者工具,使用以下命令:chrome --auto-open-devtools-for-tabs7. 控制用户数据目录:Chrome浏览器的用户数据目录包含用户的个人数据,例如书签、扩展和配置文件。
要为特定的用户指定自定义用户数据目录,可以使用以下命令:chrome --user-data-dir=/path/to/user/data/directory8. 启用无痕浏览模式:无痕浏览模式可以防止Chrome浏览器保存用户的浏览历史记录、Cookie和其他数据。
要以无痕浏览模式启动Chrome 浏览器,使用以下命令:chrome --incognito9. 模拟移动设备:Chrome提供了模拟移动设备的功能,您可以使用以下命令进行模拟:chrome --user-agent="Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/62.0.3202.89 Mobile Safari/537.36"10. 禁用缓存:如果您希望在启动Chrome浏览器时禁用缓存,可以使用以下命令:chrome --disable-application-cache11. 禁用JavaScript:要禁用浏览器中的JavaScript功能,可以使用以下命令:chrome --disable-javascript12.禁用弹出窗口:如果您希望在浏览网页时禁用弹出窗口,可以使用以下命令:chrome --disable-popup-blocking13.禁用拓展:要在浏览器启动时禁用所有拓展,可以使用以下命令:chrome --disable-extensions14.配置代理服务器:如果您需要使用代理服务器进行浏览,可以使用以下命令配置代理:chrome --proxy-server="proxy-server-address:port"15.截取网页截图:要在终端中通过命令截取指定URL的网页截图,可以使用以下命令:chrome --headless --disable-gpu --screenshot [URL]以上是一些常见的在Linux中使用的Chrome命令及其用法。
Chrome 浏览器7个隐藏功能和使用技巧
Chrome浏览器7个隐藏功能和使用技巧Chrome 浏览器支持丰富的第三方扩展,使其增加了很多实用的功能,提升网页浏览操作效率。
比如集成多个命令的地址栏、有趣的实验功能页面chrome://flags、丰富的快捷键组合操作、高级好玩的开发者工具。
无需额外安装扩展,利用好这些被隐藏的内置功能,同样可以让Chrome 浏览器用得更顺手。
实验功能页面开启命令:chrome://flags这条命令将打开Chrome 浏览器实验功能和特性的页面,在这里提供了大量处于实验阶段的功能选项。
页面按照可用(Available)和不可用(Unavailable)两种分类方法,顶部位置提供的搜索栏,支持即时反馈搜索结果。
当然如果你明确知道要找的实验功能选项名称,可以直接在浏览器地址栏输入chrome://flags 选项名称,比如输入chrome://flags/#enable-desktop-pwas,快速转至并高亮显示了查找结果。
设置页面开启命令:chrome://settingsChrome 设置选项分为基础和高级两部分,在设置页面可以单独设置浏览器登陆用户、自动填充、浏览器外观(主题背景、字号字体)、搜索引擎等,高级选项包括了隐私和安全、语言、下载内容等较少使用的选项。
通过chrome://settings/设置选项名称类似的命令直接定位到对应的设置选项。
在设置选项中,对我来说最常用的是自动填充的密码功能,输入chrome://settings/passwords同样可以打开已保存密码的页面,碰到要查看某个网站账号保存的密码是什么,只需要通过这个页面的显示密码按钮,帮助用户轻松找到账号密码信息。
扩展程序页面开启命令:chrome://extensions使用这条命令减少了通过菜单选项打开浏览器扩展程序的点击步骤,扩展页面提供了开关开发者模式、手动加载已解压的扩展程序、打包扩展程序以及更新的功能。
另外在页面左边栏还可以切换键盘快捷键标签页,或者在地址栏输入chrome://extensions/shortcuts,用户可以单独为每个扩展设置快捷键组合,碰到截图等类型的扩展还设置快捷键实现区域截图、滚动截图等功能。
用Chrome浏览器隐私模式玩隐身冲浪
用Chrome浏览器隐私模式玩隐身冲浪互联网给大家带来方便的同时,也会有一些隐私泄露的危险。
我们在尽情冲浪的时候,浏览器会记录一些web 访问的信息,如果想要进行比较隐私的操作,比如在别人的电脑上访问Web邮箱、浏览一些比较机密的资料等等,肯定不想让其他人看到这些浏览痕迹。
Google Chrome浏览器提供了一种隐私模式,只要在Chrome浏览器的“隐身窗口”中浏览网页,不会留下历史记录、登录账号等信息,既可以有效防止互用电脑造成的隐私泄露,还能防范一些窥探Cookie类的软件偷窃秘密。
Chrome浏览器隐身窗口能做什么在Chrome浏览器的隐私模式下,用户打开的网页和下载的文件不会记录到浏览历史记录以及下载历史记录中。
用户关闭全部隐身窗口后,系统会删除在隐身模式下访问互联网产生的所有的Cookie。
Google Chrome 浏览器会保存用户在隐身模式下对书签和常规设置所做的更改。
打开Chrome浏览器的隐身窗口用鼠标左键点击Chrome浏览器界面右上角的的扳手图标,从下拉菜单中选择“新建隐身窗口”。
快捷键为“Ctrl+Shift+N”。
Chrome浏览器会打开一个新窗口,这个新窗口就是新建的“隐身窗口”,窗口左上角会带有一个隐形人图标(一些操作系统的工具栏中也会出现带有隐形人元素的Chrome浏览器程序图标),这时我们就可以在这个隐身窗口中放心浏览我们需要访问的网页了。
浏览完毕之后再按“Ctrl+H”快捷键,刚才的网站访问记录将不会在历史记录中出现。
特别提醒:Chrome浏览器的隐身浏览模式只是让本地的Chrome浏览器停止记录用户访问网站的行为信息,但被访问网站端可能会留有访问记录,同时保存到计算机的所有文件仍会保留在电脑中,如果想要彻底去除这些浏览痕迹,还需要在网站应用服务中做相关的隐私设置。
chromechromium启动命令行开关参数switchescommandlineflags
chromechromium启动命令⾏开关参数switchescommandlineflagsLast automated update occurred on 2020-08-12.out\Default\chrome1.exe --enable-skia-benchmarking --enable-gpu-benchmarking --no-sandbox --process-per-site --remote-debugging-port=9222 --enable-logging --disable-gpu-rasterization --disable-gpu rem --ui-show-composited-layer-borders --ui-show-layer-animation-bounds --ui-show-paint-rects --ui-show-screenspace-rectsrem http://localhost:8080/a.htmlrem --remote-debugging-port=9222rem --enable-logging --v=1 --disable-gpu-vsync --vmodule=layer_tree_host=3 --ui-show-composited-layer-bordersrem --vmodule=metrics=2,image_animation_controller=2,layer_tree_host_impl=2 --v=0 --trace-startup=ccrem --show-composited-layer-borders --show-screenspace-rects1,常⽤参数软渲染与gpu渲染切换:--disable-gpu-rasterization --disable-gpu启动时指定⽤户数据的存放⽬录--user-data-dir=UserDataDirView Code源码存放:/ / chrome_base/base_switches.h// Copyright (c) 2012 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.#include "base/base_switches.h"#include "build/build_config.h"namespace switches {// Delays execution of TaskPriority::BEST_EFFORT tasks until shutdown.const char kDisableBestEffortTasks[] = "disable-best-effort-tasks";// Disables the crash reporting.const char kDisableBreakpad[] = "disable-breakpad";// Comma-separated list of feature names to disable. See also kEnableFeatures.const char kDisableFeatures[] = "disable-features";// Force disabling of low-end device mode when set.const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode";// Indicates that crash reporting should be enabled. On platforms where helper// processes cannot access to files needed to make this decision, this flag is// generated internally.const char kEnableCrashReporter[] = "enable-crash-reporter";// Comma-separated list of feature names to enable. See also kDisableFeatures.const char kEnableFeatures[] = "enable-features";// Force low-end device mode when set.const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode";// This option can be used to force field trials when testing changes locally.// The argument is a list of name and value pairs, separated by slashes. If a// trial name is prefixed with an asterisk, that trial will start activated.// For example, the following argument defines two trials, with the second one// activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/" This option can// also be used by the browser process to send the list of trials to a// non-browser process, using the same format. See// FieldTrialList::CreateTrialsFromString() in field_trial.h for details.const char kForceFieldTrials[] = "force-fieldtrials";// Generates full memory crash dump.const char kFullMemoryCrashReport[] = "full-memory-crash-report";// Logs information about all tasks posted with TaskPriority::BEST_EFFORT. Use// this to diagnose issues that are thought to be caused by// TaskPriority::BEST_EFFORT execution fences. Note: Tasks posted to a// non-BEST_EFFORT UpdateableSequencedTaskRunner whose priority is later lowered// to BEST_EFFORT are not logged.const char kLogBestEffortTasks[] = "log-best-effort-tasks";// Suppresses all error dialogs when present.const char kNoErrorDialogs[] = "noerrdialogs";// Starts the sampling based profiler for the browser process at startup. This// will only work if chrome has been built with the gn arg enable_profiling =const char kProfilingAtStart[] = "profiling-at-start";// Specifies a location for profiling output. This will only work if chrome has// been built with the gyp variable profiling=1 or gn arg enable_profiling=true.//// {pid} if present will be replaced by the pid of the process.// {count} if present will be incremented each time a profile is generated// for this process.// The default is chrome-profile-{pid} for the browser and test-profile-{pid}// for tests.const char kProfilingFile[] = "profiling-file";// Controls whether profile data is periodically flushed to a file. Normally// the data gets written on exit but cases exist where chromium doesn't exit// cleanly (especially when using single-process). A time in seconds can be// specified.const char kProfilingFlush[] = "profiling-flush";// When running certain tests that spawn child processes, this switch indicates // to the test framework that the current process is a child process.const char kTestChildProcess[] = "test-child-process";// When running certain tests that spawn child processes, this switch indicates // to the test framework that the current process should not initialize ICU to// avoid creating any scoped handles too early in startup.const char kTestDoNotInitializeIcu[] = "test-do-not-initialize-icu";// Sends trace events from these categories to a file.// --trace-to-file on its own sends to default categories.const char kTraceToFile[] = "trace-to-file";// Specifies the file name for --trace-to-file. If unspecified, it will// go to a default file name.const char kTraceToFileName[] = "trace-to-file-name";// Gives the default maximal active V-logging level; 0 is the default.// Normally positive values are used for V-logging levels.const char kV[] = "v";// Gives the per-module maximal V-logging levels to override the value// given by --v. E.g. "my_module=2,foo*=3" would change the logging// level for all code in source files "my_module.*" and "foo*.*"// ("-inl" suffixes are also disregarded for this matching).//// Any pattern containing a forward or backward slash will be tested// against the whole pathname and not just the module. E.g.,// "*/foo/bar/*=2" would change the logging level for all code in// source files under a "foo/bar" directory.const char kVModule[] = "vmodule";// Will wait for 60 seconds for a debugger to come to attach to the process. const char kWaitForDebugger[] = "wait-for-debugger";#if defined(OS_WIN)// Disable high-resolution timer on Windows.const char kDisableHighResTimer[] = "disable-highres-timer";// Disables the USB keyboard detection for blocking the OSK on Win8+.const char kDisableUsbKeyboardDetect[] = "disable-usb-keyboard-detect"; #endif#if defined(OS_LINUX) && !defined(OS_CHROMEOS)// The /dev/shm partition is too small in certain VM environments, causing// Chrome to fail or crash (see /715363). Use this flag to// work-around this issue (a temporary directory will always be used to create// anonymous shared memory files).const char kDisableDevShmUsage[] = "disable-dev-shm-usage";#endif#if defined(OS_POSIX)// Used for turning on Breakpad crash reporting in a debug environment where // crash reporting is typically compiled but disabled.const char kEnableCrashReporterForTesting[] ="enable-crash-reporter-for-testing";#endif#if defined(OS_ANDROID)// Enables the reached code profiler that samples all threads in all processes// to determine which functions are almost never executed.const char kEnableReachedCodeProfiler[] = "enable-reached-code-profiler";#endif#if defined(OS_LINUX)// Controls whether or not retired instruction counts are surfaced for threads// in trace events on Linux.//// This flag requires the BPF sandbox to be disabled.const char kEnableThreadInstructionCount[] = "enable-thread-instruction-count"; #endif} // namespace switchesView Code\content\public\common\content_// Copyright 2012 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.#include "content/public/common/content_switches.h"#include "build/build_config.h"#include "media/media_buildflags.h"namespace switches {// The number of MSAA samples for canvas2D. Requires MSAA support by GPU to// have an effect. 0 disables MSAA.const char kAcceleratedCanvas2dMSAASampleCount[] = "canvas-msaa-sample-count"; // Allows processing of input before a frame has been committed.// TODO(schenney): Remove when /987626 is fixed.const char kAllowPreCommitInput[] = "allow-pre-commit-input";// By default, file:// URIs cannot read other file:// URIs. This is an// override for developers who need the old behavior for testing.const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files";// Enables TLS/SSL errors on localhost to be ignored (no interstitial,// no blocking of requests).const char kAllowInsecureLocalhost[] = "allow-insecure-localhost";// Allows loopback interface to be added in network list for peer connection.const char kAllowLoopbackInPeerConnection[] ="allow-loopback-in-peer-connection";// Allow a page to show popups during its unloading.// TODO(https:///937569): Remove this in Chrome 82.const char kAllowPopupsDuringPageUnload[] = "allow-popups-during-page-unload";// Allow a page to send synchronus XHR during its unloading.// TODO(https:///1003101): Remove this in Chrome 82.const char kAllowSyncXHRInPageDismissal[] = "allow-sync-xhr-in-page-dimissal";// Uses the android SkFontManager on linux. The specified directory should// include the configuration xml file with the name "fonts.xml".// This is used in blimp to emulate android fonts on linux.const char kAndroidFontsPath[] = "android-fonts-path";// Set blink settings. Format is <name>[=<value],<name>[=<value>],...// The names are declared in Settings.json5. For boolean type, use "true",// "false", or omit '=<value>' part to set to true. For enum type, use the int// value of the enum value. Applied after other command line flags and prefs.const char kBlinkSettings[] = "blink-settings";// Causes the browser process to crash on startup.const char kBrowserCrashTest[] = "crash-test";// Causes the browser process to display a dialog on launch.const char kBrowserStartupDialog[] = "browser-startup-dialog";// Path to the exe to run for the renderer and plugin subprocesses.const char kBrowserSubprocessPath[] = "browser-subprocess-path";// Tells whether the code is running browser tests (this changes the startup URL// used by the content shell and also disables features that can make tests// flaky [like monitoring of memory pressure]).const char kBrowserTest[] = "browser-test";// Sets the tile size used by composited layers.const char kDefaultTileWidth[] = "default-tile-width";const char kDefaultTileHeight[] = "default-tile-height";// Disable antialiasing on 2d canvas.const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa";// Disables Canvas2D rendering into a scanout buffer for overlay support.const char kDisable2dCanvasImageChromium[] = "disable-2d-canvas-image-chromium"; // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.// This is controlled by policy and is kept separate from the other// enable/disable switches to avoid accidentally regressing the policy// support for controlling access to these APIs.const char kDisable3DAPIs[] = "disable-3d-apis";// Disable gpu-accelerated 2d canvas.const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas";// Disables hardware acceleration of video decode, where available.const char kDisableAcceleratedVideoDecode[] ="disable-accelerated-video-decode";// Disables hardware acceleration of video encode, where available.const char kDisableAcceleratedVideoEncode[] ="disable-accelerated-video-encode";// Disable limits on the number of backing stores. Can prevent blinking for// users with many windows/tabs and lots of memory.const char kDisableBackingStoreLimit[] = "disable-backing-store-limit";// Disable backgrounding renders for occluded windows. Done for tests to avoid// nondeterministic behavior.const char kDisableBackgroundingOccludedWindowsForTesting[] ="disable-backgrounding-occluded-windows";// Disable task throttling of timer tasks from background pages.const char kDisableBackgroundTimerThrottling[] ="disable-background-timer-throttling";// Use names from runtime_enabled_features.json5, separated by commas.// Applied after kEnableBlinkFeatures, and after other flags that change these// features.const char kDisableBlinkFeatures[] = "disable-blink-features";// Enable Web Bluetooth Scanning// This switch enables Web Bluetooth Scanning without any// permission prompt for testing.const char kEnableWebBluetoothScanning[] = "enable-web-bluetooth-scanning"; // Disables HTML5 DB support.const char kDisableDatabases[] = "disable-databases";// Disable the per-domain blocking for 3D APIs after GPU reset.// This switch is intended only for tests.const char kDisableDomainBlockingFor3DAPIs[] ="disable-domain-blocking-for-3d-apis";// Disable all versions of WebGL.const char kDisableWebGL[] = "disable-webgl";// Disable WebGL2.const char kDisableWebGL2[] = "disable-webgl2";// Disable FileSystem API.const char kDisableFileSystem[] = "disable-file-system";// Disable 3D inside of flapper.const char kDisableFlash3d[] = "disable-flash-3d";// Disable Stage3D inside of flapper.const char kDisableFlashStage3d[] = "disable-flash-stage3d";// Disable user gesture requirement for presentation.const char kDisableGestureRequirementForPresentation[] ="disable-gesture-requirement-for-presentation";// Disables GPU hardware acceleration. If software renderer is not in place,// then the GPU process won't launch.const char kDisableGpu[] = "disable-gpu";// Prevent the compositor from using its GPU implementation.const char kDisableGpuCompositing[] = "disable-gpu-compositing";// Disable proactive early init of GPU process.const char kDisableGpuEarlyInit[] = "disable-gpu-early-init";// Do not force that all compositor resources be backed by GPU memory buffers. const char kDisableGpuMemoryBufferCompositorResources[] ="disable-gpu-memory-buffer-compositor-resources";// Disable GpuMemoryBuffer backed VideoFrames.const char kDisableGpuMemoryBufferVideoFrames[] ="disable-gpu-memory-buffer-video-frames";// For tests, to disable the limit on the number of times the GPU process may be // restarted.const char kDisableGpuProcessCrashLimit[] = "disable-gpu-process-crash-limit"; // For tests, to disable falling back to software compositing if the GPU Process // has crashed, and reached the GPU Process crash limit.const char kDisableSoftwareCompositingFallback[] ="disable-software-compositing-fallback";// When using CPU rasterizing disable low resolution tiling. This uses// less power, particularly during animations, but more white may be seen// during fast scrolling especially on slower devices.const char kDisableLowResTiling[] = "disable-low-res-tiling";// Disable the thread that crashes the GPU process if it stops responding to// messages.const char kDisableGpuWatchdog[] = "disable-gpu-watchdog";// Disallow image animations to be reset to the beginning to avoid skipping// many frames. Only effective if compositor image animations are enabled. const char kDisableImageAnimationResync[] = "disable-image-animation-resync"; // Disables the IPC flooding protection.// It is activated by default. Some javascript functions can be used to flood// the browser process with IPC. This protection limits the rate at which they// can be used.const char kDisableIpcFloodingProtection[] = "disable-ipc-flooding-protection";// Suppresses hang monitor dialogs in renderer processes. This may allow slow // unload handlers on a page to prevent the tab from closing, but the Task// Manager can be used to terminate the offending process in this case.const char kDisableHangMonitor[] = "disable-hang-monitor";// Disable the RenderThread's HistogramCustomizer.const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; // Don't kill a child process when it sends a bad IPC message. Apart// from testing, it is a bad idea from a security perspective to enable// this switch.const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc";// Disables LCD text.const char kDisableLCDText[] = "disable-lcd-text";// Disable LocalStorage.// Force logging to be disabled. Logging is enabled by default in debug// builds.const char kDisableLogging[] = "disable-logging";// Disables using CODECAPI_AVLowLatencyMode when creating DXVA decoders. const char kDisableLowLatencyDxva[] = "disable-low-latency-dxva";// Disables clearing the rendering output of a renderer when it didn't commit// new output for a while after a top-frame navigation.const char kDisableNewContentRenderingTimeout[] ="disable-new-content-rendering-timeout";// Disables the Web Notification and the Push APIs.const char kDisableNotifications[] = "disable-notifications";// Disable partial raster in the renderer. Disabling this switch also disables// the use of persistent gpu memory buffers.const char kDisablePartialRaster[] = "disable-partial-raster";// Disable Pepper3D.const char kDisablePepper3d[] = "disable-pepper-3d";// Disables the Permissions API.const char kDisablePermissionsAPI[] = "disable-permissions-api";// Disable Image Chromium for Pepper 3d.const char kDisablePepper3DImageChromium[] = "disable-pepper-3d-image-chromium"; // Disables compositor-accelerated touch-screen pinch gestures.const char kDisablePinch[] = "disable-pinch";// Disable the creation of compositing layers when it would prevent LCD text.const char kDisablePreferCompositingToLCDText[] ="disable-prefer-compositing-to-lcd-text";// Disables the Presentation API.const char kDisablePresentationAPI[] = "disable-presentation-api";// Disables throttling of history.pushState/replaceState calls.const char kDisablePushStateThrottle[] = "disable-pushstate-throttle";// Disables RGBA_4444 textures.const char kDisableRGBA4444Textures[] = "disable-rgba-4444-textures";// Taints all <canvas> elements, regardless of origin.const char kDisableReadingFromCanvas[] = "disable-reading-from-canvas";// Disables remote web font support. SVG font should always work whether this// option is specified or not.const char kDisableRemoteFonts[] = "disable-remote-fonts";// Disables the RemotePlayback API.const char kDisableRemotePlaybackAPI[] = "disable-remote-playback-api";// Turns off the accessibility in the renderer.const char kDisableRendererAccessibility[] = "disable-renderer-accessibility";// Prevent renderer process backgrounding when set.const char kDisableRendererBackgrounding[] = "disable-renderer-backgrounding";// Whether the ResourceScheduler is disabled. Note this is only useful for C++// Headless embedders who need to implement their own resource scheduling.const char kDisableResourceScheduler[] = "disable-resource-scheduler";// Disable shared workers.const char kDisableSharedWorkers[] = "disable-shared-workers";// Do not use runtime-detected high-end CPU optimizations in Skia. This is// useful for forcing a baseline code path for e.g. web tests.const char kDisableSkiaRuntimeOpts[] = "disable-skia-runtime-opts";// Disable smooth scrolling for testing.const char kDisableSmoothScrolling[] = "disable-smooth-scrolling";// Disables the use of a 3D software rasterizer.const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer";// Disables the Web Speech API (both speech recognition and synthesis).const char kDisableSpeechAPI[] = "disable-speech-api";// Disables the speech synthesis part of Web Speech API.const char kDisableSpeechSynthesisAPI[] = "disable-speech-synthesis-api";// Disables adding the test certs in the network process.const char kDisableTestCerts[] = "disable-test-root-certs";// Disable multithreaded GPU compositing of web content.const char kDisableThreadedCompositing[] = "disable-threaded-compositing";// Disable multithreaded, compositor scrolling of web content.const char kDisableThreadedScrolling[] = "disable-threaded-scrolling";// Disable V8 idle tasks.const char kDisableV8IdleTasks[] = "disable-v8-idle-tasks";// Disables WebGL rendering into a scanout buffer for overlay support.const char kDisableWebGLImageChromium[] = "disable-webgl-image-chromium";// Don't enforce the same-origin policy. (Used by people testing their sites.)// Disable rasterizer that writes directly to GPU memory associated with tiles. const char kDisableZeroCopy[] = "disable-zero-copy";// Disable the video decoder from drawing directly to a texture.const char kDisableZeroCopyDxgiVideo[] = "disable-zero-copy-dxgi-video";// Specifies if the |DOMAutomationController| needs to be bound in the// renderer. This binding happens on per-frame basis and hence can potentially// be a performance bottleneck. One should only enable it when automating dom// based tests.const char kDomAutomationController[] = "dom-automation";// Disable antialiasing on 2d canvas clipsconst char kDisable2dCanvasClipAntialiasing[] = "disable-2d-canvas-clip-aa";// Disable YUV image decoding for those formats and cases where it's supported. // Has no effect unless GPU rasterization is enabled.const char kDisableYUVImageDecoding[] = "disable-yuv-image-decoding";// Logs Runtime Call Stats for Blink. --single-process also needs to be// used along with this for the stats to be logged.const char kDumpBlinkRuntimeCallStats[] = "dump-blink-runtime-call-stats";// Enables LCD text.const char kEnableLCDText[] = "enable-lcd-text";// Enable the creation of compositing layers when it would prevent LCD text.const char kEnablePreferCompositingToLCDText[] ="enable-prefer-compositing-to-lcd-text";// Enable one or more Blink runtime-enabled features.// Use names from runtime_enabled_features.json5, separated by commas.// Applied before kDisableBlinkFeatures, and after other flags that change these// features.const char kEnableBlinkFeatures[] = "enable-blink-features";// Enables Canvas 2D overlays for Windows.const char kEnableCanvas2dSwapChain[] = "enable-canvas2d-swap-chain";// Enable native caret browsing, in which a moveable cursor is placed on a web// page, allowing a user to select and navigate through non-editable text using// just a keyboard. See https:///977390 for links to i2i.const char kEnableCaretBrowsing[] = "enable-caret-browsing";// Enables experimental WebAssembly features.const char kEnableExperimentalWebAssemblyFeatures[] ="enable-experimental-webassembly-features";// Enables Web Platform features that are in development.const char kEnableExperimentalWebPlatformFeatures[] ="enable-experimental-web-platform-features";// Disables all RuntimeEnabledFeatures that can be enabled via OriginTrials.const char kDisableOriginTrialControlledBlinkFeatures[] ="disable-origin-trial-controlled-blink-features";// Specify that all compositor resources should be backed by GPU memory buffers. const char kEnableGpuMemoryBufferCompositorResources[] ="enable-gpu-memory-buffer-compositor-resources";// Enable GpuMemoryBuffer backed VideoFrames.const char kEnableGpuMemoryBufferVideoFrames[] ="enable-gpu-memory-buffer-video-frames";// When using CPU rasterizing generate low resolution tiling. Low res// tiles may be displayed during fast scrolls especially on slower devices.const char kEnableLowResTiling[] = "enable-low-res-tiling";// Force logging to be enabled. Logging is disabled by default in release// builds.const char kEnableLogging[] = "enable-logging";// Enables the type, downlinkMax attributes of the NetInfo API. Also, enables// triggering of change attribute of the NetInfo API when there is a change in// the connection type.const char kEnableNetworkInformationDownlinkMax[] ="enable-network-information-downlink-max";// Disables the video decoder from drawing to an NV12 textures instead of ARGB. const char kDisableNv12DxgiVideo[] = "disable-nv12-dxgi-video";// Enables testing features of the Plugin Placeholder. For internal use only.const char kEnablePluginPlaceholderTesting[] ="enable-plugin-placeholder-testing";// Make the values returned to window.performance.memory more granular and more // up to date in shared worker. Without this flag, the memory information is// still available, but it is bucketized and updated less frequently. This flag// also applys to workers.const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info";// Enables PrintBrowser mode, in which everything renders as though printed. const char kEnablePrintBrowser[] = "enable-print-browser";// Enables RGBA_4444 textures.const char kEnableRGBA4444Textures[] = "enable-rgba-4444-textures";// Set options to cache V8 data. (off, preparse data, or code)const char kV8CacheOptions[] = "v8-cache-options";// If true the ServiceProcessLauncher is used to launch services. This allows// for service binaries to be loaded rather than using the utility process. This// is only useful for tests.const char kEnableServiceBinaryLauncher[] = "enable-service-binary-launcher";// Enables the Skia benchmarking extensionconst char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking";// On platforms that support it, enables smooth scroll animation.const char kEnableSmoothScrolling[] = "enable-smooth-scrolling";// Enable spatial navigationconst char kEnableSpatialNavigation[] = "enable-spatial-navigation";// Blocks all insecure requests from secure contexts, and prevents the user// from overriding that decision.const char kEnableStrictMixedContentChecking[] ="enable-strict-mixed-content-checking";// Blocks insecure usage of a number of powerful features (device orientation,// for example) that we haven't yet deprecated for the web at large.const char kEnableStrictPowerfulFeatureRestrictions[] ="enable-strict-powerful-feature-restrictions";// Feature flag to enable HTTPS subresource internal redirects to compressed// versions.const char kEnableSubresourceRedirect[] = "enable-subresource-redirect";// Enabled threaded compositing for web tests.const char kEnableThreadedCompositing[] = "enable-threaded-compositing";// Enable tracing during the execution of browser tests.const char kEnableTracing[] = "enable-tracing";// The filename to write the output of the test tracing to.const char kEnableTracingOutput[] = "enable-tracing-output";// Enable screen capturing support for MediaStream API.const char kEnableUserMediaScreenCapturing[] ="enable-usermedia-screen-capturing";// Enable the mode that uses zooming to implment device scale factor behavior. const char kEnableUseZoomForDSF[] = "enable-use-zoom-for-dsf";// Enables the use of the @viewport CSS rule, which allows// pages to control aspects of their own layout. This also turns on touch-screen// pinch gestures.const char kEnableViewport[] = "enable-viewport";// Enable the Vtune profiler support.const char kEnableVtune[] = "enable-vtune-support";// Enable the Web Authentication Testing API.//https://w3c.github.io/webauthnconst char kEnableWebAuthTestingAPI[] = "enable-web-authentication-testing-api"; // Enable WebGL2 Compute context.const char kEnableWebGL2ComputeContext[] = "enable-webgl2-compute-context"; // Enables WebGL extensions not yet approved by the community.const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions";// Enables WebGL rendering into a scanout buffer for overlay support.const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium";// Enables interaction with virtual reality devices.const char kEnableWebVR[] = "enable-webvr";// Enable rasterizer that writes directly to GPU memory associated with tiles. const char kEnableZeroCopy[] = "enable-zero-copy";// Handle to the shared memory segment containing field trial state that is to// be shared between processes. The argument to this switch is the handle id// (pointer on Windows) as a string, followed by a comma, then the size of the// shared memory segment as a string.const char kFieldTrialHandle[] = "field-trial-handle";// Define an alias root directory which is replaced with the replacement string// in file URLs. The format is "/alias=/replacement", which would turn// file:///alias/some/path.html into file:///replacement/some/path.html.const char kFileUrlPathAlias[] = "file-url-path-alias";// Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU // accelerated compositing + impl-side painting. Overrides the// kEnableGpuRasterization flag.const char kForceGpuRasterization[] = "force-gpu-rasterization";// Disables OOP rasterization. Takes precedence over the enable flag.const char kDisableOopRasterization[] = "disable-oop-rasterization";// Turns on out of process raster for the renderer whenever gpu raster// would have been used. Enables the chromium_raster_transport extension. const char kEnableOopRasterization[] = "enable-oop-rasterization";// Turns on skia deferred display list for out of process raster.const char kEnableOopRasterizationDDL[] = "enable-oop-rasterization-ddl";// Enables WebGL overlays for Windows.const char kEnableWebGLSwapChain[] = "enable-webgl-swap-chain";。
chrome启动参数
chrome启动参数参数:--user-data-dir=UserDataDir用途:自订使用者帐户资料夹(如:–user-data-dir="D:\temp\Chrome User Data")参数:--start-maximized用途:启动就最大化参数:--no-sandbox用途:取消沙盒模式参数:--single-process用途:单进程(程序、执行绪)运行参数:--process-per-tab用途:每个分页使用单独进程参数:--process-per-site用途:每个站点使用单独进程参数:--in-process-plugins用途:插件不启用单独进程参数:--disable-popup-blocking用途:禁用弹出拦截参数:--disable-javascript用途:禁用JavaScript参数:--disable-java用途:禁用Java参数:--disable-plugins用途:禁用插件参数:–disable-images用途:禁用图像参数:--incognito用途:启动后直接进入直接无痕浏览(隐身模式)参数:--omnibox-popup-count=”num”用途:将网址列弹出的提示选单数量改为num个参数:--disk-cache-size用途:设置cache文件的大小,如最大值为40MB,则可添加参数--disk-cache-size=41943040参数:--disk-cache-dir用途:设定缓存存放路径,可以自行设定到高速磁盘(ramdisk),例如:--disk-cache-dir="Z:",不过个人感觉速度没有增快参数:--enable-vertical-tabs用途:调整chrome游览器标签存放在左边,非顶部–purge-memory-button--enable-internal-flash地址栏功能:about:version-显示当前版本也可以是chrome-resource://about/about:plugins-显示已安装插件,Google Chrome支持Active X!about:histograms-显示历史记录about:dns-显示DNS状态about:cache,重定向到view-cache:显示缓存页面view-cache:stats-缓存状态about:stats-显示状态about:network-很酷的网络工具about:internets-这应该算是一个彩蛋chrome-resource://new-tab/-新标签页about:memory-可以查看内存和进程占用。
google浏览器怎么设置默认主页
google浏览器怎么设置默认主页
google浏览器设置默认主页的方法非常简单,下面由店铺整理了google浏览器怎么设置默认主页的相关方法,希望对你有帮助。
google浏览器设置默认主页的方法步骤如下
第一步:我们打开Google Chrome浏览器默认主页是谷歌的首页然后我们点击箭头所示的位置如下图所示:
第二步:然后就会弹出如下图所示的内容:我们点击设置
第三步:进入到如下图所示的页面我们点击设置网页:
第四步:点击设置网页后进入了输入要设置主页的地址的页面如下图所示:
第五步:我们这里以设置百度为首页,如下图所示我们再框里输入
第六步:到这里我们就设置好了,然后我们打开Google Chrome 浏览器看我们设置的主页是否成功?如下图所示:到这里我们大功告成!。
Chrome 的可用命令行参数
谷歌浏览器Google Chrome 的可用命令行参数-allow-all-activex 允許所有的ActiveX-always-enable-dev-tools 始终启用-DEV-工具-app 应用程序-assert-test断言测试-automation-channel 自动化通道-channel 渠道-crash-test 碰撞试验-debug-children 调试儿童-debug-print 调试打印disable-accelerated-compositing 禁用加速disable-winsta 禁用渲染备用窗口disable-application-cache 禁用应用程序缓存disable-apps 禁用应用程序disable-audio 禁用音频disable-auth-negotiate-cname-lookupdisable-background-networking 禁用后台联网disable-backing-store-limit 禁用存储数量限制,可以防止在打开大量的标签窗口时,页面出现闪烁的现象。
disable-byte-range-support 禁用缓存的支持字节范围disable-click-to-play 禁用点击播放disable-connect-backup-jobs 如果超过指定的时间,则禁用建立备份的TCP连接disable-content-prefetch 禁用内容预取disable-custom-jumplist 禁用Windows 7的JumpList自定义功能disable-databases 禁用HTML5的数据库支持disable-desktop-notifications 禁用桌面通知(默认窗口启用)disable-dev-tools 禁用所有页面的渲染检测disable-device-orientation 禁用设备向导disable-webgl 禁用WebGL实验功能disable-extensions 禁用扩展disable-extensions-file-access-check 禁用扩展文件访问检查disable-geolocation 禁用地理位置的JavaScript APIdisable-glsl-translator 禁用GLSL翻译disable-hang-monitor 禁止任务管理器监视功能disable-internal-flash 禁用内部的Flash Playerdisable-ipv6 禁用IPv6disable-preconnect 禁用TCP/IP协议disable-javascript 禁用JSdisable-java 禁用Javadisable-local-storage 禁用本地存储disable-logging 禁用调试记录disable-new-tab-first-run 禁用新标签显示的通知disable-outdated-plugins 禁用过时的插件disable-plugins 禁止插件disable-popup-blocking 禁用阻止弹出窗口disable-prompt-on-repostdisable-remote-fonts 禁用远程字体disable-renderer-accessibility 禁用渲染辅助功能disable-restore-background-contents 当浏览器重新启动后之前的网址被记录disable-session-storage 禁用会话存储disable-shared-workers 禁用共享,功能尚未完成disable-site-specific-quirks 禁用指定站点设置的WebKit兼容性问题。
google浏览器设置在哪里设置
google浏览器设置在哪里设置
很多刚使用google浏览器的新手,不知道设置按钮在哪里。
下面由店铺为你整理了google浏览器设置在哪里设置的相关方法,希望对你有帮助!
google设置在哪里的解决方法如下
一:下载和安装google chrome浏览器(在百度输入“谷歌浏览器”即可搜索出下载链接)。
二:下载完毕后,点击安装文件安装即可。
三:打开谷歌浏览器,进入浏览器首页界面。
四:进入到首页后,将我们的鼠标移动到最右侧一个列表图标中,点击打开下拉列表,找到我们要找的“设置”按钮点击打开即可。
五:我们还可以直接在进入浏览器首页后,在地址栏输入chrome://settings/,也可以快速打开设置界面。
六:打开设置页面后,这时我们就可以根据自己的需要对浏览器进行相关设置。
Selenium使用ChromeOptions启动参数
Selenium使⽤ChromeOptions启动参数Selenium是⼀个⽀持多平台+多浏览器+多版本的浏览器⾃动化测试框。
Selenium在启动浏览器时可以通过desired_capbilities参数来指定需要启动的平台、浏览器、版本及浏览器启动参数。
ChromeOptions是chromedriver⽀持的浏览器启动选项。
from selenium import webdriveroptions = webdriver.ChromeOptions()options常⽤属性及⽅法为:binary_location='':指定Chrome浏览器路径debuger_address=':指定调试路径headless: ⽆界⾯模式add_argument():添加启动参数add_extension:添加本地插件add_experimental_option:添加实验选项to_capablilities:将options转为标准的capablitiies格式通过add_argument()可以添加启动参数,如初始化窗⼝尺⼨,隐⾝模式等。
options.add_argument('headless') # ⽆界⾯启动,也可以直接设置options.headless=Truedriver = webdriver.Chrome(options=options) # 相当于 driver = webdriver.Chrome(desired_capabilities=options.to_capablities())然⽽由于Chrome浏览器及chromedriver版本不断更新,笔者发现有些参数在Mac 80版Chrome + 80版chromedriver中⽆法⽣效⽣效的ChromeOptions参数# ⽆界⾯模式options.add_argument('headless')# 指定⽤户客户端-模拟⼿机浏览options.add_argument('user-agent="MQQBrowser/26 Mozilla/5.0 (Linux; U; Android 2.3.7; zh-cn; MB200 Build/GRJ22; CyanogenMod-7) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"') # 禁⽤图⽚加载options.add_argument('blink-settings=imagesEnabled=false')# 隐⾝模式options.add_argument('incognito')# ⾃动打开开发者⼯具options.add_argument("auto-open-devtools-for-tabs")# 设置窗⼝尺⼨,注意宽⾼之间使⽤逗号⽽不是xoptions.add_argument('window-size=300,600')# 设置窗⼝启动位置(左上⾓坐标)options.add_argument('window-position=120,0')# 禁⽤gpu渲染options.add_argument('disable-gpu')# 全屏启动options.add_argument('start-fullscreen')# 全屏启动,⽆地址栏options.add_argument('kiosk')# 启动时,不激活(前置)窗⼝options.add_argument('no-startup-window')...⽆效的参数options.add_argument('--start-maximized') # 最⼤化启动,⽆效options.add_argument('url=https:///') # 设置启动的url,⽆效options.add_argument('disable-infobars') # 禁⽤inforbar,⽆效options.add_argument('hide-scrollbars') # 隐藏滚动条,⽆效原因尚不清楚,有知道或解决⽅法的欢迎留⾔。
chrome命令行参数
谷歌游览器chrome命令行启动参数Google浏览器可以微调一些参数来改变或启用某些功能,让Google Chrome更符合自己想要的运行方式。
另外Google浏览器也放置了一些隐藏彩蛋(about页面)在里面,以下介绍一些参数设定和软体彩蛋,详细的参数清单可以看这里。
启动参数使用方法:右键快捷方式→属性→快捷方式→目标→在路径后面隔着半形空格添加需要的参数(如果目标路径有引号,则在引号后)。
参数参数:–user-data-dir=UserDataDir用途:自订使用者帐户资料夹(如:–user-data-dir=”D:\temp\Chrome User Data”)参数:–start-maximized用途:启动就最大化参数:–no-sandbox用途:取消沙盒模式参数:–single-process用途:单进程(程序、执行绪)运行参数:–process-per-tab用途:每个分页使用单独进程参数:–process-per-site用途:每个站点使用单独进程参数:–in-process-plugins用途:插件不启用单独进程参数:–disable-popup-blocking用途:禁用弹出拦截参数:–disable-javascript用途:禁用JavaScript参数:–disable-java用途:禁用Java参数:–disable-plugins用途:禁用插件参数:–disable-images用途:禁用图像参数:–incognito用途:启动后直接进入直接无痕浏览(隐身模式)参数:–omnibox-popup-count=”num”用途:将网址列弹出的提示选单数量改为num个参数:–disk-cache-size用途:设置cache文件的大小,如最大值为40MB,则可添加参数–disk-cache-size=41943040 参数:–disk-cache-dir用途:设定缓存存放路径,可以自行设定到高速磁盘(ramdisk),例如:–disk-cache-dir=”Z:”,不过个人感觉速度没有增快参数:–enable-vertical-tabs用途:调整chrome游览器标签存放在左边,非顶部–bookmark-menu 最新功能,书签按钮–proxy-server=127.0.0.0:port Proxy设置–enable-user-scripts 启用Greasemonkey 脚本支持功能–single-process 让Chrome 以单进程模式运行–app=URL 让Chrome 以应用程序方式运行,并且打开后跟的URL–user-data-dir=(文件夹)让Chrome 以所指定的Profile 启动–first-run 让Chrome 以第一次运行的状态启动,可以导入其他浏览器数据和设置默认浏览器–enable-extensions 打开Chrome 的扩展功能,不过好像目前就一个没啥用的扩展–load-extension=(文件夹)设置扩展所在的目录其他有用的启动参数(未验证)–enable-udd-profiles 在新版本中显示切换Profile的菜单–disable-plugins 禁用插件–User-data-dir=dir 设置缓存–single-process 单线程模式–no-sandbox 非沙箱模式–process-per-tab 每个标签使用单独进程–process-per-site 每个站点使用单独进程–in-process-plugins 插件不启动单独进程–start-maximized 启动就最大化–first-run 第一次运行–disable-popup-blocking 禁用弹出拦截–disable-javascript 禁用javascript–disable-java 禁用java–disable-images 禁用图像没什么用的启动参数(未验证)–disable-hang-monitor–disable-metrics–disable-metrics-reporting–assert-test–renderer-assert-test–crash-test–renderer-crash-test–renderer-startup-dialog–plugin-startup-dialog–testshell-startup-dialog–plugin-launcher–channel–testing-channel–homepage–start-renderers-manuallyrendererrenderer-pathpluginsafe-pluginstrusted-pluginstest-sandboxappupload-filedom-automationplugin-pathjs-flagsgeoidlangdebug-childrenwait-for-debugger-children log-filter-prefixenable-loggingdisable-logginglog-leveldump-histograms-on-exit remote-shell-port uninstallomnibox-popup-count automation-channel restore-last-sessionrecord-modeplayback-modeno-eventshide-iconsshow-iconsmake-default-browser proxy-serverdns-log-detailsdns-prefetch-disable debug-printallow-all-activexdisable-dev-toolsalways-enable-dev-tools memory-profilememory-modelenable-file-cookiesenable-watchdogmessage-loop-histogrammerimportsilent-dump-on-dcheckdisable-prompt-on-repostuse-lf-heapgears-plugin-pathgears-in-renderernew-httpjavascript-debugger-pathenable-p13n彩蛋:about:version- 显示当前版本about:plugins- 显示已安装插件about:histograms- 显示历史记录about:dns- 显示DNS状态about:cache,重定向到view-cache: 显示缓存页面view-cache:stats- 缓存状态about:stats- 显示状态about:network- 很酷的网络工具about:internets- 空白页chrome-resource://new-tab/- 新标签页about:crash- 测试崩溃的效果chrome://extensions/-查看已经安装的扩展地址栏功能:about:version –显示当前版本也可以是chrome-resource://about/ about:plugins –显示已安装插件,Google Chrome支持Active X!about:histograms –显示历史记录about:dns –显示DNS状态about:network – network Toolabout:cache, 重定向到view-cache: 显示缓存页面chrome-resource://new-tab/ –新标签页about:memory –可以查看内存和进程占用。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Google Chrome浏览器如何设置默认隐身启动及部分命令行启动参数
2011-03-16 17:33
转载自分享
最终编辑jameszhl2009
Google Chrome 浏览器的默认安装路径是在%USERPROFILE%\AppData\Local\Google\Chrome,其中的User Data文件夹下存放着cache、cookie、历史记录和书签等所有的用户数据文件,这些文件中保存着很多上网的历史记录、Cookie还有打开的Tabs很多历史数据,Chrome
浏览器具有隐身浏览的模式,在隐身模式窗口中查看的网页不会显示在浏览器历史记录或搜索历史记录中,关闭隐身窗口后也不会在计算机上留下 Cookie 之类的其他痕迹,但会保留所有下载的文件或创建的书签。
Google官方帮助文件说明中隐身模式的原理如下:“
在隐身模式下,打开的网页和下载的文件不会记录到您的浏览历史记录以及下载历史记录中。
在您关闭已打开的全部隐身窗口后,系统会删除所有新的 Cookie。
Chrome 浏览器会保存您在隐身模式下对书签和常规设置所做的更改。
”
通过在启动Chrome浏览器的快捷方式的命令行加上参数“--incognito”(注意是双短划线)就可以直接以隐身模式启动Chrome浏览,如下图:
几个实用的参数收集:
1 --user-data-dir="[PATH]" 指定用户文件夹User Data路径,可以把书签这样的用户数据保存在系统分区以外的分区。
2 --disk-cache-dir="[PATH]" 指定缓存Cache路径
3 --disk-cache-size= 指定Cache大小,单位Byte
4 --Firstrun 重置到初始状态
5 --incognito 隐身模式启动
6 --disable-javascript 禁用Javascript
参数加在chrome快捷方式的后面,加一个空格。
像这样:
C:\Users\XX\AppData\Local\Google\Chrome\Application\chrome.exe
--user-data-dir="E:\ChromeData",只有在加参数的快捷方式上启动chrome,参数才起
作用。
外部调用chrome参数就不起作用了。
这样可以分别建立有不同参数的不同快捷方式。
通过查看作为 Chrome 浏览器基础的开源版 Chromium 的源代码中的这个文件,可以找到更多的命令行开关参数,不过有些在Chrome的发行版中是没有作用的,详细的可以看这篇:/where-to-find-command-switches-for-chrome/。