-
Notifications
You must be signed in to change notification settings - Fork 0
/
笔记.txt
33 lines (33 loc) · 1.97 KB
/
笔记.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
1.绕过检测puppeteer的文章:https://intoli.com/blog/not-possible-to-block-chrome-headless/ https://segmentfault.com/a/1190000019539509?utm_source=tag-newest
2.启动参数settings.json2文件地址:https://chromium.googlesource.com/chromium/src/+/8921b24098caf2612b3e30694ce4250781c2cdca/third_party/WebKit/Source/core/frame/Settings.json5
3.谷歌浏览器所有启动参数:https://peter.sh/experiments/chromium-command-line-switches/
4.puppeteer默认启动参数:
'--disable-background-networking',
'--enable-features=NetworkService,NetworkServiceInProcess',
'--disable-background-timer-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-breakpad',
'--disable-client-side-phishing-detection',
'--disable-component-extensions-with-background-pages',
'--disable-default-apps',
'--disable-dev-shm-usage',
'--disable-extensions',
'--disable-features=TranslateUI',
'--disable-hang-monitor',
'--disable-ipc-flooding-protection',
'--disable-popup-blocking',
'--disable-prompt-on-repost',
'--disable-renderer-backgrounding',
'--disable-sync',
'--force-color-profile=srgb',
'--metrics-recording-only',
'--no-first-run',
'--enable-automation',
'--password-store=basic',
'--use-mock-keychain',
5.也可以通过.chrome://flags/#enable-nacl 查看chrome一些参数设置
6.puppeteer优化https://blog.it2048.cn/article-puppeteer-speed-up/
7.命令行启动谷歌时自动加载插件--load-extension="C:\Users\lenovo\Desktop\crawlIte\crawlItem" --disable-extensions-except="C:\Users\lenovo\Desktop\crawlIte\crawlItem"
5.C:\Users\lenovo\AppData\Local\Google\Chrome\User Data\SwReporter\77.225.200\manifest.json 里面的manifest.json的allow-report-logs设置为false,禁止software_reporter_tool.exe运行 chromium不用设置
6.懒加载图片quic打开网页:--enable-lazy-image-loading --enable-quic
7.不显示图片:--blik-settings=imagesEnable=false