Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-Player
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-Player
Commits
2c2cdc53
Commit
2c2cdc53
authored
Oct 19, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(tools): shoot.mjs --scale for print-resolution screenshots
Co-Authored-By:
Claude Opus 5.5
<
noreply@anthropic.com
>
parent
f56437fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
shoot.mjs
tools/shoot.mjs
+2
-1
No files found.
tools/shoot.mjs
View file @
2c2cdc53
...
...
@@ -29,6 +29,7 @@ const ANON = args.includes('--anon'); // signed out: the first-run screens
const
WITH_FRIEND
=
args
.
includes
(
'--with-friend'
);
// a second account, befriended and online
const
RAW_THEME
=
args
.
includes
(
'--raw-theme'
);
const
DROP_ASSETS
=
argOf
(
'--drop-assets'
,
''
);
// regex: stored asset ids to hide, to preview the built-in art
const
SCALE
=
Number
(
argOf
(
'--scale'
,
'2'
));
// device pixel ratio of the shots (4 for print work)
const
PUSH
=
argOf
(
'--push'
,
''
);
const
PARAMS
=
argOf
(
'--params'
,
'{}'
);
const
NAME
=
argOf
(
'--name'
,
PUSH
);
...
...
@@ -169,7 +170,7 @@ try {
if ((m.type() === 'warn' || m.type() === 'warning') && m.text().includes('[i18n] missing')) errors.push(`
[
$
{
current
}]
` + m.text());
});
page.on('pageerror', e => errors.push(`
[
$
{
current
}]
PAGEERROR
` + String(e).slice(0, 200)));
await page.setViewport({ width: W, height: H, deviceScaleFactor:
2
, isMobile: true, hasTouch: true });
await page.setViewport({ width: W, height: H, deviceScaleFactor:
SCALE
, isMobile: true, hasTouch: true });
await page.setRequestInterception(true);
page.on('request', async req => {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment