From 0c321a06d05afef18aa7cc2dce5fa6c719f363a8 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 10 Apr 2021 05:45:19 -0400 Subject: [PATCH] hide scrollbars in screenshots --- archivebox/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archivebox/util.py b/archivebox/util.py index 88828c57..f8e6c6ad 100644 --- a/archivebox/util.py +++ b/archivebox/util.py @@ -240,6 +240,9 @@ def chrome_args(**options) -> List[str]: '--disable-gpu', '--disable-dev-shm-usage', '--disable-software-rasterizer', + '--run-all-compositor-stages-before-draw', + f'--virtual-time-budget={options["TIMEOUT"] * 1000}', + '--hide-scrollbars', ) @@ -253,7 +256,7 @@ def chrome_args(**options) -> List[str]: cmd_args += ('--window-size={}'.format(options['RESOLUTION']),) if options['TIMEOUT']: - cmd_args += ('--timeout={}'.format((options['TIMEOUT']) * 1000),) + cmd_args += ('--timeout={}'.format(options['TIMEOUT'] * 1000),) if options['CHROME_USER_DATA_DIR']: cmd_args.append('--user-data-dir={}'.format(options['CHROME_USER_DATA_DIR']))