steveseguin / electroncapture

Playback video in a frameless electron app for screen-sharing and window capture
GNU General Public License v3.0
325 stars 37 forks source link

Feature Request: Loading custom .CSS file via command line #72

Closed E2Gabriel closed 1 year ago

E2Gabriel commented 1 year ago

This would be a huge help in cases where users have already decided on alternate CSS and want to automate the process of loading custom stylesheets when launching Electron Capture.

(Thanks for the awesome tool, by the way!)

steveseguin commented 1 year ago

Would you want the CSS being loaded into every page? or just the initial page being loaded via URL?

steveseguin commented 1 year ago

If loading VDO.Ninja, you can specify a CSS script via the VDO.Ninja URL.

I guess also, is this a local CSS script or a remote web hosted css script? OR is this base64?

E2Gabriel commented 1 year ago

Simply loading the initial target URL with custom CSS would work fine in my particular use case. The CSS script I would use, in my case, is local. The way I would want to use it would be something like: ElectronCapture.exe --u 'website.html' --css 'path\custom CSS.css'

steveseguin commented 1 year ago

I got it added.

https://github.com/steveseguin/electroncapture/releases/tag/2.70.0

I'll include a mac release soon as well.

I think it will work if it's in the same directory as the css file or if you provide the absolute path

elecap --css test.css