This is my suggestion for non headless puppeteer
Allow localStorage.theme to be saved on the session
I always turning on Dark Mode manually everytime i continue my session.
The puppeteer innerWindow seems to have fixed innerWindow size (similar issue https://github.com/puppeteer/puppeteer/issues/3688)
regarding the second point can you add this to your config:
{
...
defaultViewport: null,
...
}
as you can see here: https://github.com/open-wa/wa-automate-nodejs/blob/f53e6ae7c92fe5a95b574bb7362eb0d508bd6b41/src/controllers/browser.ts#L160
config is spread into the puppeteer launch options
Edit: nvm that doesn't work. Can you try to figure out which pptr configs work please.
@github-actions run
âš¡ Release! âš¡
(async () => {
function exec(cmd) {
console.log(execSync(cmd).toString());
}
// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";
exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i`);
exec(`npm run release-ci`);
//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
})();
Regarding dark mode, you can just use this now: https://open-wa.github.io/wa-automate-nodejs/classes/client.html#darkmode
@github-actions run
âš¡ Release! âš¡
(async () => {
function exec(cmd) {
console.log(execSync(cmd).toString());
}
// Config
const gitUserEmail = "github-actions[bot]@users.noreply.github.com";
const gitUserName = "github-actions[bot]";
exec(`echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc`);
exec(`git config --global user.email "${gitUserEmail}"`);
exec(`git config --global user.name "${gitUserName}"`);
exec(`npm i`);
exec(`npm run release-ci`);
//comment on the issue
var result = execSync(`npx auto-changelog -o ./tempchangelog.txt --commit-limit false --template ./compact-keepachangelog.hbs --stdout`).toString();
await postComment(result);
//create changelog image
exec(`npm run release-image`);
exec(`git commit -a -m 'updated release-image'`);
exec(`git push --force`);
})();
regarding the second point can you add this to your config:
{ ... defaultViewport: null, ... }as you can see here:
config is spread into the puppeteer launch options
Edit: nvm that doesn't work. Can you try to figure out which pptr configs work please.
@nurutomo This should work now. Report back if working for you thanks
regarding the second point can you add this to your config:
{ ... defaultViewport: null, ... }as you can see here:
https://github.com/open-wa/wa-automate-nodejs/blob/f53e6ae7c92fe5a95b574bb7362eb0d508bd6b41/src/controllers/browser.ts#L160config is spread into the puppeteer launch options
Edit: nvm that doesn't work. Can you try to figure out which pptr configs work please.@Nurutomo This should work now. Report back if working for you thanks
The config works. but, the dark mode Wallpaper doesn't load. Just plain dark-gray color

and also this option doesn't change

@Nurutomo it's not only dark gray, I can see the doodles there. If you want to change the background colour you can use this https://open-wa.github.io/wa-automate-nodejs/classes/client.html#setchatbackgroundcolourhex
That feature requires INSIDERS LICENSE KEY , which is i doesn't have one.
nvm 'bout the wallpaper
Most helpful comment
@github-actions run
âš¡ Release! âš¡