GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.31k stars 309 forks source link

Hide scrollbars #122

Open przemyslawpluta opened 5 years ago

przemyslawpluta commented 5 years ago

Is there a way to hide scrollbar after launch or configure it on launch?

carlo.launch().then(async app => {
    app.on('exit', () => process.exit());
    await app.load('https://www.buzzfeed.com/');
    await app.mainWindow().hideScrollbars();
});

or

carlo.launch({scrollbars: false}).then(async app => {
    app.on('exit', () => process.exit());
    await app.load('https://www.buzzfeed.com/');
});
trogper commented 5 years ago

Why not just inject CSS with overflow: hidden;? Although I don't know how Edit: What about using an iframe to load external content? Then you'd be able to have your own CSS.